﻿/* ============================================
   CONTACT PAGE STYLES
   Modern clean contact page inspired by Snappy design
   Uses unified theme system variables
   ============================================ */

/* Page Container */
.contact-page {
    min-height: 100vh;
    background: var(--theme-bg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.contact-hero {
    padding: 6rem 0 5rem;
    background: var(--theme-bg-alt);
    position: relative;
}

/* Contact Info Section (Left) */
.contact-info-section {
    padding-right: 2rem;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1.25rem;
    line-height: 1.1;
}

.contact-subtitle {
    font-size: 1.05rem;
    color: var(--theme-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Contact Details */
.contact-details {
    margin-bottom: 3rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--theme-text);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    transition: color var(--theme-transition);
}

.contact-detail-item:hover {
    color: var(--theme-primary);
}

.contact-detail-item i {
    width: 20px;
    color: var(--theme-text-muted);
}

.contact-detail-link {
    display: inline-block;
    color: var(--theme-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    transition: color var(--theme-transition);
}

.contact-detail-link:hover {
    color: var(--theme-primary);
}

/* Support Cards */
.support-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.support-card {
    padding: 0;
}

.support-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 0.5rem;
}

.support-card p {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    line-height: 1.6;
    margin: 0;
}

.support-card p a {
    color: var(--theme-primary);
    text-decoration: none;
}

.support-card p a:hover {
    text-decoration: underline;
}

/* Contact Form Card (Right) */
.contact-form-card {
    background: var(--theme-surface);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--theme-shadow-xl);
    border: 1px solid var(--theme-border-light);
}

.contact-form-header {
    margin-bottom: 2rem;
}

.form-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.5rem;
}

.form-card-subtitle {
    font-size: 0.95rem;
    color: var(--theme-text-muted);
    margin: 0;
}
/* ============================================
   FORM STYLES
   ============================================ */
.contact-form {
    width: 100%;
}

.form-group-modern {
    margin-bottom: 0.25rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--theme-text-light);
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}

.form-control-modern {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--theme-text);
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: 50px;
    transition: all var(--theme-transition);
}

.form-control-modern.has-icon {
    padding-left: 2.75rem;
}

.form-control-modern::placeholder {
    color: var(--theme-text-light);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-bg, rgba(110, 180, 255, 0.15));
    background: var(--theme-surface);
}

/* Inline Validation Error Icon */
.input-validate {
    position: relative;
}

.input-error-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-danger, #f56565);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.input-error-icon.textarea-error-icon {
    top: 1.25rem;
    transform: none;
}

.form-control-modern.input-error,
.iti .iti__tel-input.input-error {
    border-color: var(--theme-danger, #f56565);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.15);
}

.form-control-modern.input-error:focus {
    border-color: var(--theme-danger, #f56565);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.25);
}

/* FAQ CTA feedback */
.faq-cta-feedback {
    font-size: 0.85rem;
}

.faq-cta-feedback.text-success {
    color: var(--theme-success);
}

.faq-cta-feedback.text-danger {
    color: var(--theme-danger);
}

/* intl-tel-input Integration */
.form-group-modern .iti {
    width: 100%;
}

.form-group-modern .iti__tel-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--theme-text);
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    border-radius: 50px;
    transition: all var(--theme-transition);
}

.form-group-modern .iti__tel-input::placeholder {
    color: var(--theme-text-light);
}

.form-group-modern .iti__tel-input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px var(--theme-primary-bg, rgba(110, 180, 255, 0.15));
    background: var(--theme-surface);
}

.form-group-modern .iti__search-input {
    font-family: inherit;
}

/* Dropdown theming */
.form-group-modern .iti__dropdown-content {
    background: var(--theme-surface, #fff);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    overflow: hidden;
}

.form-group-modern .iti__search-input {
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
    border-radius: 10px;
}

.form-group-modern .iti__search-input::placeholder {
    color: var(--theme-text-light);
}

.form-group-modern .iti__country-list {
    background: transparent;
}

.form-group-modern .iti__country {
    color: var(--theme-text);
}

.form-group-modern .iti__country-name {
    color: var(--theme-text);
}

.form-group-modern .iti__dial-code {
    color: var(--theme-primary);
}

.form-group-modern .iti__country.iti__highlight,
.form-group-modern .iti__country:hover {
    background: var(--theme-primary-bg, rgba(110, 180, 255, 0.08));
}

.form-group-modern .iti__divider {
    border-bottom: 1px solid var(--theme-border);
}

.form-group-modern .iti__selected-country:focus,
.form-group-modern .iti__selected-country:hover {
    background: var(--theme-primary-bg, rgba(110, 180, 255, 0.08));
    border-radius: 50px 0 0 50px;
}

.form-group-modern .iti__arrow {
    border-top-color: var(--theme-text-muted);
}

/* Prevent Chrome/Edge autofill clash */
.form-group-modern .iti__tel-input:-webkit-autofill,
.form-group-modern .iti__tel-input:-webkit-autofill:hover,
.form-group-modern .iti__tel-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--theme-text);
    caret-color: var(--theme-text);
    -webkit-box-shadow: 0 0 0 1000px var(--theme-bg) inset;
    box-shadow: 0 0 0 1000px var(--theme-bg) inset;
    border: 1px solid var(--theme-border);
    transition: background-color 9999s ease-in-out 0s;
}

