/* ==========================================================================
   RT Contact Form - PREMIUM CSS (PART 1: CORE STYLES)
   ========================================================================== */

/* Main Wrapper Grid */
html body div#rt-master-wrapper.rt-contact-form-wrapper {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
    margin: 0 !important;
    align-items: stretch !important;
    font-family: 'Poppins', sans-serif !important;
    position: relative !important; 
}

html body div#rt-master-wrapper.rt-contact-form-wrapper * {
    box-sizing: border-box !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper h4,
html body div#rt-master-wrapper.rt-contact-form-wrapper p,
html body div#rt-master-wrapper.rt-contact-form-wrapper span:not(.rt-card-icon-wrap):not(.rt-card-checkmark),
html body div#rt-master-wrapper.rt-contact-form-wrapper strong,
html body div#rt-master-wrapper.rt-contact-form-wrapper label,
html body div#rt-master-wrapper.rt-contact-form-wrapper input,
html body div#rt-master-wrapper.rt-contact-form-wrapper select,
html body div#rt-master-wrapper.rt-contact-form-wrapper textarea,
html body div#rt-master-wrapper.rt-contact-form-wrapper button {
    font-family: 'Poppins', sans-serif !important;
}

/* --- Left Column --- */
html body div#rt-master-wrapper.rt-contact-form-wrapper .rt-left-column {
    background-color: #fcf9f5 !important;
    background-size: cover !important;
    background-position: center top !important;
    padding: 30px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    position: relative !important;
    height: auto !important; 
    min-height: 0 !important; 
}

html body div#rt-master-wrapper.rt-contact-form-wrapper .rt-trust-badge-container {
    background: transparent !important;
    text-align: center !important;
    padding: 20px 0 0 0 !important;
    position: relative !important;
    z-index: 2 !important; 
}

html body div#rt-master-wrapper.rt-contact-form-wrapper .rt-trust-icon i {
    font-size: 22px !important;
    color: #c6a87c !important;
    margin-bottom: 12px !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper .rt-trust-text {
    font-size: 11.5px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* --- Right Column --- */
html body div#rt-master-wrapper.rt-contact-form-wrapper div#rt-right-col-wrap.rt-right-column {
    padding: 20px 20px !important;
    background: #ffffff !important;
    height: auto !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important; 
    margin: 0 !important;
}

/* --- Labels --- */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-terms-checkbox label,
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-intent-label {
    font-weight: normal !important;
}

