/* ==========================================
   BASE / RESET (scoped to these sections)
========================================== */
.contact-section,
.office-location-section,
.contact-map-section {
    font-family: 'Poppins', sans-serif;
    color: #0b2048;
}

.contact-section *,
.contact-section *::before,
.contact-section *::after,
.office-location-section *,
.office-location-section *::before,
.office-location-section *::after,
.contact-map-section *,
.contact-map-section *::before,
.contact-map-section *::after {
    box-sizing: border-box;
}

/* ==========================================
   CONTACT SECTION
========================================== */
.contact-section {
    position: relative;
    width: 100%;
    padding: clamp(15px, 3vw, 35px) 20px;
    overflow: hidden;
    background: #ffffff;
}

/* Decorative triangles */
.contact-section::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 35%;
    opacity: 0.65;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 8 L35 26 L13 26 Z' fill='%23eaf3fa'/%3E%3C/svg%3E");
    background-size: 48px 48px;
}

.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(30px, 6vw, 90px);
    align-items: start;
}

/* ---------- Left ---------- */
.contact-heading {
    margin-bottom: 36px;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #3479ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 14px;
}

.contact-heading h2 {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin: 0 0 14px;
}

.contact-heading h2 span {
    color: #3479ff;
}

.contact-heading p {
    font-size: 14px;
    color: #71809a;
    margin: 0;
    line-height: 1.7;
}

/* ---------- Info cards ---------- */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 18px 16px;
    background: #ffffff;
    border: 1px solid #cbdcff;
    border-radius: 13px;
    box-shadow: 1px 2px 0 rgba(18, 48, 91, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(52, 121, 255, 0.10);
    border-color: #3479ff;
}

.contact-info-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #eaf1ff;
    color: #3479ff;
    font-size: 14px;
}

.contact-info-content {
    flex: 1;
    min-width: 0;
}

.contact-info-content h3 {
    margin: 0 0 8px;
    color: #3479ff;
    font-size: 15px;
    font-weight: 700;
}

.contact-info-content p {
    margin: 0 0 4px;
    color: #63738e;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.contact-info-content p:last-child {
    margin-bottom: 0;
}

.contact-info-content strong {
    color: #1a3157;
    font-weight: 600;
}

.contact-info-content a {
    color: #63738e;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-content a:hover {
    color: #3479ff;
}

/* ---------- Wavy divider ---------- */
.contact-wave-divider {
    width: 100%;
    height: 8px;
    margin: 14px 0;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4 Q3 -1 6 4 T12 4' fill='none' stroke='%2382a9ff' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
}

/* ---------- Form ---------- */
.contact-form-wrapper {
    background: linear-gradient(145deg, #e9f4ff 0%, #d8edff 100%);
    padding: clamp(24px, 3.5vw, 40px);
    border-radius: 13px;
}

.contact-form-heading {
    margin-bottom: 28px;
}

.contact-form-heading .contact-eyebrow {
    margin-bottom: 10px;
}

.contact-form-heading h2 {
    font-size: clamp(21px, 2.4vw, 26px);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.contact-form {
    width: 100%;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-form-group label {
    color: #63738c;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    border: 1px solid #e0e3e9;
    outline: none;
    background: #ffffff;
    color: #253c61;
    font-family: 'Poppins', sans-serif;
    font-size: 14px; /* 14px+ also stops iOS zoom-on-focus issues (16px is safest) */
    border-radius: 9px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-group input {
    height: 48px;
    padding: 0 18px;
}

.contact-form-group textarea {
    height: 140px;
    min-height: 100px;
    padding: 12px 18px;
    resize: vertical;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #66768f;
    opacity: 1;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-color: #3479ff;
    box-shadow: 0 0 0 3px rgba(52, 121, 255, 0.12);
}

.contact-message-group {
    margin-bottom: 24px;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 170px;
    height: 46px;
    padding: 5px 6px 5px 20px;
    border: none;
    border-radius: 10px;
    background: #3479ff;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-submit-btn:hover {
    background: #0b2048;
    transform: translateY(-3px);
}

.contact-submit-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.17);
    font-size: 13px;
}

/* ==========================================
   OFFICE LOCATION SECTION
========================================== */
.office-location-section {
    position: relative;
    width: 100%;
    padding: 125px 20px clamp(40px, 5vw, 65px);
    overflow: hidden;
    background: linear-gradient(115deg, #d8edff 0%, #eef8ff 48%, #d4eaff 100%);
}

/* White space above the wave */
.office-location-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 51px;
    background: #ffffff;
    z-index: 2;
}

/* Curved white scallop with blue outline */
.office-location-section::after {
    content: "";
    position: absolute;
    top: 49px;
    left: 0;
    width: 100%;
    height: 23px;
    z-index: 3;
    pointer-events: none;
    background-repeat: repeat-x;
    background-position: top left;
    background-size: 90px 23px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='23' viewBox='0 0 90 23'%3E%3Cpath d='M0 0 H90 V12 C80 12 80 21 68 21 C56 21 56 12 45 12 C34 12 34 21 22 21 C10 21 10 12 0 12 Z' fill='%23ffffff'/%3E%3Cpath d='M0 12 C10 12 10 21 22 21 C34 21 34 12 45 12 C56 12 56 21 68 21 C80 21 80 12 90 12' fill='none' stroke='%233479ff' stroke-width='1'/%3E%3C/svg%3E");
}

.location-background-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 32%;
    height: 100%;
    pointer-events: none;
    opacity: 0.55;
    background: repeating-radial-gradient(
        ellipse at 100% 20%,
        transparent 0px,
        transparent 13px,
        rgba(255, 255, 255, 0.8) 14px,
        rgba(255, 255, 255, 0.8) 15px,
        transparent 16px,
        transparent 26px
    );
}

.location-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
}