/* Message Textarea */
.message-group {
    position: relative;
}

.message-group textarea.form-control-modern {
    border-radius: 20px;
    resize: none;
    min-height: 120px;
    padding-bottom: 2rem;
}

.char-count {
    position: absolute;
    bottom: 0.75rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--theme-text-light);
}

/* Submit Button */
.btn-submit-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--theme-primary, #3b82f6);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--theme-transition);
}

.btn-submit-modern:hover:not(:disabled) {
    background: var(--theme-primary-hover, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-submit-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Privacy Note */
.privacy-note {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    text-align: center;
    margin: 0;
}

.privacy-note a {
    color: var(--theme-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-note a:hover {
    color: var(--theme-primary);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--theme-success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon i {
    font-size: 2.5rem;
    color: var(--theme-success);
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 0.75rem;
}

.success-message p {
    color: var(--theme-text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Outline Button */
.btn-outline-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--theme-primary);
    background: transparent;
    border: 2px solid var(--theme-primary);
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--theme-transition);
}

.btn-outline-modern:hover {
    background: var(--theme-primary);
    color: #fff;
}

/* Alert Styles */
.alert-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
}

.alert-danger.alert-modern {
    background: var(--theme-danger-bg);
    color: var(--theme-danger);
    border: 1px solid var(--theme-danger);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.contact-faq {
    padding: 4.2rem 0;
    background: var(--theme-bg);
}

.faq-header {
    padding-right: 2rem;
}

.faq-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: 1rem;
    color: var(--theme-text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.faq-cta {
    display: flex;
    gap: 0.75rem;
    max-width: 400px;
}

.faq-cta .input-with-icon {
    flex: 1;
}

.faq-cta .form-control-modern {
    padding: 0.875rem 1rem 0.875rem 2.75rem;
}

.faq-cta .btn-submit-modern {
    padding: 0.875rem 1.5rem;
    white-space: nowrap;
}

/* FAQ Accordion */
.faq-accordion .accordion {
    border: none;
}

.faq-accordion .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--theme-border);
}

.faq-accordion .accordion-item:last-child {
    border-bottom: none;
}

.faq-accordion .accordion-header {
    margin: 0;
}

.faq-accordion .accordion-button {
    background: transparent;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    box-shadow: none;
    border: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--theme-text);
}

.faq-accordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    width: 1.25rem;
    height: 1.25rem;
}

.faq-accordion .accordion-body {
    padding: 0 0 1.5rem 0;
    font-size: 0.95rem;
    color: var(--theme-text-muted);
    line-height: 1.7;
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.contact-location {
    padding: 6rem 0;
    background: var(--theme-bg);
}

.map-container {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--theme-surface);
}

.map-container iframe {
    filter: none;
    opacity: 1;
    pointer-events: none;
}

.map-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
}

/* Hide the Google Maps default place card overlay */
.map-container iframe + div,
.map-container .gm-style > div > div > div > div > div[style*="position: absolute"][style*="left: 0px"][style*="top: 0px"] {
    display: none !important;
}

.map-card {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 220px;
    max-width: 240px;
}

.map-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.map-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.map-card-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.map-card-header p {
    font-size: 0.72rem;
    color: #6b7280;
    margin: 0;
}

.map-card-body {
    margin-bottom: 0.75rem;
}

.map-card-body strong {
    display: block;
    font-size: 0.85rem;
    color: #1f2937;
    margin-bottom: 0.15rem;
}

.map-card-body p {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.map-link:hover {
    color: #3b82f6;
}

.map-link i {
    font-size: 0.65rem;
}

/* Location Info */
.location-info {
    padding-left: 2rem;
}

.location-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--theme-text-muted);
    margin-bottom: 1rem;
}

.location-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-text);
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.location-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

