/* 
 * Components CSS file for Sapaad theme
 * Contains styles for reusable components that can be used across different templates
 */


/* --- POS FOR RESTAURANTS SECTION STARTS --- */
/* CSS has been removed or reduced by using Tailwind CSS classes (if CSS is needed write between these two comments) */
/* --- POS FOR RESTAURANTS SECTION ENDS --- */

/* --- FAQ SECTION STARTS --- */
/* CSS has been removed and replaced by Tailwind CSS classes (if CSS is needed write between these two comments) */
/* --- FAQ SECTION ENDS --- */
  
/* --- MASTERCLASS SECTION STARTS --- */
/* Contact Form 7 Response Styles */
.wpcf7-response-output {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    padding: 12px 20px !important;
    min-width: 300px;
    max-width: 80%;
    text-align: center;
    border: none !important;
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}



/* Text Image V1 Form Styles */
.text-image-v1-form .wpcf7-form {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
}

.text-image-v1-form .wpcf7-form .email-field {
    width: 100%;
}

.text-image-v1-form .wpcf7-form .submit-field {
    width: 30%;
}

.text-image-v1-form .wpcf7-form input[type="email"] {
    width: 100%;
    height: 56px;
    padding: 16px 24px;
    margin-top: 14px;
    background-color: #3A3A3A;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    color: white;
}

.text-image-v1-form .wpcf7-form input[type="email"]::placeholder {
    color: #9CA3AF;
}


.text-image-v1-form .wpcf7-spinner {
    position: absolute;
    right: -20px;
    top: 120%;
    transform: translateY(-50%);
}

.text-image-v1-form .wpcf7-form input[type="submit"] {
    width: 100%;
    height: 56px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 600 !important; 
}

.text-image-v1-form .wpcf7-not-valid-tip {
    position: absolute;
    color: #FF7A29;
    font-size: 12px;
    margin-top: 4px;
}


            


/* --- DEMO SIGNUP FORM SECTION STARTS --- */
/* Form gradient border container */
.form-gradient-border {
    padding: 40px;
    border-radius: 36px;
    display: flex;
    align-items: center;
    height: auto;
    width: auto;
    margin: 0 auto;
}

.form-gradient-border > .demo-signup-form {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 600px;
    margin: 0;
    flex: 1 1 0%;
}

/* Form title */
.homepage-form-title {
    font-size: 21.6px;
    font-weight: 700;
    color: #f47c7c;
    text-align: left;
    margin-bottom: 11.2px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-fill-color: unset;
}

/* Form divider */
.homepage-form-divider {
    border: none;
    border-top: 2px solid #ffe0e0;
    margin-top: 1.6px;
    height: 0;
}

/* Form main container */
.homepage-form-main {
    display: flex;
    flex-direction: column;
    gap: 17.6px;
    margin-top: 17.6px;
}

/* Form field groups */
.homepage-field-group label {
    font-size: 17.28px;
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
    display: block;
    background: none;
}

.homepage-field-group input[type="text"],
.homepage-field-group input[type="email"],
.homepage-field-group input[type="tel"] {
    width: 100%;
    padding: 16.8px 18.4px;
    border-radius: 13.6px !important;
    border: 1.5px solid #e5e7eb;
    background: #fafbfc;
    font-size: 17.28px;
    color: #222;
    margin-top: 4px;
    transition: border 0.2s;
    font-weight: 500;
    box-sizing: border-box;
}

.homepage-field-group input:focus {
    border-color: #9ca3af;
    outline: none;
    background: #fff;
}

/* Submit button */
.wpcf7-form-control.wpcf7-submit {
    width: 40%;
    padding: 17.6px 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: 11.2px;
    box-shadow: 0 2px 8px rgba(255, 122, 41, 0.08);
    letter-spacing: 0.16px;
}

.wpcf7-form-control.wpcf7-submit:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05), 0 4px 16px rgba(255,122,41,0.12);
}

.center-btn {
    display: block;
    margin: 0 auto;
  }
