﻿/* Progress bar hidden — step label only */
.nsqhs-progress {
    display: none !important;
}
/* ════════════════════════════════════════════════════════════════
   NSQHS — National Safety and Quality Health Service (NSQHS) Standards
   nsqhs.css — fully self-contained, no Bootstrap dependency
════════════════════════════════════════════════════════════════ */

.nsqhs-page *,
.nsqhs-page *::before,
.nsqhs-page *::after {
    box-sizing: border-box;
}

.nsqhs-page {
    --blue: #2d84c6;
    --blue-dark: #1e6ca8;
    --blue-light: #e8f3fc;
    --navy: #1d2d44;
    --grey-50: #f7f7f7;
    --grey-100: #eaedf0;
    --grey-200: #d0d6dd;
    --grey-400: #9aabb6;
    --grey-600: #6b7785;
    --error: #c62828;
    --error-bg: #ffebee;
    --success: #2e7d32;
    --radius: 4px;
    background: var(--grey-50);
    padding: 40px 20px 80px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    color: var(--navy);
}

.nsqhs-container {
    max-width: 980px;
    margin: 0 auto;
}

/* ── Header ─────────────────────────────────── */
.nsqhs-header h1 {
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 8px;
    font-weight: 700;
}

.nsqhs-subtitle {
    font-size: 20px;
    color: #3a3a3a;
    margin-bottom: 30px;
}

/* ── Card ───────────────────────────────────── */
.nsqhs-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.nsqhs-form-header h2 {
    font-size: 30px;
    color: var(--navy);
    margin: 0 0 4px;
    font-weight: 700;
}

.nsqhs-step-label {
    color: #8b8b8b;
    font-size: 14px;
    margin-bottom: 28px;
}

/* ── Steps ──────────────────────────────────── */
.form-step {
    display: none;
}

    .form-step.active {
        display: block;
        animation: nsqhsFadeIn .28s ease both;
    }

@keyframes nsqhsFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.form-step h3 {
    font-size: 26px;
    color: var(--navy);
    margin-bottom: 28px;
    font-weight: 700;
}

/* ── Form groups ────────────────────────────── */
.form-group {
    margin-bottom: 24px;
}

    .form-group > label {
        display: block;
        font-weight: 600;
        color: #303030;
        margin-bottom: 8px;
        font-size: 15px;
        line-height: 1.4;
    }

.sub-label {
    display: block;
    font-size: 13px !important;
    color: #666 !important;
    font-weight: 600;
    margin-bottom: 5px;
}

.required {
    color: #c27a17;
    font-style: italic;
    font-size: 14px;
}

/* ── Inputs ─────────────────────────────────── */
.form-control {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--navy);
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7785' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(45,132,198,.14);
}

.form-control.input-error {
    border-color: var(--error) !important;
}

/* ── Grids ──────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ── Radio buttons ──────────────────────────── */
.nsqhs-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.nsqhs-radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: var(--navy) !important;
    margin: 0 !important;
    cursor: pointer;
    line-height: 1.4;
}

    .nsqhs-radio-label input[type="radio"] {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 2px solid var(--grey-400) !important;
        border-radius: 50% !important;
        background: #fff !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        cursor: pointer;
        flex-shrink: 0;
        transition: border-color .15s;
    }

        .nsqhs-radio-label input[type="radio"]:checked {
            border-color: var(--blue) !important;
            background: var(--blue) !important;
            box-shadow: inset 0 0 0 3px #fff !important;
        }

/* ── Checkboxes ─────────────────────────────── */
.nsqhs-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 8px;
}

.nsqhs-check-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: var(--navy) !important;
    margin: 0 !important;
    cursor: pointer;
    line-height: 1.45;
}

    .nsqhs-check-label input[type="checkbox"] {
        width: 17px !important;
        height: 17px !important;
        min-width: 17px !important;
        margin: 2px 0 0 0 !important;
        padding: 0 !important;
        border: 2px solid var(--grey-400) !important;
        border-radius: 3px !important;
        background: #fff !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        cursor: pointer;
        flex-shrink: 0;
        transition: background .15s, border-color .15s;
    }

        .nsqhs-check-label input[type="checkbox"]:checked {
            background: var(--blue) !important;
            border-color: var(--blue) !important;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='8' viewBox='0 0 11 8'%3E%3Cpath d='M1 3.5L4 6.5L10 1' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: center !important;
        }

