/*=========================================
CONTACT HERO
=========================================*/
.contact-hero {
    padding: 80px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    position: relative;
    overflow: hidden;
}

/* ==========================================
   HERO GRID
========================================== */
.contact-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 80px;
    align-items: center;
}

/* ==========================================
   LEFT CONTENT
========================================== */
.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero-content h1 {
    font-size: 54px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 20px 0;
}

.contact-hero-content h1 span {
    color: var(--blue);
}

.contact-hero-content p {
    max-width: 620px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin-top: 20px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.section-tag span {
    width: 22px;
    height: 2px;
    background: var(--blue);
    display: inline-block;
}

/* ==========================================
   BUTTONS
========================================== */
.contact-hero-buttons {
    display: flex;
    gap: 18px;
    margin-top: 40px;
}

.contact-hero-buttons .btn {
    height: 54px;
    padding: 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-weight: 700;
    transition: .35s ease;
}

.contact-hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 86, 255, .30);
}

.contact-hero-buttons .btn-outline {
    border: 1px solid #0b1220;
    color: #0b1220;
}

.contact-hero-buttons .btn-outline:hover {
    background: #0b1220;
    color: #fff;
}

/* ==========================================
   IMAGE
========================================== */
.contact-hero-image {
    position: relative;
    z-index: 1;
}

.contact-hero-image img {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .10);
    transition: .4s ease;
}

.contact-hero-image img:hover {
    transform: scale(1.02);
}

/* ==========================================
   BLUE CIRCLE
========================================== */
.contact-image-circle {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(45, 91, 255, .08);
    right: -30px;
    top: -30px;
    z-index: 0;
}

/* ==========================================
   BLUE SQUARE
========================================== */
.contact-image-shape {
    position: absolute;
    width: 120px;
    height: 120px;
    left: -30px;
    bottom: -30px;
    border-radius: 30px;
    background: #2d5bff;
    opacity: .08;
    transform: rotate(25deg);
    z-index: 0;
}

/* ==========================================
   TABLET
========================================== */
@media(max-width: 992px) {
    .contact-hero {
        padding: 80px 0 70px;
    }

    .contact-hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
        text-align: center;
    }

    .contact-hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-hero-buttons {
        justify-content: center;
    }

    .contact-hero-image {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }

    .contact-hero-image img {
        height: 450px;
    }
}

/* ==========================================
   MOBILE
========================================== */
@media(max-width: 768px) {
    .contact-hero {
        padding: 65px 0 60px;
    }

    .contact-hero-content h1 {
        font-size: 40px;
        line-height: 1.05;
        letter-spacing: -1.5px;
    }

    .contact-hero-content p {
        font-size: 16px;
    }

    .contact-hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 30px;
    }

    .contact-hero-buttons .btn {
        width: 100%;
    }

    .contact-hero-image img {
        height: 350px;
        border-radius: 24px;
    }

    .contact-image-circle {
        width: 110px;
        height: 110px;
        right: -15px;
        top: -20px;
    }

    .contact-image-shape {
        width: 80px;
        height: 80px;
        left: -15px;
        bottom: -20px;
        border-radius: 20px;
    }
}

/*=========================================
CONTACT INFO
=========================================*/
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    transition: .35s;
    text-align: center;
    margin-left: 50px;
    margin-right: 50px;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .08);
}

.info-card i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.info-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.info-card p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

.info-card a {
    font-weight: 700;
    color: var(--blue);
}

/*=========================================
CONTACT FORM
=========================================*/
.contact-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.contact-left h2 {
    font-size: 65px;
    line-height: .95;
    letter-spacing: -.05em;
    margin: 25px 0;
}

.contact-left p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 35px;
}

.contact-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-left li {
    margin-bottom: 18px;
    font-size: 18px;
}

.contact-form {
    background: #fff;
    padding: 45px;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .06);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 22px;
}

.contact-form span {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    border: 1px solid var(--line);
    background: #f7f8fb;
    padding: 16px;
    border-radius: 12px;
    outline: none;
    transition: .3s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 5px rgba(37, 86, 255, .08);
}

