/* ------------------------------------------------------------------
   Contact page
   ------------------------------------------------------------------
   Ported from the live design at pphweb.trogon.info/contact. Values
   here (spacing, radii, colours, type sizes) mirror that page 1:1.

   Nunito is scoped to the two contact sections rather than <body> so
   the shared header and footer keep the site's Poppins stack.
   ------------------------------------------------------------------ */

.contact-hero,
.contact-section {
    --brand-blue: #102F60;
    /* Text keeps the original blue; --brand-blue is now only for fills
       (icon circles, submit button, social hover). */
    --brand-blue-text: #4A90E2;
    --brand-dark: #2C3E50;
    --brand-light: #EAF3FB;
    font-family: 'Poppins', sans-serif;
}

/* ---------------- Hero banner ---------------- */

.contact-hero {
    background: url('../assets/contact/contact-us.webp') center center / cover no-repeat;
    background-color: var(--brand-light);
    min-height: 450px;
    display: flex;
    align-items: center;
    padding: 100px 0;
    /* Anchors the wave that hangs off the foot of the hero. Deliberately not
       `overflow: hidden` — the wave has to spill into the section below. */
    position: relative;
}

/* Wave seam: hangs below the hero and over the white contact section, so the
   artwork's blue floor runs on instead of ending on a straight edge. */
.contact-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 68px;
    line-height: 0;
    pointer-events: none;
    z-index: 3;
}

.contact-hero-wave svg {
    display: block;
    width: 100%;
    height: 100%;
    /* Pulled up a hair so no hairline of white shows at the join. */
    margin-top: -1px;
}

@media (max-width: 767px) {
    .contact-hero-wave {
        height: 40px;
    }
}

.contact-hero .contact-container {
    width: 100%;
}

.contact-hero-content {
    max-width: 620px;
}

.contact-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: var(--fs-page-title);
    line-height: var(--lh-page-title);
    color: #111827;
    margin: 0;
}

/* Bootstrap's .container, which the reference leans on for the page
   gutters. Reproduced here so the layout lands on the same rails. */
.contact-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 576px) {
    .contact-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .contact-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .contact-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .contact-container {
        max-width: 1140px;
    }
}

/* ---------------- Contact section ---------------- */

.contact-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.contact-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.contact-col-left,
.contact-col-right {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .contact-col-left {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .contact-col-right {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
}

/* ---------------- Left column ---------------- */

.contact-subtitle {
    font-size: 1rem;
    color: #555;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-title {
    font-size: 2.5rem;
    color: var(--brand-blue-text);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.contact-desc {
    color: #5A6B7C;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 450px;
}

.info-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.3s ease;
    max-width: 400px;
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(16, 47, 96, 0.12);
}

.info-card .icon {
    width: 50px;
    height: 50px;
    background-color: var(--brand-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-card .details p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
}

.info-card .details a {
    color: var(--brand-blue-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
}

.social-row {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.social-row span {
    color: var(--brand-blue-text);
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 15px;
}

.social-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: var(--brand-blue-text);
    border-radius: 50%;
    font-size: 1.1rem;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-row a:hover {
    background-color: var(--brand-blue);
    color: #fff;
}

/* ---------------- Right column (form) ---------------- */

.form-wrapper {
    background-color: #D7E6F6;
    padding: 50px 40px;
    border-radius: 24px;
}

.contact-section .form-group {
    margin-bottom: 20px;
}

.contact-section .form-group label {
    display: block;
    color: var(--brand-blue-text);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.contact-section .form-control {
    width: 100%;
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    font-size: 1rem;
    font-family: inherit;
    color: #2C3E50;
    background: #ffffff;
}

.contact-section .form-control::placeholder {
    color: #9aa5b1;
}

.contact-section .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 47, 96, 0.22);
}

.contact-section textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.recaptcha-box {
    background: #f1f1f1;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 320px;
    margin-bottom: 25px;
}

.recaptcha-box .checkbox-wrap {
    display: flex;
    align-items: center;
}

.recaptcha-box input[type="checkbox"] {
    width: 28px;
    height: 28px;
    margin-right: 15px;
    cursor: pointer;
}

.recaptcha-box span {
    color: var(--brand-blue-text);
    font-weight: 600;
}

.recaptcha-logo {
    text-align: center;
    font-size: 0.65rem;
    color: #888;
}

.recaptcha-logo img {
    width: 32px;
    margin-bottom: 2px;
    display: inline-block;
}

.btn-submit {
    background-color: var(--brand-blue);
    color: #fff;
    font-weight: var(--fw-semibold, 600);
    font-size: var(--fs-btn-lg, 15px);
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background-color: #0B2145;
}

.contact-form-note {
    display: none;
    margin: 18px 0 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #28A76B;
}

.contact-form-note.is-visible {
    display: block;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 991px) {
    .contact-hero {
        aspect-ratio: 2172 / 724;
        min-height: auto;
        height: auto;
        padding: 0;
        background-position: center center;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-hero-content {
        text-align: left;
        margin: 0;
        width: 100%;
    }

    .contact-hero h1 {
        font-size: clamp(1.6rem, 5vw, 2.75rem);
        margin: 0;
    }

    .form-wrapper {
        margin-top: 50px;
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }
}
