/* Contact Page Enhanced Styles */

/* ============================================
   CONTACT HERO SECTION
   ============================================ */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, #003366 0%, #004080 50%, #003366 100%);
    padding: 120px 0 80px;
    overflow: hidden;
    margin-top: 0;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,215,0,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.stat-item i {
    font-size: 32px;
    color: var(--secondary-gold);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-align: center;
}

/* ============================================
   QUICK CONTACT BAR
   ============================================ */
.quick-contact-bar {
    background: #fff;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 30px 24px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-right: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.quick-contact-item:last-child {
    border-right: none;
}

.quick-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.quick-contact-item:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.quick-contact-item:hover::before {
    transform: scaleY(1);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-contact-item:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--secondary-gold) 0%, #e6b33a 100%);
    transform: rotate(5deg) scale(1.1);
}

.icon-wrapper i {
    font-size: 22px;
    color: #fff;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-details .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-weight: 600;
}

.contact-details .value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ============================================
   MAIN CONTACT SECTION
   ============================================ */
.contact-main-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 800;
}

.form-header p {
    color: #666;
    font-size: 16px;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--secondary-gold);
    font-size: 16px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

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

.char-count {
    font-size: 12px;
    color: #999;
    text-align: right;
}

.error-message {
    font-size: 12px;
    color: #e74c3c;
    display: none;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #e74c3c;
}

.form-group.error .error-message {
    display: block;
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

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

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

.checkbox-text {
    font-size: 14px;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004080 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004080 0%, var(--primary-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.form-message {
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CONTACT INFO SIDEBAR
   ============================================ */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.info-card h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.office-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 12px;
}

.office-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.office-tab:hover {
    background: rgba(0, 51, 102, 0.05);
    color: var(--primary-blue);
}

.office-tab.active {
    background: var(--primary-blue);
    color: #fff;
}

.office-tab i {
    font-size: 16px;
}

.office-details {
    display: none;
}

.office-details.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.office-info-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.office-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 20px;
    color: var(--secondary-gold);
}

.info-content {
    flex: 1;
}

.info-content h4 {
    font-size: 16px;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.info-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 4px;
}

.info-content a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--secondary-gold);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.map-link:hover {
    color: var(--primary-blue);
    gap: 8px;
}

/* Business Hours Card */
.hours-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-gold);
}

.hours-item.closed {
    border-left-color: #e0e0e0;
    opacity: 0.7;
}

.hours-item .day {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 14px;
}

.hours-item .time {
    font-size: 14px;
    color: #666;
}

.emergency-note {
    margin-top: 20px;
    padding: 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.emergency-note i {
    color: #ffc107;
    font-size: 18px;
    margin-top: 2px;
}

.emergency-note p {
    font-size: 13px;
    color: #856404;
    line-height: 1.5;
    margin: 0;
}

.emergency-note a {
    color: #856404;
    font-weight: 700;
    text-decoration: none;
}

.emergency-note a:hover {
    text-decoration: underline;
}

/* Social Media Card */
.social-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004080 100%);
    color: #fff;
}

.social-card h3 {
    color: #fff;
}

.social-links-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.social-link i {
    font-size: 18px;
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
}

.social-link.linkedin:hover {
    background: #0077b5;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    padding: 80px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 800;
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.maps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 32px;
}

.map-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.map-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
}

.map-header h3 {
    font-size: 20px;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
}

.badge {
    padding: 6px 12px;
    background: var(--secondary-gold);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay-link {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 51, 102, 0.95);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-overlay-link:hover {
    background: var(--secondary-gold);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.map-footer {
    padding: 16px 24px;
    background: #f8f9fa;
}

.map-footer p {
    margin: 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-footer i {
    color: var(--secondary-gold);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.faq-item {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-gold);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.faq-question i {
    color: var(--secondary-gold);
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.faq-question h3 {
    font-size: 18px;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.faq-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .maps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 16px;
    }
    
    .quick-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-contact-item {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .quick-contact-item:last-child {
        border-bottom: none;
    }
    
    .contact-form-wrapper {
        padding: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-links-large {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 60px 0 40px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .info-card {
        padding: 24px;
    }
    
    .office-selector {
        flex-direction: column;
    }
    
    .map-wrapper {
        height: 300px;
    }
}