.location-heading {
    text-align: center;
    margin-bottom: clamp(30px, 5vw, 60px);
}

.location-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3479ff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.location-heading h2 {
    color: #0b2048;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.8px;
    margin: 0;
}

.location-heading h2 span {
    color: #3479ff;
}

/* Card */
.location-info-card {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 24px 40px;
    border: 1px solid rgba(52, 121, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 5px 25px rgba(52, 121, 255, 0.06);
}

.location-info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.location-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d4e3ff;
    border-radius: 50%;
    color: #3479ff;
    font-size: 18px;
}

.location-info-content {
    min-width: 0;
}

.location-info-content h3 {
    color: #10264c;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
}

.location-info-content p {
    color: #6a7a94;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
}

.location-info-content a {
    color: #6a7a94;
    text-decoration: none;
    transition: color 0.3s;
}

.location-info-content a:hover {
    color: #3479ff;
}

.location-arrow {
    color: #3479ff;
    margin: 0 6px;
}

.location-map-button a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 130px;
    height: 42px;
    padding: 0 22px;
    background: #ffffff;
    border: 1px solid #d7e3ff;
    border-radius: 30px;
    color: #687993;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.location-map-button a i {
    transition: transform 0.3s ease;
}

.location-map-button a:hover {
    background: #3479ff;
    color: #ffffff;
    border-color: #3479ff;
    transform: translateY(-3px);
}

.location-map-button a:hover i {
    transform: translateX(4px);
}

/* ==========================================
   GOOGLE MAP SECTION
========================================== */
.contact-map-section {
    width: 100%;
    padding: clamp(40px, 5vw, 65px) 20px clamp(50px, 6vw, 80px);
    background: #ffffff;
}

.contact-map-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
}

.google-map-wrapper {
    width: 100%;
    height: clamp(280px, 45vw, 450px);
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #d5e2ff;
    box-shadow: 0 10px 35px rgba(20, 45, 90, 0.10);
}

.google-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-address-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 25px;
    margin-top: 22px;
    background: #eaf3ff;
    border: 1px solid #d5e2ff;
    border-radius: 13px;
}

.map-address-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3479ff;
    color: #ffffff;
    border-radius: 12px;
    font-size: 19px;
}

.map-address-content {
    flex: 1;
    min-width: 0;
}

.map-address-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #10244a;
    margin: 0 0 5px;
}

.map-address-content p {
    font-size: 13px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

.map-direction-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    background: #3479ff;
    color: #ffffff;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s ease;
}

.map-direction-btn:hover {
    background: #10244a;
    transform: translateY(-3px);
}

/* ==========================================
   RESPONSIVE: TABLET (<= 991px)
========================================== */
@media (max-width: 991px) {

    .contact-container {
        grid-template-columns: 1fr;
        max-width: 720px;
        gap: 40px;
    }

    .contact-section::before {
        width: 60%;
    }

    .location-info-card {
        grid-template-columns: 1fr 1fr;
        padding: 24px;
        gap: 24px;
    }

    .location-map-button {
        grid-column: 1 / -1;
        text-align: center;
    }

    .location-background-decoration {
        width: 45%;
    }
}

/* ==========================================
   RESPONSIVE: MOBILE (<= 767px)
========================================== */
@media (max-width: 767px) {

    .contact-section::before {
        width: 100%;
    }

    .contact-heading {
        margin-bottom: 28px;
    }

    .location-info-card {
        grid-template-columns: 1fr;
        padding: 22px 18px;
        gap: 22px;
    }

    .location-info-item {
        align-items: flex-start;
        gap: 14px;
    }

    .location-info-content h3 {
        font-size: 16px;
    }

    .location-info-content p {
        font-size: 13px;
    }

    .location-map-button {
        grid-column: auto;
        text-align: left;
    }

    .location-background-decoration {
        width: 60%;
    }

    .office-location-section {
        padding-top: 105px;
    }

    .office-location-section::before {
        height: 38px;
    }

    .office-location-section::after {
        top: 36px;
        height: 20px;
        background-size: 75px 20px;
    }

    .map-address-card {
        flex-wrap: wrap;
        padding: 18px;
    }

    .map-direction-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   RESPONSIVE: SMALL MOBILE (<= 480px)
========================================== */
@media (max-width: 480px) {

    .contact-section,
    .office-location-section,
    .contact-map-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .contact-form-wrapper {
        padding: 22px 16px;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        font-size: 16px; /* prevents iOS auto-zoom */
    }

    .contact-submit-btn {
        width: 100%;
    }

    .contact-heading h2 br,
    .location-heading h2 br {
        display: none;
    }

    .google-map-wrapper {
        border-radius: 12px;
    }
}