/* Spinner */
.wpcf7-spinner {
    margin-left: 8px;
}

/* ===== RESPONSIVE STYLES ===== */

/* Mobile styles */
@media (max-width: 991px) {
    .demo-signup-form {
        min-width: unset;
        max-width: 100%;
        margin-left: 0;
        margin-top: 24px;
        border-radius: 24px;
        padding: 16px 8px 16px 8px;
        min-height: unset;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }
    
    .homepage-form-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .homepage-form-divider {
        margin-top: 0.1rem;
    }
    
    .homepage-field-group label {
        font-size: 0.95rem;
    }
    
    .homepage-field-group input[type="text"],
    .homepage-field-group input[type="email"],
    .homepage-field-group input[type="tel"] {
        font-size: 0.95rem;
        padding: 0.75rem 0.9rem;
        border-radius: 0.65rem !important;
    }
    
    .wpcf7-form-control.wpcf7-submit {
        font-size: 1rem;
        border-radius: 0.65rem !important;
        padding: 0.85rem 0;
        width: 100%; /* make submit full-width on mobile */
    }

    /* PPC hero/mobile: reduce button height a bit */
    .ppc-hero-form-wrapper .wpcf7-form-control.wpcf7-submit {
        width: auto !important;
        padding: 0 9px !important;
        font-size: 0.95rem !important;
    }
    
    .form-gradient-border {
        max-width: 100%;
        border-radius: 24px;
        padding: 2px;
        padding-bottom: 30px;
    }
    
    .form-gradient-border > .demo-signup-form {
        border-radius: 22px;
        padding: 1.5rem 0.75rem 1.25rem 0.75rem;
        max-width: 100%;
    }

    /* Mobile: set email 60% and submit 40% (simple flex-basis percentages) */
    .text-image-v1-form .wpcf7-form {
        flex-direction: row;
        gap: 8px;
    }

    .text-image-v1-form .wpcf7-form .email-field {
        flex: 0 0 60%;
        max-width: 60%;
    }

    .text-image-v1-form .wpcf7-form .submit-field {
        flex: 0 0 40%;
        max-width: 40%;
    }

    
}

/* Large desktop styles */
@media (min-width: 1400px) {
    .form-gradient-border {
        padding: 80px;
    }
} 
/* --- DEMO SIGNUP FORM SECTION ENDS --- */
html, body {
    overflow-x: hidden !important;
}
/* Hero-v1 custom styles ends */

.wpcf7-not-valid-tip {
    position: absolute;
    font-size: 14px;
}

.homepage-field-group .wpcf7-not-valid-tip {
        position: relative;
        font-size: 14px;
        margin-bottom: -21px;
}

/* Contact Form 7 Styles for Demo Signup */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 17.6px;
}

.homepage-field-group {
    position: relative;
    margin-bottom: 0;
}

.homepage-field-group label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: transparent;
    z-index: 2;
}

/* Explicit selector for CF7 phone label to override earlier rules */
.homepage-field-group label[for="phone"] {
    left: 100px;
    top: 50%;
    transform: translateY(-50%) !important;
}

