/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Import popup styles */
@import url('popup.css');

 /* Medium screens: 1020px to 1380px */
@media (min-width: 1020px) and (max-width: 1380px) {
    .hero-section {
      background-position: 0px 100px!important;
      background-size: 50% auto!important;
    }
    
  }

 /* Medium screens: 1380px to 1600px */
@media (min-width: 1380px) and (max-width: 1600px) {
    .hero-section {
      background-position: 50px 100px!important;
      background-size: 43% auto!important;
    }
    
  }

 /* Large screens: 2000px to 2250px */
@media (min-width: 2000px) and (max-width: 2250px) {
    .hero-section {
      background-position: 150px 100px!important;
    }
    
  }

 /* Large screens: 2250px to 2400px */
@media (min-width: 2250px) and (max-width: 2400px) {
    .hero-section {
      background-position: 250px 100px!important;
    }
  }

 /* Ultra-wide screens: 2400px to 2800px */
@media (min-width: 2400px) and (max-width: 2800px) {
    .hero-section {
      background-position: 350px 100px!important;
    }

  }

  /* Ultra-wide screens: 2800px to 3000px */
  @media (min-width: 2800px) and (max-width: 3000px) {
    .hero-section {
      background-position: 520px 100px!important;
    }

  }

  /* Ultra-wide screens: 3000px to 4000px */
  @media (min-width: 3000px) and (max-width: 4000px) {
    .hero-section {
      background-position: 620px 100px!important;
    }

  }

  /* 
Contact Form Gravity Forms Styling
==================================
This file contains all CSS for the contact form with .contactform class
Based on the popup form styling for consistency
*/

/* Override Gravity Forms theme framework button styling - Maximum Specificity */
.contactform .gform-theme.gform-theme--framework.gform_wrapper .button,
.contactform .gform-theme.gform-theme--framework.gform_wrapper .gform-theme-button,
.contactform .gform-theme.gform-theme--framework.gform_wrapper button.button,
.contactform .gform-theme.gform-theme--framework.gform_wrapper input:is([type=submit],[type=button],[type=reset]).button,
.contactform .gform-theme.gform-theme--framework.gform_wrapper input:is([type=submit],[type=button],[type=reset]),
.contactform .gform-theme.gform-theme--framework.gform_wrapper input[type=submit].button.gform_button,
.contactform #gform_submit_button_1,
.contactform #gform_submit_button_2,
body .contactform .gform_wrapper input[type=submit],
body .contactform .gform_wrapper .gform_button,
body .contactform .gform_wrapper button, 
.contactform .gform_wrapper input[type=submit],
.contactform .gform_wrapper .gform_button,
.contactform .gform_wrapper button {
    font-weight: 600 !important;
    font-family: 'Lexend', sans-serif !important;
}

/* Additional aggressive overrides for Gravity Forms */
body .contactform .gform-theme.gform-theme--framework .gform_wrapper input[type=submit],
body .contactform .gform-theme.gform-theme--framework .gform_wrapper .gform_button,
body .contactform .gform-theme.gform-theme--framework .gform_wrapper button {
    font-weight: 600 !important;
    font-family: 'Lexend', sans-serif !important;
}

/* Reduce vertical gap between fields in Gravity Forms 2.7+ */
.contactform .gform-theme--api,
.contactform .gform-theme--foundation {
  --gf-form-gap-y: 0.35rem!important;
}