/* --- Intent Cards --- */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-card-checkmark {
    background: #c6a87c !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important; 
    border-radius: 50% !important;
    width: 22px !important; 
    height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transform: scale(0) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    z-index: 10 !important;
    pointer-events: none !important;
    top: -10px !important;
    right: -10px !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-card-content {
    background: #ffffff !important;
    border: 1px solid #e2e2e2 !important; 
    border-radius: 8px !important; 
    transition: all 0.3s ease !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-card-icon-wrap {
    background: transparent !important;
    border: 1px solid #dcdcdc !important;
    transition: all 0.3s ease !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-card-icon-wrap i {
    color: #666 !important;
    transition: all 0.3s ease !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input[type="radio"]:checked + .rt-intent-label .rt-card-content {
    border-color: #c6a87c !important;
    background: #fff7eb !important; 
    box-shadow: 0 4px 15px rgba(198, 168, 124, 0.1) !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input[type="radio"]:checked + .rt-intent-label .rt-card-icon-wrap {
    background: #c6a87c !important;
    border-color: #c6a87c !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input[type="radio"]:checked + .rt-intent-label .rt-card-icon-wrap i {
    color: #ffffff !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input[type="radio"]:checked + .rt-intent-label .rt-card-checkmark {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* --- TEXT AREA AND INPUTS --- */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input[type="text"],
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input[type="email"],
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input[type="tel"],
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form select,
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form textarea {
    border: 1px solid #e2e2e2 !important; 
    border-radius: 6px !important; 
    font-size: 13px !important;
    color: #333 !important;
    background: #fafafa !important; 
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
    transition: border-color 0.3s ease, background-color 0.3s ease !important;
    -webkit-appearance: none !important;
    resize: none !important;
}

/* STRICT CALENDAR OVERLAP FIX */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input.rt-flatpickr-date {
    padding-left: 38px !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input::placeholder,
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form textarea::placeholder {
    color: #999 !important;
    font-weight: 400 !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input:focus,
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form select:focus,
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form textarea:focus {
    border-color: #c6a87c !important;
    background: #ffffff !important;
}

/* ==========================================================================
   2026 PREMIUM GLASSMORPHISM SELECT DROPDOWN
   ========================================================================== */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-glass-select-trigger:hover {
    border-color: #c6a87c !important;
    background: #ffffff !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-glass-select-container.open .rt-glass-select-trigger {
    border-color: #c6a87c !important;
    background: #fff7eb !important;
    box-shadow: 0 0 0 3px rgba(198, 168, 124, 0.1) !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-glass-select-container.open .rt-select-arrow {
    transform: rotate(180deg) !important;
}

/* The Glass Effect Panel */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-glass-options {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 10px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(198, 168, 124, 0.15) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    padding: 6px !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-glass-select-container.open .rt-glass-options {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Inner Hover Options */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-glass-option {
    padding: 10px 15px !important;
    font-size: 12.5px !important;
    color: #444 !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    margin-bottom: 2px !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-glass-option:last-child {
    margin-bottom: 0 !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-glass-option:hover {
    background: #fff7eb !important;
    color: #1a1a1a !important;
    transform: translateX(4px) !important;
}

/* --- TERMS CHECKBOX COLOR OVERRIDE --- */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form input.rt-gold-checkbox {
    accent-color: #c6a87c !important; 
}

/* Conditional Fields Animation */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-conditional-fields {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important; 
    margin: 0 !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-conditional-fields.rt-active {
    max-height: 800px !important;
    opacity: 1 !important;
    overflow: visible !important;
}

/* Footer elements */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-privacy-notice {
    background: #fff7eb !important; 
    border-radius: 6px !important;
    border: none !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-privacy-notice i {
    color: #c6a87c !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-terms-text {
    color: #222222 !important; 
}

/* --- THE BUTTON FIX --- */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form button#rt-submit-action-btn.rt-submit-btn {
    background-color: #c6a87c !important; 
    color: #ffffff !important; 
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    letter-spacing: 1px !important;
    box-shadow: none !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form button#rt-submit-action-btn.rt-submit-btn:hover {
    background-color: #1a1a1a !important; 
    color: #ffffff !important; 
    box-shadow: 0 5px 20px rgba(26, 26, 26, 0.3) !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form button#rt-submit-action-btn.rt-submit-btn i {
    transition: transform 0.3s ease !important;
}

html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form button#rt-submit-action-btn.rt-submit-btn:hover i {
    transform: translateX(5px) !important;
}

/* ==========================================================================
   PREMIUM LOADER ANIMATION (PART 2)
   ========================================================================== */
html body div#rt-master-wrapper div#rt-form-loader {
    position: absolute !important;
    top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 100 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none !important;
}
html body div#rt-master-wrapper div#rt-form-loader.rt-active {
    opacity: 1 !important;
    pointer-events: all !important;
}
html body div#rt-master-wrapper .rt-loader-spinner {
    width: 50px !important;
    height: 50px !important;
    border: 3px solid #f0f0f0 !important;
    border-top: 3px solid #c6a87c !important;
    border-radius: 50% !important;
    animation: rt-spin 1s linear infinite !important;
    margin-bottom: 20px !important;
}
html body div#rt-master-wrapper .rt-loader-text {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    letter-spacing: 1px !important;
    animation: rt-pulse-text 1.5s ease-in-out infinite !important;
}
@keyframes rt-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes rt-pulse-text { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ==========================================================================
   PREMIUM GLOSSY SUCCESS MODAL
   ========================================================================== */
html body div#rt-premium-modal {
    position: fixed !important;
    top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important;
    z-index: 9999999 !important; 
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s ease, visibility 0.4s ease !important;
    font-family: 'Poppins', sans-serif !important;
}
html body div#rt-premium-modal.rt-active {
    opacity: 1 !important;
    visibility: visible !important;
}
html body div#rt-premium-modal .rt-modal-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px) !important;
}
html body div#rt-premium-modal .rt-modal-box {
    position: relative !important;
    background: #151515 !important; 
    width: 100% !important;
    max-width: 420px !important;
    border-radius: 16px !important;
    padding: 40px 30px !important;
    text-align: center !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6) !important;
    border: 1px solid #2a2a2a !important;
    transform: scale(0.9) translateY(20px) !important;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    margin: 20px !important;
}
html body div#rt-premium-modal.rt-active .rt-modal-box {
    transform: scale(1) translateY(0) !important;
}

html body div#rt-premium-modal .rt-modal-close {
    position: absolute !important;
    top: 15px !important; right: 15px !important;
    background: transparent !important; border: none !important;
    color: #666 !important; font-size: 20px !important;
    cursor: pointer !important; transition: color 0.3s !important;
    padding: 5px !important; outline: none !important;
}
html body div#rt-premium-modal .rt-modal-close:hover { color: #c6a87c !important; }

html body div#rt-premium-modal .rt-modal-icon-glow {
    position: relative !important;
    width: 90px !important; height: 90px !important;
    margin: 0 auto 25px auto !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
}
html body div#rt-premium-modal .rt-modal-icon-glow::before {
    content: "" !important;
    position: absolute !important;
    inset: -15px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(198,168,124,0.3) 0%, rgba(198,168,124,0) 70%) !important;
    animation: rt-pulse-glow 2s infinite !important;
}
@keyframes rt-pulse-glow { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.1); opacity: 1; } }