.homepage-field-group input[type="text"],
.homepage-field-group input[type="email"],
.homepage-field-group input[type="tel"] {
    width: 100%;
    padding: 24px 18.4px 12px 18.4px;
    border-radius: 6px !important;
    border: 1.5px solid #e5e7eb;
    background: #FFF;
    font-size: 17.28px;
    color: #222;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* remove CF7 line-break that increases parent height */
.homepage-field-group br {
    display: none;
}

/* force country-select wrapper to match other inputs and center content */
.homepage-field-group .cf7-country-select-wrapper {
    min-height: 64px;
    height: 64px !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-radius: 6px !important; /* match homepage input radius */
    padding: 0 12px;
    border: 1.5px solid #e5e7eb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);



}

.homepage-field-group .cf7-country-select-wrapper input[type="tel"] {
    height: 100%;
    padding: 0;
    font-size: 17.28px;
    font-weight: 500;
    margin-left: 0.5rem;
    box-sizing: border-box;
}

/* Floating label states */
.homepage-field-group.focused label,
.homepage-field-group.has-value label,
.homepage-field-group input:focus + label,
.homepage-field-group input.has-value + label {
    left: 18px;
    top: 10px;
    transform: translateY(0);
    font-size: 12px;
    color: #9ca3af;
    background: #fff;
}

/* Floating overrides specifically for phone label */
.homepage-field-group.focused label,
.homepage-field-group.has-value label,
.homepage-field-group input[type="tel"]:focus + label[for="phone"],
.homepage-field-group input[type="tel"].has-value + label[for="phone"] {
    left: 18px;
    top: 10px;
    transform: translateY(0);
    font-size: 12px;
    color: #9ca3af;
    background: #fff;
}

/* Select/dropdown styling to match input fields */
.homepage-field-group select.wpcf7-form-control {
    border: 1.5px solid #e5e7eb;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M6 6L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18.4px center;
    padding: 18px 18px;
    height: 64.91px;
    padding-right: 44px;
}

/* Floating label positions for homepage selects */
.homepage-field-group.has-value label[for="restaurant-type"],
.homepage-field-group.focused label[for="restaurant-type"],
.homepage-field-group.has-value label[for="number-of-outlets"],
.homepage-field-group.focused label[for="number-of-outlets"],
.homepage-field-group select:focus + label,
.homepage-field-group select.has-value + label {
    top: 4px !important;
    transform: translateY(0) !important;
    font-size: 12px;
    left: 18px;
    background: #fff;   
    color: #9ca3af;
}
.wpcf7-spinner {
    margin-left: 8px;
}

/* Mobile responsive form styles */
@media (max-width: 991px) {
    .homepage-field-group label {
        font-size: 15px;
        left: 14px;
    }
    
    .homepage-field-group input[type="text"],
    .homepage-field-group input[type="email"],
    .homepage-field-group input[type="tel"],
    .homepage-field-group select.wpcf7-form-control {
        font-size: 15px;
        padding: 20px 14px 10px 14px;
        border-radius: 10px !important;
    }
    
    .homepage-field-group input:focus + label,
    .homepage-field-group input:not(:placeholder-shown) + label,
    .homepage-field-group input.has-value + label,
    .homepage-field-group.focused label,
    .homepage-field-group.has-value label {
        top: 8px;
        font-size: 11px;
        left: 14px;
    }
    
    /* Mobile: select labels float to 4px */
    .homepage-field-group.has-value label[for="restaurant-type"],
    .homepage-field-group.focused label[for="restaurant-type"],
    .homepage-field-group.has-value label[for="number-of-outlets"],
    .homepage-field-group.focused label[for="number-of-outlets"],
    .homepage-field-group select:focus + label,
    .homepage-field-group select.has-value + label {
        top: 4px !important;
        left: 14px !important;
        font-size: 11px;
    }
    .wpcf7-form .wpcf7-submit {
        font-size: 1rem;
        border-radius: 0.65rem !important;
        padding: 0.85rem 0;
    }
}

/* RTL styles for all forms on Arabic pages */
[dir="rtl"] .homepage-form-main,
[dir="rtl"] .homepage-field-group,
[dir="rtl"] .wpcf7-form,
[dir="rtl"] .single-form-container {
    direction: rtl;
}

/* Arabic pages: increase line-height everywhere for better readability (avoid congested look) */
body.sapaad-lang-ar,
body.sapaad-lang-ar * {
    line-height: 1.5;
}
body.sapaad-lang-ar h1,
body.sapaad-lang-ar h2,
body.sapaad-lang-ar h3,
body.sapaad-lang-ar h4,
body.sapaad-lang-ar h5,
body.sapaad-lang-ar h6 {
    line-height: 1.35 !important;
}
body.sapaad-lang-ar p,
body.sapaad-lang-ar li,
body.sapaad-lang-ar .text-xl,
body.sapaad-lang-ar .text-base {
    line-height: 1.55;
}
/* Hero/main heading: slightly more breathing room than leading-none */
body.sapaad-lang-ar .hero-section h1,
body.sapaad-lang-ar section[dir="rtl"] h1.text-\[40px\],
body.sapaad-lang-ar section[dir="rtl"] h1.text-\[50px\],
body.sapaad-lang-ar section[dir="rtl"] h1.text-\[60px\],
body.sapaad-lang-ar .hero-section h1.leading-none {
    line-height: 1.35 !important;
}
/* Feature lists and dense text blocks (e.g. Multi-Location list) */
body.sapaad-lang-ar .features-list,
body.sapaad-lang-ar .features-list li,
body.sapaad-lang-ar [dir="rtl"] ul li,
body.sapaad-lang-ar [dir="rtl"] ol li {
    line-height: 1.55;
}
/* RTL sections (e.g. homepage with dir="rtl") – same line-heights when body has Arabic class */
[dir="rtl"] {
    line-height: 1.5;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    line-height: 1.35 !important;
}
[dir="rtl"] p, [dir="rtl"] li {
    line-height: 1.55;
}
[dir="rtl"] .features-list,
[dir="rtl"] .features-list li {
    line-height: 1.55;
}

/* RTL: Position labels on the right */
[dir="rtl"] .homepage-field-group label {
    left: auto;
    right: 18px;
}

/* RTL: Phone label positioning */
[dir="rtl"] .homepage-field-group label[for="phone"] {
    left: auto;
    right: 100px;
}

/* RTL: Input padding adjustment */
[dir="rtl"] .homepage-field-group input[type="text"],
[dir="rtl"] .homepage-field-group input[type="email"],
[dir="rtl"] .homepage-field-group input[type="tel"] {
    padding: 24px 18.4px 12px 18.4px;
    text-align: right;
    direction: rtl;
}

/* RTL: Floating label states */
[dir="rtl"] .homepage-field-group.focused label,
[dir="rtl"] .homepage-field-group.has-value label,
[dir="rtl"] .homepage-field-group input:focus + label,
[dir="rtl"] .homepage-field-group input.has-value + label {
    left: auto;
    right: 18px;
}

/* RTL: Phone label floating state */
[dir="rtl"] .homepage-field-group input[type="tel"]:focus + label[for="phone"],
[dir="rtl"] .homepage-field-group input[type="tel"].has-value + label[for="phone"] {
    left: auto;
    right: 18px;
}

/* RTL: Select dropdown arrow position */
[dir="rtl"] .homepage-field-group select.wpcf7-form-control {
    background-position: left 18.4px center;
    padding-left: 44px;
    padding-right: 18px;
    text-align: right;
    direction: rtl;
}

/* RTL: Select label floating state */
[dir="rtl"] .homepage-field-group.has-value label[for="restaurant-type"],
[dir="rtl"] .homepage-field-group.focused label[for="restaurant-type"],
[dir="rtl"] .homepage-field-group.has-value label[for="number-of-outlets"],
[dir="rtl"] .homepage-field-group.focused label[for="number-of-outlets"],
[dir="rtl"] .homepage-field-group select:focus + label,
[dir="rtl"] .homepage-field-group select.has-value + label {
    left: auto;
    right: 18px;
}

/* RTL: Country selector wrapper alignment */
[dir="rtl"] .homepage-field-group .cf7-country-select-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .homepage-field-group .cf7-country-select-wrapper .relative {
    order: 2; /* Country code dropdown on the right */
}

[dir="rtl"] .homepage-field-group .cf7-country-select-wrapper input[type="tel"] {
    order: 1; /* Phone input on the left */
    margin-left: 0;
    margin-right: 0.5rem;
    text-align: right;
    direction: rtl;
}

/* RTL: Mobile responsive form styles */
@media (max-width: 991px) {
    [dir="rtl"] .homepage-field-group label {
        left: auto;
        right: 14px;
    }
    
    [dir="rtl"] .homepage-field-group input[type="text"],
    [dir="rtl"] .homepage-field-group input[type="email"],
    [dir="rtl"] .homepage-field-group input[type="tel"],
    [dir="rtl"] .homepage-field-group select.wpcf7-form-control {
        padding: 20px 14px 10px 14px;
        text-align: right;
    }
    
    [dir="rtl"] .homepage-field-group input:focus + label,
    [dir="rtl"] .homepage-field-group input:not(:placeholder-shown) + label,
    [dir="rtl"] .homepage-field-group input.has-value + label,
    [dir="rtl"] .homepage-field-group.focused label,
    [dir="rtl"] .homepage-field-group.has-value label {
        left: auto;
        right: 14px;
    }
    
    [dir="rtl"] .homepage-field-group.has-value label[for="restaurant-type"],
    [dir="rtl"] .homepage-field-group.focused label[for="restaurant-type"],
    [dir="rtl"] .homepage-field-group.has-value label[for="number-of-outlets"],
    [dir="rtl"] .homepage-field-group.focused label[for="number-of-outlets"],
    [dir="rtl"] .homepage-field-group select:focus + label,
    [dir="rtl"] .homepage-field-group select.has-value + label {
        left: auto !important;
        right: 14px !important;
    }
}

/* RTL styles for modal forms (single-form-container) */
[dir="rtl"] .single-form-container .modal-field-group label {
    left: auto;
    right: 18px;
}

[dir="rtl"] .single-form-container .modal-field-group label[for="phone"] {
    left: auto;
    right: 100px;
}

[dir="rtl"] .single-form-container .modal-field-group input[type="text"],
[dir="rtl"] .single-form-container .modal-field-group input[type="email"],
[dir="rtl"] .single-form-container .modal-field-group input[type="tel"] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .single-form-container .modal-field-group.focused label,
[dir="rtl"] .single-form-container .modal-field-group.has-value label,
[dir="rtl"] .single-form-container .modal-field-group input[type="tel"]:focus + label[for="phone"],
[dir="rtl"] .single-form-container .modal-field-group input[type="tel"].has-value + label[for="phone"] {
    left: auto !important;
    right: 18px !important;
}

[dir="rtl"] .single-form-container .modal-field-group .cf7-country-select-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .single-form-container .modal-field-group .cf7-country-select-wrapper .relative {
    order: 2; /* Country code dropdown on the right */
}

[dir="rtl"] .single-form-container .modal-field-group .cf7-country-select-wrapper input[type="tel"] {
    order: 1; /* Phone input on the left */
    text-align: right;
    direction: rtl;
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .single-form-container .modal-field-group select {
    text-align: right;
    direction: rtl;
    background-position: left 18px center;
    padding-left: 44px;
    padding-right: 18px;
}

/* Modal-scoped floating label styles (mirror of homepage-field-group) */
.single-form-container .modal-field-group {
    position: relative;
    margin-bottom: 12px; /* vertical gap between modal inputs */
}

/* ppc hero specific: place email+name inline */
.ppc-hero-form-wrapper .modal-field-row { display:flex; gap:16px; }
.ppc-hero-form-wrapper .modal-field-row .modal-field-group { flex:1 }

.single-form-container .modal-field-group label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: transparent;
    z-index: 2;
}

/* Explicit selector for CF7 phone label inside modal - align with homepage behavior */
.single-form-container .modal-field-group label[for="phone"] {
    /* initial position: aligned to the right of the country selector */
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
}

/* ensure modal phone country select wrapper matches modal input height */
.single-form-container .modal-field-group .cf7-country-select-wrapper {
    min-height: 56px;
    height: 56px !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-radius: 6px !important;
    padding: 0 12px;
    background: transparent;
}

/* remove CF7 line-break inside modal that increases parent height */
.single-form-container .modal-field-group br { display: none; }



.single-form-container .modal-field-group.focused label,
.single-form-container .modal-field-group.has-value label,
.single-form-container .modal-field-group input[type="tel"]:focus + label[for="phone"],
.single-form-container .modal-field-group input[type="tel"].has-value + label[for="phone"] {
    left: 18px !important;
    top: 2px !important;
    transform: translateY(0) !important;
    font-size: 12px !important;
    background: #fff;
}

.single-form-container .modal-field-group .cf7-country-select-wrapper input[type="tel"] {
    height: 100%;
    padding: 0;
    font-size: 17.28px;
    font-weight: 500;
}

/* Fix validation message positioning for phone fields - match other fields */
.single-form-container .modal-field-group:has(.cf7-country-select-wrapper) .wpcf7-not-valid-tip {
    position: relative !important;
    display: block !important;
    bottom: auto !important;
    left: 0 !important;
    margin-bottom: -14px !important;
    color: #dc2626;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    z-index: 1;
}


.single-form-container .modal-field-group input[type="text"],
.single-form-container .modal-field-group input[type="email"] {
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 12px 18px; /* vertical padding reduced because we set fixed height */
    border-radius: 6px !important;
    border: 1.5px solid #e5e7eb;
    background: #FFF;
    font-size: 17.28px;
    color: #222;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Separate styling for select dropdowns with custom arrow */
.single-form-container .modal-field-group select {
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 12px 18px; /* vertical padding reduced because we set fixed height */
    border-radius: 6px !important;
    border: 1.5px solid #e5e7eb;
    background: #FFF;
    font-size: 17.28px;
    color: #222;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M6 6L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    /* Remove default browser padding for select text alignment */
    -webkit-padding-start: 18px;
    text-indent: 0;
}

.single-form-container .modal-field-group input:focus,
.single-form-container .modal-field-group select:focus,
.single-form-container .modal-field-group textarea:focus,
.single-form-container .modal-field-group .cf7-country-select-wrapper:focus-within {
    border-color: #9ca3af;
    outline: none;
}

/* Floating label states for modal */
.single-form-container .modal-field-group input:focus + label,
.single-form-container .modal-field-group input:not(:placeholder-shown) + label,
.single-form-container .modal-field-group input.has-value + label,
.single-form-container .modal-field-group.focused label,
.single-form-container .modal-field-group.has-value label {
    top: 1px;
    transform: translateY(0);
    font-size: 12px;
    color: #9ca3af;
}

/* Prevent CF7 submit inside modal from being forced full-width */
.single-form-container .wpcf7-form .wpcf7-submit {
    width: auto;
    height: 54px;
    padding: 0 32px;
    margin-top: 12px;
}

/* Hide CF7 spinner inside modal submit to avoid overlap with custom button */
.single-form-container .wpcf7-spinner {
    display: none !important;
}

/* Smaller validation tip inside modal forms */
.single-form-container .wpcf7-not-valid-tip {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-top: 0px !important;
}

/* Fix checkbox validation message positioning for Firefox and Safari - CSS only */
.single-form-container .modal-field-group:has(.wpcf7-checkbox),
.single-form-container .modal-field-group .wpcf7-checkbox {
    position: relative;
}

.single-form-container .modal-field-group:has(.wpcf7-checkbox) .wpcf7-not-valid-tip,
.single-form-container .modal-field-group .wpcf7-checkbox + .wpcf7-not-valid-tip,
.single-form-container .modal-field-group .wpcf7-checkbox ~ .wpcf7-not-valid-tip {
    position: relative !important;
    display: block !important;
    bottom: auto !important;
    left: 0 !important;
    margin-bottom: 0 !important;
    color: #dc2626 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    clear: both !important;
    float: none !important;
}


@media (max-width: 991px) {
    .single-form-container .modal-field-group label {
        font-size: 15px;
        left: 14px;
    }
    .single-form-container .modal-field-group input[type="text"],
    .single-form-container .modal-field-group input[type="email"],
    .single-form-container .modal-field-group input[type="tel"],
    .single-form-container .modal-field-group input[type="number"],
    .single-form-container .modal-field-group select {
        font-size: 15px;
        padding: 20px 14px 10px 14px !important;
        border-radius: 10px !important;
    }
    .single-form-container .modal-field-group input:focus + label,
    .single-form-container .modal-field-group input:not(:placeholder-shown) + label,
    .single-form-container .modal-field-group input.has-value + label,
    .single-form-container .modal-field-group.focused label,
    .single-form-container .modal-field-group.has-value label {
        top: 4px;
        font-size: 11px;
        left: 14px;
    }

    .homepage-field-group .cf7-country-select-wrapper {
        height: 56px !important;
        min-height: 56px !important;
        border-radius: 0.65rem !important;

    }
    .homepage-field-group .cf7-country-select-wrapper:focus-within .relative {
        position: relative;
        top: 6px;
     }
    .homepage-field-group:has(.cf7-country-select-wrapper input[type="tel"]:focus) label {
    background: transparent;     
       }
}

.otgs-development-site-front-end {
    display:none;
    }

.prose {
    color: #111827;
    font-size: 1.1rem;
    line-height: 1.6;
}
.prose p { margin: 0 0 1em; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    color: #0f172a;
    font-weight: 700;
    margin-top: 1.25em;
    margin-bottom: .5em;
    line-height: 1.25;
}
.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.25rem; }
.prose ul, .prose ol {
    margin: 0 0 1em 1.25rem;
    /* ensure markers appear even if global reset removed them */
    list-style-position: outside;
    padding-left: 1.25rem;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li + li { margin-top: .5em; }
.prose a { color: #2563eb; text-decoration: underline; }
.prose blockquote {
    margin: 0 0 1em;
    padding: .6em 1em;
    border-left: 4px solid #e6e6e6;
    color: #6b7280;
    background: #f8fafc;
    border-radius: 6px;
}
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; display: block; margin: .75em 0; border-radius: 6px; }
.prose pre { background: #0f172a; color: #f8fafc; padding: 1em; overflow: auto; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Helvetica Neue", monospace; }
.prose code { background: #f3f4f6; padding: .15em .4em; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.prose th, .prose td { border: 1px solid #e6e6e6; padding: .5em .75em; text-align: left; }
.prose thead th { background: #f8fafc; font-weight: 600; }

/* End fallback prose */


/* RTL PPC page overrides: show only logo in header and align form placeholders to the right */
.page-rtl {
    direction: rtl;
}

/* Force the PPC stats container to use LTR text direction so numbers stay left-to-right */
.ppc-stats, .ppc-stats * {
    direction: ltr !important;
    text-align: left !important;
}

/* Form inputs and placeholders: align right for RTL form */
.page-rtl .single-form-container input[type="text"],
.page-rtl .single-form-container input[type="email"],
.page-rtl .single-form-container input[type="tel"],
.page-rtl .single-form-container textarea,
.page-rtl .single-form-container select {
    direction: rtl;
    text-align: right;
}

.page-rtl .single-form-container .modal-field-group label[for="phone"]{
    right: 100px;
}
.page-rtl .single-form-container .modal-field-group:focus-within label[for="phone"] {
    right: 14px;
    background: transparent;
}

.page-rtl .modal-field-group {
    position: relative;
}
.page-rtl .modal-field-group label {
    position: absolute;
    right: 14px;
    
}

@media (max-width: 767px) {
    .page-rtl header .site-logo { float: none; margin-left: 0; text-align: center; }
}



.page-rtl .cf7-country-select-wrapper .relative,
.page-rtl .cf7-country-select-wrapper input[type="text"][placeholder="Search countries..."]
 {
    direction: ltr !important;
}

.grecaptcha-badge,
.rc-anchor-normal-footer,
.rc-anchor-logo-large { display: none !important; }

/* Terms of Service: hide sidebar nav scrollbar (keep scrollable) */
#tos-aside-scroll {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
#tos-aside-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