/* Sherpace button styling */
.contactform .gform_wrapper .gform_footer input[type=submit],
.contactform .gform_wrapper .gform_page_footer input[type=submit],
.contactform .gform_wrapper .gform_button {
    background-color: #008C7D !important; 
    border: 1px solid #008C7D !important;
    color: #fff !important;
    cursor: pointer;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800!important;
    font-family: 'Lexend', sans-serif !important;
    width: 100% !important; 
    max-width: 100% !important;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.contactform .gform_wrapper .gform_footer input[type=submit]:hover,
.contactform .gform_wrapper .gform_page_footer input[type=submit]:hover,
.contactform .gform_wrapper .gform_button:hover {
    background-color: #00695E !important;
    border-color: #00695E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 105, 94, 0.3);
}

.contactform .gform_required_legend { 
    display: none;
}

/* Gravity Forms styling */
.contactform .gform_wrapper {
    margin: 0;
}

.contactform .gform_wrapper .gform_fields {
    margin: 0;
}

.contactform .gform_wrapper .gfield {
    margin-bottom: 15px;
}

.contactform .gform_wrapper .gfield_label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.contactform .gform_wrapper input[type="text"],
.contactform .gform_wrapper input[type="email"],
.contactform .gform_wrapper input[type="tel"],
.contactform .gform_wrapper textarea,
.contactform .gform_wrapper select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    line-height: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    min-height: 44px;
    background-color: white;
    box-shadow: none !important;
}

.contactform .gform_wrapper input[type="text"]:focus,
.contactform .gform_wrapper input[type="email"]:focus,
.contactform .gform_wrapper input[type="tel"]:focus,
.contactform .gform_wrapper textarea:focus,
.contactform .gform_wrapper select:focus {
    outline: none;
    border-color: #008C7D;
    box-shadow: none !important;
}

/* Placeholder styling */
.contactform .gform_wrapper input::placeholder,
.contactform .gform_wrapper textarea::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
    font-style: italic;
}

/* Cross-browser placeholder support */
.contactform .gform_wrapper input::-webkit-input-placeholder,
.contactform .gform_wrapper textarea::-webkit-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.contactform .gform_wrapper input::-moz-placeholder,
.contactform .gform_wrapper textarea::-moz-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.contactform .gform_wrapper input:-ms-input-placeholder,
.contactform .gform_wrapper textarea:-ms-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .contactform .gform_wrapper .gfield {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .contactform .gform_wrapper .gfield {
        margin-bottom: 10px;
    }
}

/* Additional contact form specific styling */
.contactform {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.contactform .gform_wrapper .gfield_error input[type="text"],
.contactform .gform_wrapper .gfield_error input[type="email"],
.contactform .gform_wrapper .gfield_error input[type="tel"],
.contactform .gform_wrapper .gfield_error textarea,
.contactform .gform_wrapper .gfield_error select {
    border-color: #dc3545;
}

.contactform .gform_wrapper .gfield_error .gfield_label {
    color: #dc3545;
}

.contactform .gform_wrapper .validation_error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contactform .gform_wrapper .gfield_validation_message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Success message styling */
.contactform .gform_wrapper .gform_confirmation_message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Elementor Loop Grid pagination (Sherpace styling) */
.elementor-pagination {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    font-family: 'Lexend', sans-serif;
}

.elementor-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: all 0.25s ease;
}

.elementor-pagination a.page-numbers:hover {
    background-color: #008C7D;
    border-color: #008C7D;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 140, 125, 0.25);
}

.elementor-pagination .page-numbers.current {
    background-color: #008C7D;
    border-color: #008C7D;
    color: #fff;
    font-weight: 600;
}

.elementor-pagination .page-numbers.dots {
    border-color: transparent;
    background-color: transparent;
}

.elementor-pagination .page-numbers.dots:hover {
    background-color: transparent;
    border-color: transparent;
    color: #333;
    transform: none;
    box-shadow: none;
}

.elementor-pagination .page-numbers.prev,
.elementor-pagination .page-numbers.next {
    padding: 0 18px;
    font-weight: 600;
}

/* Disabled (non-link) prev/next when on first/last page */
.elementor-pagination span.page-numbers.prev,
.elementor-pagination span.page-numbers.next {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 480px) {
    .elementor-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 14px;
    }
    .elementor-pagination .page-numbers.prev,
    .elementor-pagination .page-numbers.next {
        padding: 0 12px;
    }
}
