/* ============================================
   CONTACT.CSHTML - CONTACT PAGE STYLES  
   ============================================ */

/* Contact Page Header */
.contact-header {
    background: var(--gradient-hero);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.5;
}

.contact-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.contact-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    margin-bottom: 2rem;
}

.contact-logo i {
    font-size: 2rem;
}

.contact-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Navigation */
.contact-nav-bar {
    background: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.contact-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.contact-back-link:hover {
    color: var(--primary-dark);
    transform: translateX(-2px);
}

.contact-response-time {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-response-time i {
    color: var(--accent);
}

/* Contact Layout */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: var(--background);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-form-section {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Contact Form Elements */
.contact-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-form-group {
    margin-bottom: 1.5rem;
}

.contact-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.contact-form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--surface);
    font-family: inherit;
}

.contact-form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(227, 193, 110, 0.1);
}

.contact-form-control.success {
    border-color: var(--accent);
}

.contact-form-control.error {
    border-color: var(--danger);
}

.contact-form-row, 
.contact-form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-error-message {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.contact-success-message {
    color: var(--accent);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.contact-btn-primary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    background: var(--gradient);
    color: white;
}

.contact-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.contact-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: contactSpin 1s ease-in-out infinite;
}

@keyframes contactSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Contact Info Cards */
.contact-card {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-brand);
    border-color: var(--primary);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-dark);
}

/* Office Hours */
.contact-office-hours {
    background: rgba(31, 79, 91, 0.1);
    border: 1px solid rgba(31, 79, 91, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.contact-office-hours h4 {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-hours-list {
    display: grid;
    gap: 0.5rem;
}

.contact-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(31, 79, 91, 0.1);
}

.contact-hours-item:last-child {
    border-bottom: none;
}

.contact-hours-day {
    font-weight: 500;
    color: var(--text-primary);
}

.contact-hours-time {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* FAQ Section */
.contact-faq-section {
    margin-top: 4rem;
}

.contact-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-faq-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.contact-faq-card h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-faq-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Social Section */
.contact-social-section {
    background: var(--gradient);
    color: white;
    padding: 4rem 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin-top: 4rem;
}

.contact-social-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-social-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-social-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
}

.contact-social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.contact-social-link i {
    font-size: 1.25rem;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================ */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .contact-container {
        padding: 3rem 1.5rem;
    }
    
    .contact-form-grid {
        gap: 3rem;
    }
    
    .contact-header-content {
        padding: 0 1.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .contact-header {
        padding: 3rem 0;
    }
    
    .contact-header h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .contact-header p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 0;
    }

    .contact-header-content {
        padding: 0 1rem;
    }

    .contact-container {
        padding: 2.5rem 1rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 3rem;
    }

    .contact-form-section {
        padding: 2.5rem 1.5rem;
    }

    .contact-nav-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact-form-row,
    .contact-form-group-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .contact-social-link {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
        max-width: 200px;
        justify-content: center;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .contact-card .contact-icon {
        margin-bottom: 1rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .contact-header {
        padding: 2.5rem 0;
    }
    
    .contact-header h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .contact-header p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .contact-header-content {
        padding: 0 0.75rem;
    }

    .contact-logo {
        margin-bottom: 1.5rem;
    }

    .contact-container {
        padding: 2rem 0.75rem;
    }

    .contact-form-section {
        padding: 2rem 1rem;
        border-radius: var(--border-radius);
    }

    .contact-section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .contact-section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-form-group {
        margin-bottom: 1.25rem;
    }

    .contact-form-control {
        padding: 0.875rem 1rem;
        font-size: 1rem; /* Prevent zoom on iOS */
        min-height: 48px; /* Touch-friendly minimum */
    }

    .contact-form-control:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        border-color: var(--primary);
    }

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

    .contact-btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px; /* Touch-friendly minimum */
    }

    .contact-nav-bar {
        padding: 0.75rem 0;
    }

    .contact-nav-content {
        padding: 0 0.75rem;
        gap: 0.75rem;
    }

    .contact-back-link {
        font-size: 0.875rem;
    }

    .contact-response-time {
        font-size: 0.875rem;
    }

    .contact-card {
        padding: 1.25rem 1rem;
        margin-bottom: 1rem;
    }

    .contact-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .contact-card p {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .contact-office-hours h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .contact-hours-item {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }

    .contact-faq-section {
        margin-top: 2.5rem;
    }

    .contact-faq-card {
        padding: 1.5rem 1rem;
    }

    .contact-faq-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .contact-faq-card p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .contact-social-section {
        margin-top: 2.5rem;
        text-align: center;
    }

    .contact-social-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .contact-social-section p {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .contact-social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .contact-social-link {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
        justify-content: center;
        font-size: 0.875rem;
    }
}

/* Small mobile phones */
@media (max-width: 320px) {
    .contact-header {
        padding: 2rem 0;
    }
    
    .contact-header h1 {
        font-size: 1.75rem;
        line-height: 1.1;
    }

    .contact-container {
        padding: 1.5rem 0.5rem;
    }

    .contact-form-section {
        padding: 1.5rem 0.75rem;
    }

    .contact-section-title {
        font-size: 1.5rem;
    }

    .contact-form-control {
        padding: 0.75rem 0.875rem;
    }

    .contact-btn {
        padding: 0.875rem 1.25rem;
    }

    .contact-card {
        padding: 1rem 0.75rem;
    }

    .contact-faq-card {
        padding: 1.25rem 0.75rem;
    }

    .contact-social-link {
        max-width: 240px;
        padding: 0.875rem;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .contact-header {
        padding: 2rem 0;
    }
    
    .contact-header h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-header p {
        font-size: 0.875rem;
        margin-bottom: 0;
    }
    
    .contact-container {
        padding: 1.5rem 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .contact-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .contact-success-icon {
        animation: none;
    }
    
    .contact-btn,
    .contact-social-link,
    .contact-faq-card {
        transition: none;
    }
}

/* Success animation */
.contact-success-state {
    display: none;
    text-align: center;
    padding: 2rem;
}

.contact-success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    animation: checkmark 0.6s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Focus styles for better accessibility */
.contact-form-control:focus,
.contact-btn:focus,
.contact-social-link:focus,
.contact-back-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
    .contact-btn,
    .contact-social-link,
    .contact-back-link {
        min-height: 48px;
        min-width: 48px;
    }
    
    .contact-form-control {
        min-height: 48px;
    }
}
