﻿/* ========================
   Contact Page Styles
   ======================== */

:root {
    --primary-blue: #0066CC;
    --light-blue: #3399FF;
    --accent-orange: #FFA500;
    --highlight-red: #E63946;
    --text-dark: #222222;
    --text-medium: #555555;
    --text-light: #777777;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --border-color: #E5E7EB;
    --success-green: #25D366;
    --gold: #FFD700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 52px;
}

h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
}

/* Header - Same as other pages */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu > ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > ul > li {
    position: relative;
}

.nav-menu > ul > li > a {
    display: block;
    font-size: 19px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
    padding: 10px 22px;
    white-space: nowrap;
}

.nav-menu > ul > li > a:hover,
.nav-menu a[aria-current="page"] {
    color: var(--primary-blue);
}

.nav-menu a[href="javascript:void(0)"] {
    cursor: pointer;
}

.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    padding: 8px 0;
    border-radius: 6px;
    margin-top: 0;
    z-index: 100;
}

.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown li {
    padding: 0;
    list-style: none;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    text-align: center;
}

.hero-content h1 {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto;
}

/* Quick Contact Cards */
.quick-contact {
    padding: 0;
    background: var(--bg-white);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.quick-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 36px 40px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.email-card {
    border-left: 6px solid var(--primary-blue);
}

.address-card {
    border-left: 6px solid var(--accent-orange);
}

.quick-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.email-card .quick-icon {
    color: var(--primary-blue);
}

.address-card .quick-icon {
    color: var(--accent-orange);
}

.quick-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.quick-content a {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 6px;
    transition: color 0.3s;
}

.quick-content a:hover {
    color: var(--light-blue);
}

.quick-content p {
    font-size: 18px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.address-text {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

/* Contact Info Panel */
.contact-info-panel h2 {
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 40px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.15);
}

.card-icon {
    font-size: 32px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.card-content a {
    display: block;
    font-size: 19px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 6px;
    transition: color 0.3s;
}

.card-content a:hover {
    color: var(--light-blue);
}

.card-content p {
    font-size: 18px;
    color: var(--text-light);
    margin: 0;
}

/* Office Info */
.office-info {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 12px;
    border-left: 4px solid var(--accent-orange);
    margin-bottom: 32px;
}

.office-icon {
    font-size: 36px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.office-details h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.office-details p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 4px;
}

/* Business Hours */
.business-hours {
    padding: 28px;
    background: var(--bg-light);
    border-radius: 12px;
}

.business-hours h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-hours h3 i {
    color: var(--primary-blue);
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-white);
    border-radius: 8px;
}

.hours-item .day {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-item .time {
    color: var(--text-medium);
}

.timezone-note {
    font-size: 18px;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Contact Form Panel */
.contact-form-panel {
    background: var(--bg-white);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(31, 41, 55, 0.08);
}

.contact-form-panel h2 {
    color: var(--text-dark);
    margin-bottom: 12px;
}

.form-intro {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 32px;
}

.contact-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;
}

.form-group label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.required {
    color: var(--highlight-red);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    font-size: 18px;
    font-family: inherit;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    color: var(--bg-white);
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
    min-width: 200px;
}

.submit-btn:hover {
    background: #0052A3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

.form-status {
    min-height: 28px;
    margin: -8px 0 0;
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 600;
}

.form-note {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.form-note a {
    color: var(--primary-blue);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Facility Section */
.facility-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.facility-section h2 {
    text-align: center;
    color: var(--primary-blue);
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 14px;
}

.travel-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 42px;
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.travel-note i {
    flex-shrink: 0;
    color: var(--accent-orange);
    font-size: 22px;
}

.facility-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.facility-image img {
    width: 100%;
    display: block;
}

.facility-caption {
    padding: 32px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
}

.facility-caption h3 {
    font-size: 26px;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.facility-caption p {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

/* Why Contact Us */
.why-contact {
    padding: 100px 0;
    background: var(--bg-white);
}

.why-contact h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 36px 28px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e8f4fd 100%);
    border-radius: 12px;
    border: 2px solid var(--primary-blue);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.2);
}

.benefit-icon {
    font-size: 52px;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.benefit-card p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    color: var(--text-dark);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-weight: 700;
}

.footer-col p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 180px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-dark);
    font-size: 18px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-dark);
    font-size: 18px;
}

.contact-info i {
    color: var(--primary-blue);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 102, 204, 0.2);
}

.footer-bottom p {
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .quick-cards {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .quick-contact {
        margin-top: -30px;
        padding: 0 20px;
    }
    
    .quick-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-card {
        padding: 28px 24px;
    }
    
    .quick-icon {
        font-size: 40px;
    }
    
    .quick-content h3 {
        font-size: 20px;
    }
    
    .quick-content a {
        font-size: 18px;
    }
    
    .nav-menu {
        position: fixed;
        top: 86px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        max-height: calc(100vh - 86px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu > ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu > ul > li > a {
        padding: 18px 24px;
    }
    
    .dropdown {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        margin: 0;
        padding: 0;
        border-radius: 0;
    }
    
    .dropdown a {
        padding: 14px 24px 14px 44px;
    }
    
    .has-dropdown:hover .dropdown {
        display: none;
    }
    
    .has-dropdown.active .dropdown {
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 34px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-panel {
        padding: 28px 24px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 18px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .info-card,
    .office-info {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
    }
}

/* Keep the complete 19px navigation visible on tablet landscape. */
@media (min-width: 1025px) and (max-width: 1200px) {
    .header .container {
        padding: 0 16px;
    }

    .nav-wrapper,
    .nav-menu > ul {
        gap: 0;
    }

    .logo img {
        height: 40px;
    }

    .nav-menu > ul > li > a {
        padding: 10px 8px;
        font-size: 19px;
    }
}

@media (min-width: 961px) and (max-width: 1024px) and (orientation: landscape) {
    .header .container {
        padding: 0 16px;
    }

    .nav-wrapper,
    .nav-menu > ul {
        gap: 0;
    }

    .logo img {
        height: 40px;
    }

    .nav-menu > ul > li > a {
        padding: 10px 8px;
        font-size: 19px;
    }
}

/* Tablet portrait uses the same drawer navigation as mobile. */
@media (max-width: 960px), (max-width: 1024px) and (orientation: portrait) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        background: var(--bg-white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        padding: 80px 0 40px;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
        left: auto;
    }

    .nav-menu > ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-menu > ul > li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu > ul > li > a {
        padding: 18px 30px;
        font-size: 18px;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        background: var(--bg-light);
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    .dropdown a {
        padding: 14px 24px 14px 50px;
        font-size: 17px;
    }

    .has-dropdown:hover .dropdown {
        display: none;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .has-dropdown::after {
        display: none;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}