.location-details p {
    font-size: 1rem;
    color: var(--theme-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
    .contact-hero {
        padding: 4rem 0;
    }
    
    .contact-info-section {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .support-cards {
        grid-template-columns: 1fr;
    }
    
    .faq-header {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .location-info {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .location-title {
        font-size: 2rem;
    }
    
    .map-container {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .contact-hero {
        padding: 3rem 0;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .form-card-title {
        font-size: 1.5rem;
    }
    
    .contact-faq {
        padding: 3.5rem 0;
    }
    
    .faq-title {
        font-size: 1.75rem;
    }
    
    .faq-cta {
        flex-direction: column;
    }
    
    .faq-cta .btn-submit-modern {
        width: 100%;
    }
    
    .faq-accordion .accordion-button {
        font-size: 1rem;
        padding: 1.25rem 0;
    }
    
    .contact-location {
        padding: 4rem 0;
    }
    
    .map-container {
        height: 350px;
    }
    
    .map-overlay {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .map-card {
        min-width: auto;
    }
    
    .location-title {
        font-size: 1.75rem;
    }
}

/* ============================================
   THEME-SPECIFIC ADJUSTMENTS
   ============================================ */

/* Dark themes */
body[data-theme="3d"] .contact-hero,
body[data-theme="sakura"] .contact-hero,
body[data-theme="forest"] .contact-hero,
body[data-theme="arcade"] .contact-hero {
    background: var(--theme-bg-alt);
}

body[data-theme="3d"] .contact-form-card,
body[data-theme="sakura"] .contact-form-card,
body[data-theme="forest"] .contact-form-card,
body[data-theme="arcade"] .contact-form-card {
    background: var(--theme-surface);
    border-color: var(--theme-border);
}

body[data-theme="3d"] .form-control-modern,
body[data-theme="sakura"] .form-control-modern,
body[data-theme="forest"] .form-control-modern,
body[data-theme="arcade"] .form-control-modern {
    background: var(--theme-bg);
    border-color: var(--theme-border);
}

body[data-theme="3d"] .form-group-modern .iti__tel-input,
body[data-theme="sakura"] .form-group-modern .iti__tel-input,
body[data-theme="forest"] .form-group-modern .iti__tel-input,
body[data-theme="arcade"] .form-group-modern .iti__tel-input {
    background: var(--theme-bg);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

body[data-theme="3d"] .form-group-modern .iti__dropdown-content,
body[data-theme="sakura"] .form-group-modern .iti__dropdown-content,
body[data-theme="forest"] .form-group-modern .iti__dropdown-content,
body[data-theme="arcade"] .form-group-modern .iti__dropdown-content {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body[data-theme="3d"] .form-group-modern .iti__search-input,
body[data-theme="sakura"] .form-group-modern .iti__search-input,
body[data-theme="forest"] .form-group-modern .iti__search-input,
body[data-theme="arcade"] .form-group-modern .iti__search-input {
    background: var(--theme-bg);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

body[data-theme="3d"] .form-group-modern .iti__country.iti__highlight,
body[data-theme="3d"] .form-group-modern .iti__country:hover,
body[data-theme="sakura"] .form-group-modern .iti__country.iti__highlight,
body[data-theme="sakura"] .form-group-modern .iti__country:hover,
body[data-theme="forest"] .form-group-modern .iti__country.iti__highlight,
body[data-theme="forest"] .form-group-modern .iti__country:hover,
body[data-theme="arcade"] .form-group-modern .iti__country.iti__highlight,
body[data-theme="arcade"] .form-group-modern .iti__country:hover {
    background: var(--theme-primary-bg, rgba(139, 92, 246, 0.15));
}

body[data-theme="3d"] .map-container iframe,
body[data-theme="sakura"] .map-container iframe,
body[data-theme="forest"] .map-container iframe,
body[data-theme="arcade"] .map-container iframe {
    filter: none;
}

body[data-theme="3d"] .faq-accordion .accordion-button::after,
body[data-theme="sakura"] .faq-accordion .accordion-button::after,
body[data-theme="forest"] .faq-accordion .accordion-button::after,
body[data-theme="arcade"] .faq-accordion .accordion-button::after {
    filter: invert(1);
}

/* Gold theme adjustments */
body[data-theme="gold"] .btn-submit-modern {
    background: var(--theme-gradient-primary);
    color: var(--theme-text);
}

body[data-theme="gold"] .btn-submit-modern:hover:not(:disabled) {
    background: var(--theme-primary-hover);
}

/* Arcade theme - Add glow effects */
body[data-theme="arcade"] .contact-title {
    text-shadow: 0 0 20px var(--theme-primary);
}

body[data-theme="arcade"] .contact-form-card {
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}
