/* ════════════════════════════════════════════════════
   Nextline Contact – Hero Section
   ════════════════════════════════════════════════════ */

.nx-contact-hero {
    --blue: #1773B0;
    --text: #0b1f35;
    --muted: rgba(11,31,53,.70);
    --stroke: rgba(23,115,176,.16);

    background: #fff;
    padding: 0 16px 34px;
    margin: 0;
    font-family: inherit;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.nx-contact-hero * { box-sizing: border-box; }

.nx-contact-hero::before {
    content: "";
    position: absolute;
    inset: -220px;
    background:
        radial-gradient(900px 420px at 50% 10%, rgba(23,115,176,.14), transparent 62%),
        radial-gradient(700px 360px at 18% 88%, rgba(23,115,176,.08), transparent 65%),
        radial-gradient(700px 360px at 82% 88%, rgba(23,115,176,.08), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.nx-contact-hero .wrap {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
    padding-top: 18px;
}

/* Pill */
.nx-contact-hero .pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(23,115,176,.18);
    box-shadow: 0 12px 26px rgba(23,115,176,.10);
    color: rgba(11,31,53,.76);
    font-weight: 900;
    font-size: 13px;
    width: fit-content;
    margin: 0 auto 16px;
}

.nx-contact-hero .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(23,115,176,.14);
    flex: 0 0 auto;
}

.nx-contact-hero h1 {
    margin: 0;
    font-size: clamp(40px, 5.2vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.04em;
    color: var(--text);
    font-weight: 950;
}

.nx-contact-hero h1 span {
    color: var(--blue);
}

.nx-contact-hero .lead {
    margin: 14px auto 0;
    max-width: 74ch;
    font-size: 17px;
    line-height: 1.75;
    color: var(--muted);
}

/* Contact chips */
.nx-contact-hero .info {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nx-contact-hero .chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(23,115,176,.16);
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
    color: rgba(11,31,53,.78);
    font-weight: 850;
    font-size: 14px;
    text-decoration: none;
}

.nx-contact-hero .chip svg {
    width: 18px;
    height: 18px;
    color: var(--blue);
    flex: 0 0 auto;
}

/* Entrance animation */
.nx-contact-hero.nx-in .wrap {
    opacity: 0;
    transform: translateY(10px);
    animation: nxIn .85s cubic-bezier(.22,1,.36,1) forwards;
}

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

@media (max-width: 768px) {
    .nx-contact-hero { padding: 0 14px 26px; }
    .nx-contact-hero .wrap { padding-top: 14px; }
    .nx-contact-hero .lead { font-size: 16.5px; }
    .nx-contact-hero .chip {
        width: 100%;
        justify-content: center;
        max-width: 520px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-contact-hero.nx-in .wrap {
        animation: none;
        opacity: 1;
        transform: none;
    }
}


/* ════════════════════════════════════════════════════
   Nextline Contact – Form Section
   ════════════════════════════════════════════════════ */

.nx-contactform {
    --blue: #1773B0;
    --text: #0b1f35;
    --muted: rgba(11,31,53,.72);
    --stroke: rgba(23,115,176,.18);
    --alt: #EBF2F4;
    --radius: 28px;

    background: transparent;
    padding: 10px 16px 70px;
    margin: 0;
    font-family: inherit;
    position: relative;
    overflow: visible;
}

.nx-contactform * {
    box-sizing: border-box;
}

/* Background gradients — disabled */
.nx-contactform::after {
    display: none;
}

/* Wrapper */
.nx-contactform .wrap {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
}

/* Card - removed background/border/shadow for seamless look */
.nx-contactform .card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    position: relative;
}

.nx-contactform .card::before {
    display: none;
}

.nx-contactform .inner {
    position: relative;
    z-index: 2;
    padding: 0;
}

/* Form layout */
.nx-contactform form {
    margin-top: 10px;
    display: grid;
    gap: 12px;
}

.nx-contactform .row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 560px) {
    .nx-contactform .row2 {
        grid-template-columns: 1fr;
    }
}

/* Labels */
.nx-contactform label {
    display: block;
    font-weight: 850;
    color: rgba(11,31,53,.80);
    font-size: 13px;
    margin-bottom: 6px;
}

/* Inputs */
.nx-contactform input,
.nx-contactform select,
.nx-contactform textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(23,115,176,.18);
    background: rgba(255,255,255,.96);
    padding: 14px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease;
    appearance: none;
    font-family: inherit;
}

.nx-contactform textarea {
    min-height: 140px;
    resize: vertical;
}

.nx-contactform input:focus,
.nx-contactform select:focus,
.nx-contactform textarea:focus {
    border-color: rgba(23,115,176,.34);
    box-shadow: 0 0 0 5px rgba(23,115,176,.14);
}

/* Select arrow */
.nx-contactform .selectwrap {
    position: relative;
}

.nx-contactform .selectwrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(11,31,53,.55);
    border-bottom: 2px solid rgba(11,31,53,.55);
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

/* Button */
.nx-contactform .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    min-height: 54px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #1e82c9, var(--blue));
    color: #fff;
    font-weight: 950;
    font-size: 15px;
    font-family: inherit;
    box-shadow: 0 18px 40px rgba(23,115,176,.30);
    transition: transform .16s cubic-bezier(.22,1,.36,1), box-shadow .16s ease;
}

.nx-contactform .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 54px rgba(23,115,176,.40);
}

.nx-contactform .btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

.nx-contactform .btn svg {
    width: 18px;
    height: 18px;
}

/* Note */
.nx-contactform .note {
    margin-top: 10px;
    color: rgba(11,31,53,.58);
    font-size: 13px;
    line-height: 1.5;
}

/* Alert */
.nx-contactform .alert {
    display: none;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
}

.nx-contactform .alert.is-show {
    display: block;
}

.nx-contactform .alert.is-success {
    background: rgba(34,197,94,.10);
    border: 1px solid rgba(34,197,94,.25);
    color: #166534;
}

.nx-contactform .alert.is-error {
    background: rgba(239,68,68,.10);
    border: 1px solid rgba(239,68,68,.22);
    color: #991b1b;
}

/* Validation */
.nx-contactform input.nxc-invalid,
.nx-contactform select.nxc-invalid,
.nx-contactform textarea.nxc-invalid {
    border-color: rgba(239,68,68,.5);
    box-shadow: 0 0 0 4px rgba(239,68,68,.12);
}