html body div#rt-premium-modal .rt-modal-icon-circle {
    position: relative !important;
    width: 100% !important; height: 100% !important;
    background: transparent !important;
    border: 2px solid #c6a87c !important;
    border-radius: 50% !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    box-shadow: inset 0 0 20px rgba(198,168,124,0.2), 0 0 20px rgba(198,168,124,0.4) !important;
}
html body div#rt-premium-modal .rt-modal-icon-circle i {
    font-size: 35px !important; color: #ffffff !important;
}
html body div#rt-premium-modal .rt-sparkle {
    position: absolute !important; width: 5px !important; height: 5px !important;
    background: #ffffff !important; border-radius: 50% !important;
    box-shadow: 0 0 8px #ffffff, 0 0 15px #c6a87c !important;
    animation: rt-twinkle 1.5s infinite alternate !important;
}
html body div#rt-premium-modal .rt-sparkle.s1 { top: 5px !important; left: 5px !important; animation-delay: 0.2s !important; }
html body div#rt-premium-modal .rt-sparkle.s2 { top: 20px !important; right: -5px !important; animation-delay: 0.5s !important; width: 3px !important; height: 3px !important;}
html body div#rt-premium-modal .rt-sparkle.s3 { bottom: 0px !important; left: -5px !important; animation-delay: 0.8s !important; width: 4px !important; height: 4px !important;}
html body div#rt-premium-modal .rt-sparkle.s4 { bottom: 10px !important; right: 10px !important; animation-delay: 1.1s !important; }
@keyframes rt-twinkle { 0% { transform: scale(0.5); opacity: 0.2; } 100% { transform: scale(1.5); opacity: 1; } }

html body div#rt-premium-modal h2 {
    color: #ffffff !important; font-size: 26px !important; font-weight: 700 !important; margin: 0 0 10px 0 !important; font-family: 'Poppins', sans-serif !important;
}
html body div#rt-premium-modal p {
    color: #aaaaaa !important; font-size: 13px !important; line-height: 1.6 !important; margin: 0 0 25px 0 !important; font-family: 'Poppins', sans-serif !important;
}

