:root {
    --ppam-primary: #176b4d;
    --ppam-primary-dark: #10523b;
    --ppam-primary-soft: #eaf5ef;

    --text-main: #1f2937;
    --text-muted: #6b7280;

    --border: #e5e7eb;
    --border-focus: #176b4d;

    --background: #f5f8f6;
    --surface: #ffffff;

    --danger: #dc2626;
    --success: #15803d;

    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 9px;

    --shadow:
        0 12px 35px rgba(15, 23, 42, 0.07);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text-main);
    background: var(--background);

    line-height: 1.6;
}

button,
input {
    font: inherit;
}


/* =========================================================
   PAGE
========================================================= */

.sma-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   HEADER
========================================================= */

.sma-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;
}

.sma-brand {
    width: min(1120px, calc(100% - 32px));

    margin: auto;

    min-height: 76px;

    display: flex;
    align-items: center;

    gap: 14px;
}

.sma-logo {
    width: 46px;
    height: 46px;

    border-radius: 12px;

    background: var(--ppam-primary);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    font-size: 13px;
}

.sma-brand-title {
    font-weight: 700;
    font-size: 15px;
}

.sma-brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}


/* =========================================================
   CONTAINER
========================================================= */

.sma-container {
    width: min(980px, calc(100% - 32px));

    margin: 0 auto;

    padding:
        42px 0
        70px;
}


/* =========================================================
   INTRO
========================================================= */

.sma-intro {
    text-align: center;

    max-width: 720px;

    margin:
        0 auto
        36px;
}

.sma-badge {
    display: inline-flex;

    padding: 6px 12px;

    border-radius: 999px;

    background: var(--ppam-primary-soft);
    color: var(--ppam-primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.05em;
}

.sma-intro h1 {
    margin:
        12px 0
        8px;

    font-size: clamp(27px, 4vw, 38px);

    line-height: 1.2;
}

.sma-intro p {
    margin: 0;

    color: var(--text-muted);

    font-size: 14px;
}


/* =========================================================
   PROGRESS
========================================================= */

.sma-progress {
    display: flex;
    align-items: center;

    width: 100%;

    margin-bottom: 28px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 6px;

    min-width: 52px;

    color: #9ca3af;
}

.progress-step span {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;
}

.progress-step small {
    font-size: 10px;
    white-space: nowrap;
}

.progress-step.active {
    color: var(--ppam-primary);
}

.progress-step.active span {
    background: var(--ppam-primary);
    color: white;
}

.progress-step.completed span {
    background: var(--ppam-primary-soft);
    color: var(--ppam-primary);
}

.progress-line {
    flex: 1;

    height: 2px;

    background: #e5e7eb;

    margin:
        0 4px
        18px;
}


/* =========================================================
   FORM CARD
========================================================= */

.form-step {
    display: none;

    background: var(--surface);

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);

    padding: clamp(22px, 4vw, 36px);
}

.form-step.active {
    display: block;
}


/* =========================================================
   STEP HEADING
========================================================= */

.step-heading {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin-bottom: 30px;

    padding-bottom: 22px;

    border-bottom:
        1px solid
        var(--border);
}

.step-number {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: var(--ppam-primary-soft);
    color: var(--ppam-primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    font-size: 13px;
}

.step-heading h2 {
    margin: 0 0 4px;

    font-size: 21px;
}

.step-heading p {
    margin: 0;

    color: var(--text-muted);

    font-size: 13px;
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group,
.conditional-field {
    margin-bottom: 22px;
}

.form-group label,
.conditional-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 700;
}

.form-group label span,
.conditional-field label span {
    color: var(--danger);
}

.form-group input,
.conditional-field input {
    width: 100%;

    height: 48px;

    padding:
        0 14px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-sm);

    background: white;

    color: var(--text-main);

    outline: none;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.form-group input:focus,
.conditional-field input:focus {
    border-color: var(--border-focus);

    box-shadow:
        0 0 0 3px
        rgba(23, 107, 77, .10);
}

.field-help {
    margin-top: 6px;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   PASSWORD
========================================================= */

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;

    right: 7px;
    top: 50%;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: 0;

    background: transparent;

    cursor: pointer;

    border-radius: 8px;
}

.password-toggle:hover {
    background: #f3f4f6;
}

.password-strength,
.password-match {
    margin-top: 7px;

    font-size: 11px;

    color: var(--text-muted);
}


/* =========================================================
   CHOICE CARD
========================================================= */

.choice-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.choice-card {
    position: relative;

    cursor: pointer;
}

.choice-card input {
    position: absolute;

    opacity: 0;
}

.choice-card span {
    min-height: 52px;

    padding: 12px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-sm);

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-size: 13px;

    font-weight: 600;

    transition:
        background .2s,
        border-color .2s;
}

