/* Kyox AccountApplication — multi-step form, matches AccountShopping card aesthetic */

/* The wrap (.empty-products-wrap) is already styled in schulmanshome.css */
/* with muted bg + max-width. We extend it for the wider wizard layout. */

.kyox-app-shell.empty-products-wrap {
    max-width: 1080px;
    margin: 32px auto 64px;
    padding: 0 16px;
}

.kyox-app-card.empty-products-card {
    padding: 40px 56px;
    text-align: left;
}

@media (max-width: 768px) {
    .kyox-app-card.empty-products-card {
        padding: 28px 22px;
    }
}

.kyox-app-card__head {
    text-align: center;
    margin-bottom: 8px;
}

.kyox-app-card__head .empty-products-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.kyox-app-card__head .empty-products-sub {
    margin-bottom: 8px;
}

.kyox-app-card__body {
    margin-top: 16px;
}

/* Progress bar */
.kyox-app-progress {
    margin: 20px 0 28px;
    padding: 0 4px;
}

.kyox-app-progress__bar {
    background: #f2f2f2;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 18px;
}

.kyox-app-progress__fill {
    background: #ec268f;
    height: 100%;
    transition: width 0.3s ease;
}

.kyox-app-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.kyox-app-step {
    flex: 1;
    text-align: center;
    color: #aaa;
    font-size: 12px;
}

.kyox-app-step a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.kyox-app-step a:hover .kyox-app-step__label {
    color: #ec268f;
}

.kyox-app-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid #e3e3e3;
    background: #fff;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 12px;
}

.kyox-app-step__label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.kyox-app-step.is-current { color: #222; font-weight: 600; }
.kyox-app-step.is-current .kyox-app-step__num { border-color: #ec268f; background: #ec268f; color: #fff; }
.kyox-app-step.is-done { color: #444; }
.kyox-app-step.is-done .kyox-app-step__num { border-color: #ec268f; background: #fff; color: #ec268f; }
.kyox-app-step.is-locked { opacity: 0.45; }

.kyox-app-progress__text {
    text-align: right;
    color: #aaa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 12px 0 0;
}

/* Form */
.kyox-app-form {
    background: transparent;
}

.kyox-app-fieldset {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 18px 22px 8px;
    margin: 0 0 18px;
    background: #fafafa;
}

.kyox-app-fieldset legend {
    padding: 0 8px;
    font-weight: 600;
    font-size: 13px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kyox-app-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px 16px;
}

.kyox-app-field {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.kyox-app-field--narrow { grid-column: span 3; }
.kyox-app-field--full { grid-column: span 12; }

@media (max-width: 768px) {
    .kyox-app-card.empty-products-card { padding: 24px 18px; }
    .kyox-app-row { grid-template-columns: 1fr; }
    .kyox-app-field, .kyox-app-field--narrow, .kyox-app-field--full { grid-column: span 1; }
    .kyox-app-step__label { display: none; }
    /* Stack actions: primary first (thumb-zone), back below */
    .kyox-app-actions {
        flex-direction: column-reverse;
        gap: 10px;
        align-items: stretch;
    }
    .kyox-app-actions .action.primary,
    .kyox-app-actions .kyox-app-next,
    .kyox-app-actions .kyox-app-submit,
    .kyox-app-actions .kyox-app-back {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    /* Signature pad: enforce a usable drawing height on phones.
       The canvas bitmap is resized at runtime (step5.phtml) so this
       displayed height becomes the saved PNG aspect — no stroke distortion. */
    .kyox-app-sigpad canvas {
        height: 170px;
    }
    /* Read-only computed totals on Step 4: visually de-emphasise so
       they don't read as "fields the user must fill". */
    #expense_total_display,
    #disposable_income_display {
        font-weight: 600;
        color: #444;
    }
}

.kyox-app-field label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.kyox-app-field label .required { color: #d0021b; }

.kyox-app-field input[type=text],
.kyox-app-field input[type=email],
.kyox-app-field input[type=tel],
.kyox-app-field input[type=number],
.kyox-app-field input[type=date],
.kyox-app-field select,
.kyox-app-field textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.kyox-app-field input:focus,
.kyox-app-field select:focus,
.kyox-app-field textarea:focus {
    outline: none;
    border-color: #ec268f;
    box-shadow: 0 0 0 3px rgba(236, 38, 143, 0.12);
}

.kyox-app-hint {
    color: #888;
    font-size: 11px;
    margin-top: 4px;
}

/* Radio group */
.kyox-app-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kyox-app-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    font-size: 13px;
}

.kyox-app-radio:has(input:checked) {
    border-color: #ec268f;
    background: rgba(236, 38, 143, 0.05);
    color: #ec268f;
}

.kyox-app-radio input[type=radio] { margin: 0; accent-color: #ec268f; }

/* Actions */
.kyox-app-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.kyox-app-actions .action.primary,
.kyox-app-actions .kyox-app-next,
.kyox-app-actions .kyox-app-submit {
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    background: #ec268f;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.kyox-app-actions .action.primary:hover,
.kyox-app-actions .kyox-app-next:hover,
.kyox-app-actions .kyox-app-submit:hover {
    background: #c01570;
    color: #fff;
}

.kyox-app-back {
    background: transparent;
    border: 1px solid #ddd;
    color: #777;
    padding: 12px 22px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
}

.kyox-app-back:hover { border-color: #999; color: #222; text-decoration: none; }

/* Step 5 — checkboxes, consent text, signature pad, thank-you */

.kyox-app-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}
.kyox-app-checkbox input[type=checkbox] { margin-top: 2px; accent-color: #ec268f; }
.kyox-app-checkbox--required {
    padding: 12px 14px;
    background: #fff8ee;
    border: 1px solid #fad9b3;
    border-radius: 6px;
    margin-top: 6px;
}

.kyox-app-consent-text {
    font-size: 12.5px;
    color: #666;
    line-height: 1.55;
    background: #fff;
    padding: 12px 16px;
    border: 1px solid #f0f0f0;
    border-left: 3px solid #ec268f;
    border-radius: 4px;
    margin: 0 0 14px;
}

.kyox-app-sigpad {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background: #fafafa;
    display: inline-block;
    width: 100%;
    max-width: 600px;
}
.kyox-app-sigpad canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: crosshair;
    touch-action: none;
    background: #fff;
    border-radius: 4px;
}
.kyox-app-sigpad__clear {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 4px 10px;
    font-size: 11px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #777;
}
.kyox-app-sigpad__clear:hover { border-color: #ec268f; color: #ec268f; }

/* Thank-you */
.kyox-app-thankyou {
    text-align: center;
    padding: 50px 20px;
}
.kyox-app-thankyou__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #ec268f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    line-height: 1;
}
.kyox-app-thankyou h1 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 300;
}
.kyox-app-thankyou h1 strong { color: #ec268f; font-weight: 700; }
.kyox-app-thankyou__ref {
    font-size: 16px;
    color: #555;
    margin: 12px 0;
}
.kyox-app-thankyou__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