html body div#rt-premium-modal .rt-modal-security {
    background: #1e1e1e !important;
    border: 1px solid #333333 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    display: flex !important; align-items: center !important; justify-content: center !important; gap: 12px !important;
    margin-bottom: 25px !important;
}
html body div#rt-premium-modal .rt-modal-security i { color: #c6a87c !important; font-size: 16px !important; }
html body div#rt-premium-modal .rt-modal-security span { color: #cccccc !important; font-size: 11px !important; font-weight: 500 !important; text-align: left !important; line-height: 1.4 !important; font-family: 'Poppins', sans-serif !important; }

html body div#rt-premium-modal button.rt-modal-btn {
    width: 100% !important; background: #c6a87c !important; color: #ffffff !important;
    border: none !important; border-radius: 8px !important; padding: 15px !important;
    font-size: 14px !important; font-weight: 700 !important; text-transform: uppercase !important;
    cursor: pointer !important; transition: all 0.3s ease !important;
    font-family: 'Poppins', sans-serif !important; letter-spacing: 1px !important;
}
html body div#rt-premium-modal button.rt-modal-btn:hover {
    background: #ffffff !important; color: #1a1a1a !important;
    box-shadow: 0 5px 15px rgba(255,255,255,0.2) !important;
}

/* ==========================================================================
   PREMIUM FLATPICKR CALENDAR OVERRIDE (Stable & Lightweight)
   ========================================================================== */

/* Main Calendar Container */
.flatpickr-calendar {
    font-family: 'Poppins', sans-serif !important;
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
    padding-bottom: 10px !important;
    background: #ffffff !important;
}

/* Header & Months area */
.flatpickr-months {
    background: #1a1a1a !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 10px 0 !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: #1a1a1a !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.flatpickr-current-month input.cur-year {
    color: #c6a87c !important;
    font-weight: 700 !important;
}

/* Navigation Arrows */
.flatpickr-months .flatpickr-prev-month svg, 
.flatpickr-months .flatpickr-next-month svg {
    fill: #c6a87c !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg, 
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #ffffff !important;
}

/* Weekdays (Mon, Tue, Wed...) */
.flatpickr-weekdays,
span.flatpickr-weekday {
    background: #1a1a1a !important;
    color: #c6a87c !important;
    font-weight: 600 !important;
}

/* Default Day Styles */
.flatpickr-day {
    color: #444444 !important;
    border-radius: 50% !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* Day Hover State */
.flatpickr-day:hover {
    background: #fff7eb !important;
    border-color: #c6a87c !important;
    color: #1a1a1a !important;
}

/* Selected Date Styling (Simplified and Stable) */
.flatpickr-day.selected {
    background: #c6a87c !important;
    border-color: #c6a87c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(198, 168, 124, 0.4) !important;
}

/* Today's Date Outline */
.flatpickr-day.today {
    border-color: #1a1a1a !important;
}

/* Disabled Dates (Past days) */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #cccccc !important;
    background: transparent !important;
    border-color: transparent !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS FIX
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Stack the main grid into 1 column instead of side-by-side */
    html body div#rt-master-wrapper.rt-contact-form-wrapper {
        grid-template-columns: 1fr !important;
    }

    /* 2. First Row: Set the Image (Left Column) to exactly 280px height */
    html body div#rt-master-wrapper.rt-contact-form-wrapper .rt-left-column {
        height: 280px !important;
        min-height: 280px !important;
        width: 100% !important;
    }

    /* 3. Second Row: Ensure the form area takes full width and pads nicely */
    html body div#rt-master-wrapper.rt-contact-form-wrapper div#rt-right-col-wrap.rt-right-column {
        width: 100% !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
    }

    /* 4. Stack the Intent Cards for perfect mobile viewing */
    html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-form-intent-group {
        grid-template-columns: 1fr !important;
    }

    /* 5. Make the side-by-side inputs stack perfectly on mobile */
    html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-form-row.rt-row-2 {
        flex-direction: column !important;
        gap: 15px !important;
    }
}