.choice-card input:checked + span {
    border-color: var(--ppam-primary);

    background: var(--ppam-primary-soft);

    color: var(--ppam-primary);
}


/* =========================================================
   CHOICE ROW
========================================================= */

.choice-row {
    display: flex;

    flex-wrap: wrap;

    gap: 10px 18px;

    margin-top: 16px;
}

.choice-row label,
.choice-column label {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;
}

.choice-row input,
.choice-column input {
    width: 18px;
    height: 18px;

    accent-color: var(--ppam-primary);
}


/* =========================================================
   CHOICE COLUMN
========================================================= */

.choice-column {
    display: flex;

    flex-direction: column;

    gap: 13px;

    margin-top: 17px;
}


/* =========================================================
   CHECKBOX LIST
========================================================= */

.checkbox-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.checkbox-item {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    padding: 13px 14px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-sm);

    cursor: pointer;

    transition:
        background .2s,
        border-color .2s;
}

.checkbox-item:hover {
    background: #fafafa;
}

.checkbox-item input {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin-top: 2px;

    accent-color: var(--ppam-primary);
}

.checkbox-item span {
    font-size: 13px;
}


/* =========================================================
   CONDITIONAL FIELD
========================================================= */

.conditional-field {
    display: none;

    margin-top: 12px;
    margin-bottom: 0;

    padding: 14px;

    background: #f8faf9;

    border-radius: var(--radius-sm);
}

.conditional-field.show {
    display: block;
}


/* =========================================================
   INFO BOX
========================================================= */

.info-box {
    margin-top: 22px;

    padding: 16px;

    border-radius: var(--radius-md);

    background: var(--ppam-primary-soft);
}

.info-box strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;

    color: var(--ppam-primary);
}

.info-box p {
    margin: 0;

    font-size: 12px;

    color: var(--text-muted);
}


/* =========================================================
   STATEMENT CARD
========================================================= */

.statement-card {
    display: grid;

    grid-template-columns: 38px minmax(0, 1fr);

    gap: 14px;

    padding: 20px 0;

    border-bottom:
        1px solid
        var(--border);
}

.statement-card:first-of-type {
    padding-top: 0;
}

.statement-number {
    width: 34px;
    height: 34px;

    border-radius: 10px;

    background: #f3f4f6;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 800;
}

.statement-content p {
    margin: 0;

    font-size: 14px;

    line-height: 1.7;

    font-weight: 600;
}


/* =========================================================
   SUMMARY
========================================================= */

.summary-card {
    padding: 20px;

    margin-bottom: 16px;

    background: #fafcfb;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-md);
}

.summary-card h3 {
    margin:
        0 0 15px;

    font-size: 14px;

    color: var(--ppam-primary);
}

