/* =========================================
   CONTACT PAGE
========================================= */

.contact-page {
    background: #f5f7fb;
    color: #25334a;
}

.contact-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================
   CONTACT HERO
========================================= */

.contact-hero {
    padding: 75px 0 65px;
    background: #ffffff;
    text-align: center;
}

.contact-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #1685a9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.contact-hero h1 {
    margin: 0 0 16px;
    color: #082e65;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
}

.contact-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: #68758a;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   LOCATIONS SECTION
========================================= */

.contact-locations-section {
    padding: 75px 0 90px;
}

.contact-section-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.contact-section-heading h2 {
    margin: 0 0 14px;
    color: #082e65;
    font-size: clamp(27px, 3.5vw, 36px);
    font-weight: 700;
    line-height: 1.3;
}

.contact-section-heading p {
    margin: 0;
    color: #68758a;
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================
   LOCATION CARDS
========================================= */

.contact-locations-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-location-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;

    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(8, 46, 101, 0.06);

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.contact-location-card:hover {
    box-shadow: 0 14px 35px rgba(8, 46, 101, 0.11);
    transform: translateY(-2px);
}


/* =========================================
   LEFT COLUMN - CONTACT INFORMATION
========================================= */

.contact-location-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    padding: 38px;
}

.contact-location-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 17px;

    color: #1685a9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.contact-status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;

    background: #1685a9;
    border-radius: 50%;
}

.contact-location-info h3 {
    margin: 0 0 8px;

    color: #082e65;
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.35;
}

.contact-location-city {
    margin: 0 0 27px;

    color: #7b8798;
    font-size: 14px;
}


/* =========================================
   CONTACT DETAILS
========================================= */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 22px;

    width: 100%;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    min-width: 0;
}

.contact-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    height: 43px;
    flex-shrink: 0;

    color: #087da5;
    background: #eaf6fb;
    border-radius: 10px;

    font-size: 19px;
}

.contact-detail-item > div {
    min-width: 0;
    padding-top: 2px;
}

.contact-detail-item strong {
    display: block;
    margin-bottom: 5px;

    color: #25334a;
    font-size: 14px;
    font-weight: 700;
}

.contact-detail-item p {
    margin: 0;

    color: #68758a;
    font-size: 14px;
    line-height: 1.8;

    overflow-wrap: anywhere;
}

.contact-detail-item a {
    color: #68758a;
    text-decoration: none;

    transition: color 0.2s ease;
}

.contact-detail-item a:hover {
    color: #087da5;
}

/* =========================================
   CONTACT LOCATION WORKING HOURS
========================================= */

.contact-hours-item {
    align-items: flex-start;
}

.contact-hours-content {
    flex: 1;
    min-width: 0;
}

.contact-hours-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8edf5;
    font-size: 14px;
    line-height: 1.5;
}

.contact-hours-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-hours-days {
    color: #071c68;
    font-weight: 600;
    flex: 1;
}

.contact-hours-time {
    color: #555;
    text-align: right;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .contact-hours-row {
        flex-direction: column;
        gap: 3px;
    }

    .contact-hours-time {
        text-align: left;
    }
}


/* =========================================
   ACTION BUTTONS
========================================= */

.contact-location-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    margin-top: auto;
    padding-top: 30px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 45px;
    padding: 12px 17px;

    border: 1px solid transparent;
    border-radius: 7px;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.contact-btn i {
    font-size: 15px;
}

.contact-btn-primary {
    color: #ffffff;
    background: #087da5;
    border-color: #087da5;
}

.contact-btn-primary:hover {
    color: #ffffff;
    background: #065f80;
    border-color: #065f80;
}

.contact-btn-outline {
    color: #082e65;
    background: #ffffff;
    border-color: #d7e0eb;
}

.contact-btn-outline:hover {
    color: #087da5;
    background: #f0f8fc;
    border-color: #087da5;
}


/* =========================================
   RIGHT COLUMN - MAP
========================================= */

.contact-location-map {
    position: relative;
    min-width: 0;
    min-height: 400px;
    overflow: hidden;
    background: #e8eef4;
}

