/* ==========================================================================
   RT Contact Form - THE "3-ID EXODIA" CSS TO DEFEAT ALL THEMES
   ========================================================================== */

/* 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;
}

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

/* APPLIES POPPINS TO TEXT ONLY - SAVES FONTAWESOME ICONS IN CHROME! */
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,
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;
}

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 (TIGHT PADDING + 5PX AIR) --- */
html body div#rt-master-wrapper.rt-contact-form-wrapper div#rt-right-col-wrap.rt-right-column {
    padding: 20px 20px !important; /* Perfected Breathing Room */
    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 (Forced Bold) --- */
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;
}

/* --- Intent Cards (FORCED BORDERS AND RADIUS) --- */
html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-card-checkmark {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #c6a87c !important;
    color: #ffffff !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !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 8px rgba(0,0,0,0.15) !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* Default State (Unselected) */
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; /* Soft Gray Border Forced */
    border-radius: 8px !important; /* Rounded Corners Forced */
    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;
}

/* Active State (Selected) */
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: #fdfbf8 !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;
}

/* --- OVERLAPPING TEXT FIX & FORCED BORDERS --- */
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; /* Soft Gray Border Forced */
    border-radius: 6px !important; /* Rounded Corners Forced */
    font-size: 13px !important;
    color: #333 !important;
    background: #fafafa !important; /* Slight premium background */
    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;
}

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;
}

/* 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: #fdfbf8 !important;
    border-radius: 6px !important;
    color: #666 !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: #666 !important;
}

/* --- THE BUTTON FIX (GOLD DEFAULT & BLACK HOVER) --- */
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; /* FORCED GOLD DEFAULT */
    color: #ffffff !important; /* FORCED WHITE TEXT */
    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; /* HOVERS TO BLACK */
    color: #ffffff !important; /* TEXT REMAINS WHITE */
    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;
}

/* Responsive Design Stacking */
@media (max-width: 992px) {
    html body div#rt-master-wrapper.rt-contact-form-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    html body div#rt-master-wrapper.rt-contact-form-wrapper .rt-left-column {
        min-height: 250px !important;
        border-radius: 12px 12px 0 0 !important;
    }
}

@media (max-width: 768px) {
    html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-form-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    html body div#rt-master-wrapper.rt-contact-form-wrapper form#rt-custom-form .rt-form-intent-group {
        grid-template-columns: 1fr !important;
    }
    
    html body div#rt-master-wrapper.rt-contact-form-wrapper div#rt-right-col-wrap.rt-right-column {
        padding: 15px !important;
    }
}