* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 20px;
    background: #ffffff;
    color: #071329;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.form-wrapper {
    width: min(1280px, 100%);
    margin: 0 auto;
}

/* ==============================
   STEP NAVIGATION
============================== */

.steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 25px;
}

.step-button {
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #315071;
    min-height: 64px;
    padding: 8px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
}

.step-button:hover {
    background: #f5f9ff;
}

.step-button.active {
    border-color: #2563eb;
    color: #2563eb;
    background: #f5f9ff;
}

.step-number {
    display: block;
    margin-bottom: 4px;
}

/* ==============================
   FORM CARD
============================== */

.section-card {
    border: 1px solid #d9e2ef;
    border-radius: 11px;
    padding: 28px 36px;
    background: #ffffff;
    box-shadow: 0 1px 5px rgba(0, 25, 65, 0.08);
}

.section-card h2 {
    margin: 0 0 28px;
    font-size: 21px;
    font-weight: 500;
}

.section-card h3 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 500;
}

/* ==============================
   FORM FIELDS
============================== */

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 18px;
}

.field {
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #071329;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d7e1ee;
    border-radius: 6px;
    background: #ffffff;
    color: #071329;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    outline: none;
}

input,
select {
    height: 42px;
    padding: 0 11px;
}

textarea {
    min-height: 110px;
    padding: 12px;
    resize: vertical;
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.10);
}

input::placeholder,
textarea::placeholder {
    color: #6680a3;
}

/* ==============================
   CONSENT
============================== */

.consent-box {
    border: 1px solid #d9e2ef;
    border-radius: 11px;
    padding: 24px;
    margin-bottom: 40px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.check-row input {
    width: 22px;
    height: 22px;
    min-width: 22px;
    accent-color: #2563eb;
}

.check-row label {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* ==============================
   ERROR MESSAGES
============================== */

.error-message {
    display: none;
    margin-top: 7px;
    color: #ff3333;
    font-size: 13px;
}

.error-message.show {
    display: block;
}

input.error,
select.error,
textarea.error {
    border-color: #ff3333;
}

/* ==============================
   SUBMISSION DETAILS
============================== */

.submit-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ==============================
   BUTTONS
============================== */

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.nav-action,
.submit-action {
    border-radius: 7px;
    min-height: 48px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.back-button {
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #071329;
}

.next-button {
    border: 1px solid #071329;
    background: #071329;
    color: #ffffff;
}

.submit-action {
    border: none;
    background: #12a34a;
    color: #ffffff;
    min-width: 210px;
}

.submit-action:hover {
    background: #0d8d3d;
}

/* ==============================
   SUCCESS MESSAGE
============================== */

.success-message {
    display: none;
    margin-top: 20px;
    padding: 16px;
    border-radius: 7px;
    background: #effcf3;
    border: 1px solid #a7e3bd;
    color: #087b32;
    font-size: 15px;
}

.success-message.show {
    display: block;
}

.hidden {
    display: none !important;
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 800px) {

    body {
        padding: 10px;
    }

    .steps {
        grid-template-columns: repeat(7, 110px);
        overflow-x: auto;
    }

    .section-card {
        padding: 22px 18px;
    }

    .fields,
    .submit-details {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .actions {
        gap: 10px;
    }

    .nav-action,
    .submit-action {
        width: 100%;
    }
}

