/* ===== Contact Us page ===== */

/* ----- Hero band ----- */
.contact-hero {
    position: relative;
    padding: 3rem 1.5rem 4.5rem; /* <main> already clears the fixed navbar */
    background: linear-gradient(135deg, #0b2545 0%, #13457a 45%, #0f7bb5 100%);
    color: #fff;
    overflow: hidden;
}

/* Soft light sweep across the water */
.contact-hero::before {
    content: "";
    position: absolute;
    top: -55%;
    right: -12%;
    width: 60%;
    height: 190%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.contact-hero-inner {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.contact-hero-logo {
    height: 130px;
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
    object-fit: contain;
    animation: contact-rise .6s ease-out both;
}

.contact-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 60px;
    display: block;
    fill: #fff;
}

/* ----- Page body ----- */
.contact-page {
    padding-top: 0;
}

/* ----- Quick contact cards ----- */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: -2.25rem 0 2.5rem; /* lift the cards over the wave */
    position: relative;
    z-index: 1;
}

.contact-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 3px solid #0f7bb5;
    border-radius: 10px;
    padding: 1.4rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(11, 37, 69, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-top-color .2s ease;
    animation: contact-rise .5s ease-out both;
}

.contact-cards .contact-card:nth-child(2) {
    animation-delay: .08s;
}

.contact-cards .contact-card:nth-child(3) {
    animation-delay: .16s;
}

.contact-card:not(.contact-card-static):hover,
.contact-card:not(.contact-card-static):focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(11, 37, 69, .16);
    border-top-color: #0b2545;
}

.contact-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-bottom: .85rem;
    background: linear-gradient(135deg, #13457a, #0f7bb5);
    color: #fff;
}

.contact-card-label {
    display: block;
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: .3rem;
}

.contact-card-value {
    display: block;
    font-size: 1.02rem;
    font-weight: 600;
    color: #0b2545;
    line-height: 1.45;
    word-break: break-word;
}

.contact-card-hint {
    display: block;
    margin-top: .45rem;
    font-size: .84rem;
    color: #6c757d;
}

/* ----- Form panel ----- */
.contact-form-panel {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 6px 18px rgba(11, 37, 69, .08);
}

.contact-form-panel h2 {
    color: #0b2545;
    font-size: 1.5rem;
    margin-bottom: .35rem;
}

.contact-form-intro {
    color: #6c757d;
    font-size: .92rem;
    margin-bottom: 1.5rem;
}

.contact-field {
    margin-bottom: 1.1rem;
}

.contact-field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 1rem;
}

.contact-field label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    color: #343a40;
    margin-bottom: .35rem;
}

.contact-field .optional {
    font-weight: 400;
    color: #6c757d;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid #ced4da;
    border-radius: .3rem;
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
    color: #212529;
    transition: border-color .15s, box-shadow .15s;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #0f7bb5;
    box-shadow: 0 0 0 .2rem rgba(15, 123, 181, .18);
}

.contact-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

.contact-field .validation-message {
    display: block;
    color: #dc3545;
    font-size: .82rem;
    margin-top: .25rem;
}

/* ----- Submit button ----- */
.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: linear-gradient(135deg, #13457a, #0f7bb5);
    color: #fff;
    border: none;
    border-radius: .3rem;
    padding: .7rem 1.6rem;
    font-size: .98rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 123, 181, .3);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.contact-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 123, 181, .38);
    filter: brightness(1.06);
}

.contact-submit:disabled {
    opacity: .7;
    cursor: default;
    box-shadow: none;
}

.contact-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-spin .7s linear infinite;
}

/* ----- Status banner ----- */
.contact-status {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    border-radius: .3rem;
    padding: .8rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .92rem;
    animation: contact-rise .35s ease-out both;
}

.contact-status-icon {
    flex: 0 0 auto;
    margin-top: 1px;
}

.contact-status-success {
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
    color: #0a3622;
}

.contact-status-error {
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    color: #58151c;
}

/* ----- Motion ----- */
@keyframes contact-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contact-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-hero-logo,
    .contact-card,
    .contact-status {
        animation: none;
    }

    .contact-card,
    .contact-submit {
        transition: none;
    }

    .contact-card:hover,
    .contact-submit:hover:not(:disabled) {
        transform: none;
    }
}

/* ===== Tablet and up ===== */
@media (min-width: 768px) {
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-field-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .contact-hero {
        padding: 2.25rem 1.25rem 3.75rem;
    }

    .contact-hero-logo {
        height: 88px;
    }

    .contact-form-panel {
        padding: 1.35rem;
    }
}