.contact-form textarea {
    resize: vertical;
}

/*=========================================
LOCATIONS
=========================================*/
.locations {
    background: #fff;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.location-card {
    padding: 45px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    transition: .35s;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .08);
}

.location-card h3 {
    font-size: 35px;
    line-height: 1;
    margin-bottom: 25px;
    font-weight: 800;
}

.country {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 35px;
}

.country i {
    color: var(--blue);
    font-size: 10px;
}

.location-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.location-card li {
    margin-bottom: 18px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.location-card a {
    display: inline-flex;
    gap: 10px;
    font-weight: 700;
    color: var(--blue);
}

/*=========================================
MAP
=========================================*/
.map-section {
    padding: 0 0 120px;
}

.map-section iframe {
    width: 100%;
    height: 600px;
    border: 0;
    border-radius: 28px;
}

/*=========================================
CTA
=========================================*/
.contact-cta {
    background: rgb(2, 2, 158);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.contact-cta h2 {
    font-size: clamp(50px, 5vw, 90px);
    line-height: .95;
    letter-spacing: -.05em;
    margin-bottom: 25px;
}

.contact-cta p {
    color: rgba(255, 255, 255, .65);
    font-size: 20px;
    margin-bottom: 45px;
}

/*=========================================
RESPONSIVE
=========================================*/
@media(max-width:1024px) {

    .contact-hero .hero-grid,
    .contact-layout,
    .location-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        height: 500px;
    }

    .location-card h3 {
        font-size: 56px;
    }
}

@media(max-width:768px) {
    .contact-hero {
        padding: 140px 0 80px;
    }

    .contact-hero h1 {
        font-size: 58px;
    }

    .contact-left h2 {
        font-size: 46px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .location-card {
        padding: 35px;
    }

    .location-card h3 {
        font-size: 48px;
    }

    .map-section iframe {
        height: 400px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   CONTACT PAGE — FINAL RESPONSIVE OVERRIDES
   ========================================================= */

html {
    overflow-x: hidden;
}

body {
    min-width: 0;
    overflow-x: hidden;
}

img,
iframe {
    max-width: 100%;
}

.container {
    width: min(1240px, calc(100% - 48px));
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        width: min(760px, calc(100% - 40px));
    }

    /* Hero */
    .contact-hero {
        padding: 80px 0 65px;
    }

    .contact-hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
        text-align: center;
    }

    .contact-hero-content p {
        margin-inline: auto;
    }

    .contact-hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact-hero-image {
        max-width: 700px;
        width: 100%;
        margin-inline: auto;
    }

    .contact-hero-image img {
        height: 450px;
    }

    /* Info */
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .info-card {
        margin: 0;
        padding: 28px 20px;
    }

    .info-card h3 {
        font-size: 24px;
    }

    /* Contact form */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-left {
        max-width: 700px;
    }

    .contact-left h2 {
        font-size: clamp(42px, 7vw, 58px);
    }

    .contact-form {
        padding: 34px 28px;
    }

    /* Locations */
    .location-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .location-card {
        padding: 30px 24px;
    }

    .location-card h3 {
        font-size: 52px;
    }

    .country {
        font-size: 19px;
    }

    .location-card li {
        font-size: 15px;
    }

    /* Map */
    .map-section {
        padding-bottom: 75px;
    }

    .map-section iframe {
        height: 480px;
        border-radius: 22px;
    }

    /* CTA */
    .contact-cta {
        padding: 70px 20px;
    }

    .contact-cta h2 {
        font-size: clamp(42px, 7vw, 68px);
    }

    .contact-cta p {
        font-size: 17px;
    }


}

/* Mobile */
@media (max-width: 768px) {
    .container {
        width: calc(100% - 32px);
    }

    .contact-hero {
        padding: 58px 0 52px;
    }

    .contact-hero-content h1 {
        font-size: clamp(34px, 9vw, 44px);
        line-height: 1.08;
        letter-spacing: -1.2px;
    }

    .contact-hero-content p {
        font-size: 15px;
        line-height: 1.7;
    }

    .section-tag,
    .eyebrow {
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-top: 50px;
    }

    .contact-hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 11px;
        margin-top: 28px;
    }

    .contact-hero-buttons .btn {
        width: 100%;
        max-width: 360px;
        margin-inline: auto;
    }

    .contact-hero-image {
        width: calc(100% - 18px);
    }

    .contact-hero-image img {
        height: 330px;
        border-radius: 22px;
    }

    .contact-image-circle {
        width: 105px;
        height: 105px;
        right: -15px;
        top: -18px;
    }

    .contact-image-shape {
        width: 75px;
        height: 75px;
        left: -15px;
        bottom: -18px;
        border-radius: 20px;
    }

    /* Contact details */
    .section-head {
        grid-template-columns: 1fr !important;
        gap: 16px;
        margin-bottom: 32px;
    }

    .section-head h2 {
        font-size: clamp(29px, 8vw, 38px);
        line-height: 1.12;
    }

    .section-head>p {
        max-width: none;
        font-size: 15px;
        line-height: 1.7;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .info-card {
        margin: 0;
        padding: 25px 18px;
        border-radius: 18px;
    }

    .info-card i {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .info-card h3 {
        font-size: 22px;
        margin: 14px 0 10px;
    }

    .info-card p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 18px;
    }

    /* Form */
    .contact-layout {
        gap: 30px;
    }

    .contact-left h2 {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.05;
    }

    .contact-left p {
        font-size: 15px;
        line-height: 1.7;
    }

    .contact-left li {
        font-size: 15px;
        margin-bottom: 13px;
    }

    .contact-form {
        padding: 25px 17px;
        border-radius: 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form label {
        margin-bottom: 18px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
        padding: 14px;
    }

    /* Locations */
    .location-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .location-card {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .location-card h3 {
        font-size: 35px;
        margin-bottom: 18px;
    }

    .country {
        font-size: 18px;
        margin-bottom: 22px;
    }

    .location-card ul {
        margin-bottom: 25px;
    }

    .location-card li {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 11px;
    }

    /* Map */
    .map-section {
        padding-bottom: 50px;
    }

    .map-section iframe {
        height: 330px;
        border-radius: 18px;
    }

    /* CTA */
    .contact-cta {
        padding: 58px 16px;
    }

    .contact-cta h2 {
        font-size: clamp(34px, 9vw, 48px);
        line-height: 1.05;
    }

    .contact-cta p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 30px;
    }


}

/* Small phones */
@media (max-width: 480px) {
    .container {
        width: calc(100% - 24px);
    }

    .contact-hero {
        padding: 48px 0 44px;
    }

    .contact-hero-content h1 {
        font-size: 32px;
    }

    .contact-hero-content p {
        font-size: 14px;
    }

    .contact-hero-image {
        width: calc(100% - 10px);
    }

    .contact-hero-image img {
        height: 250px;
        border-radius: 17px;
    }

    .contact-image-circle {
        width: 75px;
        height: 75px;
        right: -10px;
        top: -10px;
    }

    .contact-image-shape {
        width: 58px;
        height: 58px;
        left: -10px;
        bottom: -10px;
        border-radius: 16px;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .info-card {
        padding: 22px 16px;
    }

    .contact-form {
        padding: 21px 14px;
    }

    .location-card {
        padding: 22px 17px;
    }

    .location-card h3 {
        font-size: 40px;
    }

    .country {
        font-size: 17px;
    }

    .map-section iframe {
        height: 280px;
        border-radius: 14px;
    }

    .contact-cta {
        padding: 48px 14px;
    }

    .contact-cta h2 {
        font-size: 32px;
    }

    .contact-cta p {
        font-size: 14px;
    }


}

/* Landscape phones */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 900px) {
    .contact-hero {
        padding: 45px 0;
    }

    .contact-hero-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        align-items: center;
    }

    .contact-hero-content p {
        margin-inline: 0;
    }

    .contact-hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .contact-hero-buttons .btn {
        width: auto;
        margin-inline: 0;
    }

    .contact-hero-image img {
        height: 280px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}