/* ── Conditional sections ───────────────────── */
.conditional-section {
    margin-top: 14px;
    padding: 20px;
    background: #f9fbfd;
    border: 1px solid #dbe6ef;
    border-radius: 6px;
    margin-bottom: 20px;
}

.fw-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--grey-200);
}

/* ── Errors ─────────────────────────────────── */
.field-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 6px;
    min-height: 16px;
}

/* ── Declaration boxes ──────────────────────── */
.nsqhs-declaration-box {
    background: var(--grey-50);
    border: 1px solid var(--grey-100);
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 18px;
}

/* ── Consent text ───────────────────────────── */
.nsqhs-consent-text {
    font-size: 12px;
    color: var(--grey-600);
    line-height: 1.7;
    margin-top: 14px;
    padding: 14px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid var(--grey-100);
}

/* ── Fee display ─────────────────────────────── */
.nsqhs-fee-box {
    background: linear-gradient(135deg, var(--navy) 0%, #2a4763 100%);
    border-radius: 8px;
    padding: 22px 28px;
    color: #fff;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nsqhs-fee-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.nsqhs-fee-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.nsqhs-fee-currency {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,.65);
}

.nsqhs-fee-amount {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.nsqhs-fee-note {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    margin-top: 4px;
    line-height: 1.5;
}

/* ── Advisory ────────────────────────────────── */
.nsqhs-advisory {
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    border-radius: 0 6px 6px 0;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #78350f;
    line-height: 1.6;
    margin-bottom: 20px;
}

    .nsqhs-advisory a {
        color: var(--blue-dark);
        font-weight: 600;
    }

/* ── Signature ──────────────────────────────── */
.nsqhs-sig-wrap {
    position: relative;
    border: 2px dashed var(--grey-200);
    border-radius: 6px;
    background: var(--grey-50);
    padding: 8px;
    margin-top: 8px;
}

    .nsqhs-sig-wrap canvas {
        display: block;
        width: 100%;
        height: 130px;
        border-radius: 4px;
        cursor: crosshair;
        touch-action: none;
    }

.nsqhs-sig-clear {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 12px;
    background: #fff;
    border: 1.5px solid var(--grey-200);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--grey-600);
    cursor: pointer;
}

    .nsqhs-sig-clear:hover {
        border-color: var(--error);
        color: var(--error);
    }

/* ── Site section ───────────────────────────── */
.nsqhs-site-section {
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--grey-50);
}

.nsqhs-site-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--grey-200);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.nsqhs-site-addr-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--grey-600);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 14px 0 10px;
}

/* ── Actions ────────────────────────────────── */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--grey-100);
}

/* ── Buttons ────────────────────────────────── */
.btn {
    min-width: 120px;
    padding: 11px 22px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    transition: background .2s, box-shadow .2s, transform .15s;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

    .btn-primary:hover {
        background: var(--blue-dark);
    }

.btn-secondary {
    background: #e3e7eb;
    color: #243447;
}

    .btn-secondary:hover {
        background: #d1d7de;
    }

.btn-success {
    background: var(--success);
    color: #fff;
}

    .btn-success:hover {
        background: #235e26;
        box-shadow: 0 4px 14px rgba(46,125,50,.3);
    }

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Submit error ───────────────────────────── */
.nsqhs-submit-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--error);
    margin-bottom: 16px;
}

/* ── Hidden ─────────────────────────────────── */
.hidden {
    display: none !important;
}

/* ── Spinner ─────────────────────────────────── */
#nsqhs-spinner-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(29,45,68,.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
}

@keyframes nsqhs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .nsqhs-card {
        padding: 24px;
    }

    .nsqhs-header h1 {
        font-size: 26px;
    }

    .form-step h3 {
        font-size: 22px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .form-actions > div {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

    .btn {
        width: 100%;
    }

    .nsqhs-fee-amount {
        font-size: 28px;
    }
}
