/* ===========================================
   Contact Page Styles
   =========================================== */

/* Hero Section Override for Contact Page */
.contact-content + .page-hero,
main.main-content > .page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    color: #ffffff;
    margin: 0;
    border-radius: 0;
}

.page-hero .hero-title {
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 var(--space-md) 0;
    color: #ffffff;
}

.page-hero .hero-description {
    font-size: 20px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
}

/* Contact Content Section */
.contact-content {
    background: var(--md-surface);
    padding: var(--space-3xl) 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Contact Methods Grid */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.contact-card {
    background: var(--md-surface-container);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    background: var(--md-surface-container-highest);
    border-color: var(--md-primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(103, 80, 164, 0.2);
}

.card-icon {
    font-size: 56px;
    margin-bottom: var(--space-lg);
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--md-on-surface);
    margin: 0 0 var(--space-sm) 0;
}

.card-description {
    font-size: 16px;
    color: var(--md-on-surface-variant);
    margin: 0 0 var(--space-lg) 0;
    line-height: 1.6;
}

.contact-link {
    display: inline-block;
    color: var(--md-primary);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.contact-link:hover {
    color: var(--md-primary-container);
    transform: translateY(-2px);
}

.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, #6750a4 0%, #7c63b8 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(103, 80, 164, 0.3);
}

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #6750a4 0%, #7c63b8 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Quick Contact Section */
.quick-contact-section {
    background: var(--md-surface-container);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-3xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--md-on-surface);
    margin: 0 0 var(--space-sm) 0;
}

.section-subtitle {
    font-size: 18px;
    color: var(--md-on-surface-variant);
    margin: 0;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.form-field {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--md-on-surface);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 2px solid var(--md-outline-variant);
    border-radius: var(--radius-md);
    background: var(--md-surface);
    color: var(--md-on-surface);
    transition: all var(--transition-normal);
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 4px rgba(103, 80, 164, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    text-align: right;
    font-size: 14px;
    color: var(--md-on-surface-variant);
    margin-top: var(--space-xs);
}

/* Checkbox Field */
.checkbox-field {
    margin-bottom: var(--space-xl);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--md-outline-variant);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    background: var(--md-surface);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--md-primary);
    border-color: var(--md-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.checkbox-text {
    font-size: 16px;
    color: var(--md-on-surface-variant);
    line-height: 1.6;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #6750a4 0%, #7c63b8 100%);
    color: #ffffff;
    padding: 20px 48px;
    border-radius: 32px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    transition: all var(--transition-normal);
    box-shadow: 0 6px 24px rgba(103, 80, 164, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(103, 80, 164, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* FAQ Section */
.faq-section {
    margin-bottom: var(--space-3xl);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.faq-card {
    background: var(--md-surface-container);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.faq-card:hover {
    background: var(--md-surface-container-highest);
    border-color: var(--md-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(103, 80, 164, 0.15);
}

.faq-icon {
    font-size: 40px;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.faq-question {
    font-size: 20px;
    font-weight: 700;
    color: var(--md-on-surface);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.4;
}

.faq-answer {
    font-size: 16px;
    color: var(--md-on-surface-variant);
    line-height: 1.7;
    margin: 0;
}

/* Contact Banner */
.contact-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2xl);
    color: #ffffff;
    box-shadow: 0 16px 48px rgba(103, 80, 164, 0.3);
}

.banner-content {
    flex: 1;
}

.banner-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 var(--space-sm) 0;
}

.banner-text {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
}

.banner-actions {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

.banner-btn {
    padding: 16px 32px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid #ffffff;
    white-space: nowrap;
}

.banner-btn.primary {
    background: #ffffff;
    color: #6750a4;
}

.banner-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.banner-btn.secondary {
    background: transparent;
    color: #ffffff;
}

.banner-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-hero .hero-title {
        font-size: 36px;
    }
    
    .page-hero .hero-description {
        font-size: 18px;
    }
    
    main.main-content > .page-hero {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .quick-contact-section {
        padding: var(--space-2xl);
    }
    
    .contact-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .banner-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-hero .hero-title {
        font-size: 28px;
    }
    
    .page-hero .hero-description {
        font-size: 16px;
    }
    
    main.main-content > .page-hero {
        padding: var(--space-xl) var(--space-md);
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .contact-content {
        padding: var(--space-2xl) 0;
    }
    
    .contact-card {
        padding: var(--space-xl);
    }
    
    .card-icon {
        font-size: 48px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .quick-contact-section {
        padding: var(--space-xl);
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .faq-card {
        padding: var(--space-xl);
    }
    
    .faq-icon {
        font-size: 32px;
    }
    
    .faq-question {
        font-size: 18px;
    }
    
    .contact-banner {
        padding: var(--space-2xl);
    }
    
    .banner-title {
        font-size: 24px;
    }
    
    .banner-text {
        font-size: 16px;
    }
}
