/*
 * Home/RequestWebsite — the free-website request.
 * A long form broken into numbered sections, each a white card on the warm light band, with
 * the NIC (Malta) details as a light panel inside the domain card.
 */

/* ── Header: what is free and what is monthly ────────────────────────────── */

/* One panel, three blocks: the free build on ink so it is the first thing read, then the
   two monthly costs on white. The 1px gap on a border-coloured ground draws the hairlines. */
.nx-cost {
    display: grid;
    gap: 1px;
    max-width: 960px;
    margin-top: 2.5rem;
    background-color: var(--nx-border);
    border: 1px solid var(--nx-border);
    border-radius: 16px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .nx-cost {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.nx-cost__item {
    padding: 24px 28px;
    background-color: #fff;
}

.nx-cost__item--free {
    background-color: var(--nx-ink);
}

.nx-cost__tag {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--nx-ink-2);
}

.nx-cost__item--free .nx-cost__tag {
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    background-color: var(--nx-red);
    color: #fff;
}

.nx-cost__title {
    margin-bottom: 0.375rem;
    font-family: var(--nx-font-display);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--nx-ink);
}

.nx-cost__item--free .nx-cost__title {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    color: #fff;
}

.nx-cost__copy {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--nx-ink-2);
}

.nx-cost__item--free .nx-cost__copy {
    color: rgba(255, 255, 255, 0.72);
}

/* ── The form ────────────────────────────────────────────────────────────── */

.nx-request-form {
    max-width: 820px;
}

.nx-request-form__required-note {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--nx-ink-2);
}

.nx-request-form .nx-input {
    min-height: 52px;
    font-size: 1rem;
}

.nx-request-form .nx-input:disabled {
    background-color: var(--nx-light);
    color: var(--nx-muted);
    cursor: not-allowed;
}

.nx-request-form .nx-textarea {
    min-height: 160px;
    line-height: 1.6;
    resize: vertical;
}

.nx-form-section {
    min-width: 0;
    margin: 0 0 1.5rem;
    padding: 28px;
    background-color: #fff;
    border: 1px solid var(--nx-border);
    border-radius: 16px;
}

@media (min-width: 992px) {
    .nx-form-section {
        padding: 40px;
    }
}

/* Bootstrap's reboot floats every legend at full width, which is what keeps a section's legend
   inside its card instead of on the border — so it stays floated, with reboot's
   `legend + * { clear: left }` bringing the intro below it. */
.nx-form-section__legend {
    float: left;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    margin-bottom: 0.5rem;
    font-family: var(--nx-font-display);
    font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.028em;
    color: var(--nx-ink);
}

.nx-form-section__number {
    font-family: var(--nx-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--nx-red);
}

.nx-form-section__intro {
    max-width: 560px;
    margin-bottom: 1.75rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--nx-ink-2);
}

.nx-request-form legend.nx-field-label {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.nx-field-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--nx-ink-2);
}

/* ── Choice tiles: a radio or checkbox, its title and one line on what it means ── */

.nx-choice {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    height: 100%;
    margin: 0;
    padding: 1rem 1.125rem;
    background-color: #fff;
    border: 1px solid var(--nx-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nx-choice:hover {
    border-color: var(--nx-ink-2);
}

.nx-choice:has(:checked) {
    border-color: var(--nx-ink);
    box-shadow: 0 0 0 1px var(--nx-ink);
}

.nx-choice:has(:focus-visible) {
    outline: 3px solid var(--nx-ink);
    outline-offset: 3px;
}

.nx-choice__input {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.125rem 0 0;
    accent-color: var(--nx-ink);
    cursor: pointer;
}

.nx-choice__input:focus-visible {
    outline: none;
}

.nx-choice__title {
    display: block;
    font-weight: 500;
    line-height: 1.45;
    color: var(--nx-ink);
}

.nx-choice__hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--nx-ink-2);
}

/* A small tick under a field: "Not applicable". */
.nx-inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.625rem;
    font-size: 0.875rem;
    color: var(--nx-ink-2);
    cursor: pointer;
}

.nx-inline-check input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--nx-ink);
    cursor: pointer;
}

/* ── The NIC (Malta) panel ───────────────────────────────────────────────── */

.nx-subpanel {
    margin-top: 1.5rem;
    padding: 24px;
    background-color: var(--nx-light);
    border-radius: 12px;
}

@media (min-width: 992px) {
    .nx-subpanel {
        padding: 32px;
    }
}

.nx-subpanel__title {
    margin-bottom: 0.5rem;
    font-family: var(--nx-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--nx-ink);
}

.nx-subpanel__intro {
    max-width: 560px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--nx-ink-2);
}

/* A fixed character in front of an input: the + before a country code, the x before an extension. */
.nx-affix {
    position: relative;
}

.nx-affix__text {
    position: absolute;
    top: 0;
    left: 1.125rem;
    display: flex;
    align-items: center;
    height: 52px;
    color: var(--nx-ink-2);
    pointer-events: none;
}

.nx-request-form .nx-affix .nx-input {
    padding-left: 2.125rem;
}

/* ── Sending ─────────────────────────────────────────────────────────────── */

.nx-request-privacy {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--nx-ink-2);
}

.nx-request-submit {
    width: 100%;
    margin-top: 1.75rem;
}

@media (min-width: 576px) {
    .nx-request-submit {
        width: auto;
    }
}