.contact-map-link {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.contact-location-map img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 400px;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.contact-location-card:hover .contact-location-map img {
    transform: scale(1.035);
}


/* =========================================
   MAP PLACEHOLDER
   Displayed when map_image is not configured
========================================= */

.contact-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    height: 100%;
    min-height: 400px;

    color: #58718b;
    background:
        linear-gradient(135deg, #edf4f8, #dce8f0);

    font-size: 14px;
    font-weight: 600;
}

.contact-map-placeholder i {
    color: #087da5;
    font-size: 45px;
}


/* =========================================
   MAP OVERLAY
========================================= */

.contact-map-overlay {
    position: absolute;
    right: 18px;
    bottom: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 12px 16px;

    color: #082e65;
    background: #ffffff;
    border: 1px solid rgba(8, 46, 101, 0.08);
    border-radius: 7px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);

    font-size: 13px;
    font-weight: 700;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.contact-map-link:hover .contact-map-overlay {
    color: #ffffff;
    background: #087da5;
}


/* =========================================
   EMPTY STATE
========================================= */

.contact-empty-message {
    padding: 30px;
    color: #68758a;
    background: #ffffff;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    text-align: center;
    line-height: 1.7;
}


/* =========================================
   LOCATION BOOKING SECTION
========================================= */

.location-booking {
    position: relative;
    overflow: hidden;
    padding: 85px 20px;
    background: #505f74;
    color: #ffffff;
    text-align: center;
}

/* Subtle decorative glow */
.location-booking::before {
    content: "";
    position: absolute;
    top: -130px;
    right: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.location-booking::after {
    content: "";
    position: absolute;
    bottom: -180px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.location-booking-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.location-booking-label {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.location-booking h2 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
}

.location-booking p {
    max-width: 620px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.8;
}

.location-booking-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 28px;
    border: 2px solid #e51217;
    border-radius: 6px;
    background: #e51217;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.location-booking-btn:hover {
    transform: translateY(-3px);
    border-color: #ffffff;
    background: #ffffff;
    color: #071c68;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.location-booking-btn i {
    font-size: 18px;
}


/* =========================================
   ONLINE BOOKING PAGE
========================================= */

.booking-page {
    padding: 65px 0 80px;
    background: #f5f7fb;
}

.booking-heading {
    max-width: 760px;
    margin: 0 auto 35px;
    text-align: center;
}

.booking-eyebrow {
    margin-bottom: 12px;
    color: #4267a9;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.booking-heading h1 {
    margin: 0 0 18px;
    color: #071c68;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
}

.booking-heading > p:last-child {
    color: #5d6678;
    font-size: 16px;
    line-height: 1.8;
}

.booking-frame-container {
    overflow: hidden;
    width: 100%;
    border: 1px solid #e0e6f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(7, 28, 104, 0.08);
}

.booking-frame {
    display: block;
    width: 100%;
    height: 850px;
    border: 0;
    background: #ffffff;
}

.booking-back {
    margin-top: 25px;
    text-align: center;
}

.booking-back a {
    color: #071c68;
    font-weight: 600;
    text-decoration: none;
}

.booking-back a:hover {
    color: #4267a9;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .booking-page {
        padding: 40px 0 55px;
    }

    .booking-heading {
        margin-bottom: 25px;
    }

    .booking-heading > p:last-child {
        font-size: 15px;
    }

    .booking-frame {
        height: 900px;
    }
}



/* Mobile */
@media (max-width: 600px) {
    .location-booking {
        padding: 60px 20px;
    }

    .location-booking p {
        font-size: 15px;
        line-height: 1.7;
    }

    .location-booking-btn {
        width: 100%;
        max-width: 330px;
        padding: 14px 18px;
        font-size: 15px;
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
    .contact-location-info {
        padding: 28px;
    }

    .contact-location-map,
    .contact-location-map img,
    .contact-map-placeholder {
        min-height: 430px;
    }

    .contact-location-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .contact-btn {
        width: 100%;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 680px) {
    .contact-container {
        width: calc(100% - 28px);
    }

    .contact-hero {
        padding: 50px 0 45px;
    }

    .contact-hero h1 {
        font-size: 34px;
    }

    .contact-hero p {
        font-size: 15px;
    }

    .contact-locations-section {
        padding: 50px 0 60px;
    }

    .contact-section-heading {
        margin-bottom: 30px;
    }

    .contact-section-heading p {
        font-size: 15px;
    }

    .contact-locations-list {
        gap: 24px;
    }

    .contact-location-card {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 12px;
    }

    .contact-location-info {
        padding: 27px 22px;
    }

    .contact-location-info h3 {
        font-size: 24px;
    }

    .contact-location-city {
        margin-bottom: 23px;
    }

    .contact-details {
        gap: 20px;
    }

    .contact-location-actions {
        padding-top: 25px;
    }

    .contact-location-map,
    .contact-location-map img,
    .contact-map-placeholder {
        min-height: 270px;
    }

    .contact-map-overlay {
        right: 12px;
        bottom: 12px;
        padding: 10px 13px;
        font-size: 12px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {
    .contact-location-info {
        padding: 23px 17px;
    }

    .contact-location-info h3 {
        font-size: 22px;
    }

    .contact-detail-item {
        gap: 11px;
    }

    .contact-detail-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .contact-btn {
        padding: 11px 12px;
        font-size: 12px;
    }
}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {
    .contact-location-card,
    .contact-location-map img,
    .contact-btn,
    .contact-detail-item a,
    .contact-map-overlay {
        transition: none;
    }

    .contact-location-card:hover {
        transform: none;
    }

    .contact-location-card:hover .contact-location-map img {
        transform: none;
    }
}