.summary-row {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 9px 0;

    border-bottom:
        1px solid
        #edf0ee;
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-row span {
    color: var(--text-muted);

    font-size: 12px;
}

.summary-row strong {
    font-size: 13px;

    text-align: right;
}


/* =========================================================
   FINAL AGREEMENT
========================================================= */

.final-agreement {
    margin-top: 24px;

    padding: 18px;

    background: var(--ppam-primary-soft);

    border:
        1px solid
        rgba(23, 107, 77, .15);

    border-radius: var(--radius-md);
}

.checkbox-item.agreement {
    padding: 0;

    border: 0;

    background: transparent;
}

.checkbox-item.agreement:hover {
    background: transparent;
}

.checkbox-item.agreement span {
    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   BUTTONS
========================================================= */

.step-actions {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 12px;

    margin-top: 32px;

    padding-top: 22px;

    border-top:
        1px solid
        var(--border);
}

.next-only {
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary,
.btn-submit {
    min-height: 46px;

    padding:
        0 20px;

    border-radius: 10px;

    font-weight: 700;

    font-size: 13px;

    cursor: pointer;

    transition:
        transform .15s,
        background .2s,
        opacity .2s;
}

.btn-primary,
.btn-submit {
    border: 0;

    background: var(--ppam-primary);

    color: white;
}

.btn-primary:hover,
.btn-submit:hover {
    background: var(--ppam-primary-dark);

    transform: translateY(-1px);
}

.btn-secondary {
    border:
        1px solid
        var(--border);

    background: white;

    color: var(--text-main);
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-submit {
    padding-left: 24px;
    padding-right: 24px;
}

button:disabled {
    opacity: .55;

    cursor: not-allowed;

    transform: none !important;
}


/* =========================================================
   VALIDATION
========================================================= */

.input-error {
    border-color: var(--danger) !important;

    box-shadow:
        0 0 0 3px
        rgba(220, 38, 38, .08) !important;
}

.validation-message {
    margin-top: 7px;

    color: var(--danger);

    font-size: 11px;
}


/* =========================================================
   FOOTER
========================================================= */

.sma-footer {
    margin-top: auto;

    padding:
        24px 16px;

    text-align: center;

    color: var(--text-muted);

    font-size: 11px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    .sma-container {
        width: min(100% - 24px, 680px);

        padding-top: 28px;
    }

    .sma-brand {
        width: calc(100% - 24px);

        min-height: 68px;
    }

    .sma-brand-title {
        font-size: 13px;
    }

    .sma-brand-subtitle {
        font-size: 11px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .choice-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .progress-step small {
        display: none;
    }

    .progress-step {
        min-width: 36px;
    }

    .progress-line {
        margin:
            0 2px
            0;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 520px) {

    .sma-container {
        width: calc(100% - 16px);

        padding:
            22px 0
            45px;
    }

    .sma-brand {
        width: calc(100% - 16px);
    }

    .sma-logo {
        width: 40px;
        height: 40px;

        border-radius: 10px;
    }

    .sma-brand-title {
        font-size: 12px;
    }

    .sma-brand-subtitle {
        font-size: 10px;
    }

    .sma-intro {
        margin-bottom: 25px;
    }

    .sma-intro h1 {
        font-size: 27px;
    }

    .sma-intro p {
        font-size: 12px;
    }

    .sma-progress {
        margin-bottom: 18px;
    }

    .progress-step span {
        width: 28px;
        height: 28px;

        font-size: 10px;
    }

    .form-step {
        padding:
            20px 16px;

        border-radius: 15px;
    }

    .step-heading {
        margin-bottom: 24px;
    }

    .step-heading h2 {
        font-size: 18px;
    }

    .step-heading p {
        font-size: 12px;
    }

    .step-number {
        width: 38px;
        height: 38px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .statement-card {
        grid-template-columns: 30px minmax(0, 1fr);

        gap: 10px;

        padding:
            17px 0;
    }

    .statement-number {
        width: 30px;
        height: 30px;

        border-radius: 8px;
    }

    .statement-content p {
        font-size: 13px;
    }

    .choice-row {
        flex-direction: column;

        gap: 11px;
    }

    .step-actions {
        flex-direction: column-reverse;

        align-items: stretch;
    }

    .step-actions button {
        width: 100%;
    }

    .summary-row {
        flex-direction: column;

        gap: 3px;
    }

    .summary-row strong {
        text-align: left;
    }
}