/* contact.css - Professional Contact Page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    min-height: 100vh;
    padding: 40px 24px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.contact-header {
    text-align: center;
    margin-bottom: 48px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242, 168, 58, 0.15);
    padding: 8px 20px;
    border-radius: 60px;
    margin-bottom: 20px;
}

.header-badge i {
    color: #f2a83a;
    font-size: 14px;
}

.header-badge span {
    color: #f2a83a;
    font-size: 13px;
    font-weight: 500;
}

.contact-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1f2a44;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.contact-header p {
    font-size: 16px;
    color: #64748b;
}

/* Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 40px;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.loading-spinner i {
    font-size: 2.5rem;
    color: #f2a83a;
    margin-bottom: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateX(8px);
    border-color: #f2a83a;
    box-shadow: 0 10px 30px rgba(242, 168, 58, 0.1);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    background: #f8fafc;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
}

.contact-card:hover .contact-card-icon i {
    color: white;
}

.contact-card-info {
    flex: 1;
}

.contact-card-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2a44;
    margin-bottom: 6px;
}

.contact-card-info p {
    font-size: 14px;
    color: #475569;
}

.contact-card-info small {
    font-size: 12px;
    color: #94a3b8;
}

.contact-card-arrow {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.contact-card-arrow i {
    font-size: 14px;
    color: #f2a83a;
}

/* Contact Form */
.contact-form-section {
    background: white;
    border-radius: 28px;
    padding: 32px;
    border: 1px solid #e2e8f0;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(242, 168, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.form-header-icon i {
    font-size: 32px;
    color: #f2a83a;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2a44;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 13px;
    color: #64748b;
}

/* User Info Badge - Shows logged in user info */
.user-info-badge {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    border: 1px solid #bbf7d0;
}

.user-info-badge i {
    font-size: 40px;
    color: #10b981;
}

.user-info-details {
    flex: 1;
}

.user-info-details span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
}

.user-info-details .user-email {
    font-size: 12px;
    font-weight: normal;
    color: #15803d;
    margin-top: 4px;
}

/* Login Required */
.login-required {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 20px;
}

.login-required i {
    font-size: 52px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.login-message-content h4 {
    font-size: 20px;
    color: #92400e;
    margin-bottom: 8px;
}

.login-message-content p {
    color: #b45309;
    margin-bottom: 24px;
}

.login-redirect-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Form Inputs */
.input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.input-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.input-icon i {
    font-size: 20px;
    color: #f2a83a;
}

.input-field {
    flex: 1;
    position: relative;
}

.input-field input,
.input-field select,
.input-field textarea {
    width: 100%;
    padding: 14px 0 6px 0;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: transparent;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
    outline: none;
    border-bottom-color: #f2a83a;
}

.input-field label {
    position: absolute;
    left: 0;
    top: 14px;
    font-size: 15px;
    color: #94a3b8;
    transition: all 0.2s ease;
    pointer-events: none;
}

.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label,
.input-field select:focus ~ label,
.input-field select:not([value=""]) ~ label,
.input-field textarea:focus ~ label,
.input-field textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 11px;
    color: #f2a83a;
}

.char-counter {
    text-align: right;
    font-size: 11px;
    color: #94a3b8;
    margin-top: -12px;
    margin-bottom: 16px;
}

.send-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1f2a44, #2d3a5e);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: linear-gradient(135deg, #f2a83a, #e5982b);
    transform: translateY(-2px);
}

/* Office Section */
.office-section {
    background: white;
    border-radius: 24px;
    padding: 24px 32px;
    border: 1px solid #e2e8f0;
}

.office-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.office-header i {
    font-size: 24px;
    color: #f2a83a;
}

.office-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2a44;
}

.office-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.office-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-icon i {
    font-size: 28px;
    color: #ef4444;
}

.office-details {
    flex: 1;
}

.office-details p {
    margin-bottom: 12px;
    color: #475569;
}

.directions-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 13px;
    cursor: pointer;
}

.directions-btn:hover {
    border-color: #f2a83a;
    color: #f2a83a;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 16px;
    }
    
    .contact-form-section {
        padding: 24px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-icon {
        display: none;
    }
    
    .office-content {
        flex-direction: column;
        text-align: center;
    }
    
    .user-info-badge {
        flex-direction: column;
        text-align: center;
    }
}
/* Remove body styles that interfere with sticky header */
body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Contact container should not add extra top padding */
.contact-container {
    padding-top: 0 !important;
}

/* Ensure contact page content flows normally */
.contact-view-container .contact-container {
    margin-top: 0;
    padding-top: 0;
}

/* Add to the end of contact.css */

/* ==================== SHARED HEADER ADJUSTMENTS ==================== */
/* Remove contact page's own header spacing since we use shared header */
body {
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px 24px;
}

/* Adjust header spacing for contact page */
.contact-header {
    margin-bottom: 48px;
    padding-top: 20px;
}

/* Mobile adjustments for shared header */
@media (max-width: 768px) {
    .contact-container {
        padding: 20px 16px 40px 16px;
    }
    
    .contact-header {
        margin-bottom: 32px;
        padding-top: 10px;
    }
    
    .contact-header h1 {
        font-size: 28px;
    }
}

/* Ensure contact page content doesn't overlap with sticky header */
.desktop-header + .contact-container,
.mobile-header + .contact-container {
    margin-top: 0;
}