/* ============================================================
   Aditya Laces — Supplier Registration Form
   supplier.css  |  All form styles
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple:       #7c3fa8;
    --purple-dark:  #5e2d80;
    --purple-light: #f5eeff;
    --green:        #6ab04c;
    --green-light:  #f0fff4;
    --text:         #1a1a2e;
    --muted:        #64687a;
    --border:       #e4e0ed;
    --bg:           #f8f5fb;
    --white:        #ffffff;
    --error:        #c0392b;
    --radius:       10px;
    --radius-lg:    16px;
    --shadow:       0 4px 24px rgba(124, 63, 168, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────── */
.al-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.al-header__logo {
    height: 150px;
    object-fit: contain;
}

/* ── Page container ──────────────────────────────────────── */
.al-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* ── Stepper ─────────────────────────────────────────────── */
.al-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.al-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.al-step__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: var(--white);
    color: var(--muted);
    transition: all 0.3s;
}

.al-step__circle--active {
    border-color: var(--purple);
    background: var(--purple);
    color: var(--white);
}

.al-step__circle--done {
    border-color: var(--purple);
    background: var(--purple);
    color: var(--white);
}

.al-step__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.al-step__label--active {
    color: var(--purple);
}

.al-step__connector {
    flex: 1;
    max-width: 120px;
    height: 2px;
    background: var(--border);
    margin-bottom: 20px;
    transition: background 0.3s;
}

.al-step__connector--done {
    background: var(--purple);
}

/* ── Alert ───────────────────────────────────────────────── */
.al-alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 14px;
}

.al-alert--danger {
    background: #fdf0ef;
    border: 1px solid #f5c6c2;
    color: var(--error);
}

.al-alert ul {
    margin-top: 6px;
    padding-left: 18px;
}

/* ── Card ────────────────────────────────────────────────── */
.al-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.al-card__header {
    margin-bottom: 1.75rem;
}

.al-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.al-card__title--accent {
    color: var(--purple);
}

.al-card__subtitle {
    font-size: 14px;
    color: var(--muted);
}

/* ── Form fields ─────────────────────────────────────────── */
.al-field {
    margin-bottom: 1.25rem;
}

.al-field__label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 6px;
}

.al-field__required {
    color: var(--error);
    margin-left: 2px;
}

.al-field__hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 4px;
}

.al-field__input,
.al-field__textarea,
.al-field__select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.al-field__input:focus,
.al-field__textarea:focus,
.al-field__select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(124, 63, 168, 0.10);
}

.al-field__input--invalid,
.al-field__textarea--invalid {
    border-color: var(--error);
}

.al-field__textarea {
    resize: vertical;
}

.al-field__error {
    display: block;
    font-size: 12px;
    color: var(--error);
    margin-top: 4px;
}

/* ── Two-column row ──────────────────────────────────────── */
.al-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ── Divider ─────────────────────────────────────────────── */
.al-divider {
    height: 1px;
    background: var(--border);
    margin: 1.75rem 0;
}

/* ── Section title ───────────────────────────────────────── */
.al-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.al-section-title__icon {
    color: var(--purple);
    font-size: 16px;
}

/* ── Business type chips ─────────────────────────────────── */
.al-biz-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.al-biz-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    background: var(--white);
    transition: all 0.2s;
    user-select: none;
}

.al-biz-chip input[type="checkbox"] {
    display: none;
}

.al-biz-chip__icon {
    font-size: 16px;
}

.al-biz-chip--selected,
.al-biz-chip.selected {
    border-color: var(--purple);
    background: var(--purple-light);
    color: var(--purple);
}

/* ── Capability option grid ──────────────────────────────── */
.al-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
}

.al-opt-item {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 13px 15px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--white);
}

.al-opt-item--selected,
.al-opt-item.selected {
    border-color: var(--purple);
    background: var(--purple-light);
}

.al-opt-item input[type="checkbox"] {
    display: none;
}

.al-opt-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.al-opt-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0ebf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.al-opt-item.selected .al-opt-icon {
    background: #e0d0f5;
}

.al-opt-icon i {
    font-size: 15px;
    color: var(--purple);
}

.al-opt-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

/* ── Embroidery sub-types panel ──────────────────────────── */
.al-sub-panel {
    display: none;
    margin-top: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px dashed var(--border);
}

.al-sub-panel--show,
.al-sub-panel.show {
    display: block;
}

.al-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.al-sub-row:last-of-type {
    border-bottom: none;
}

.al-sub-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.al-sub-row--selected .al-sub-check,
.al-sub-row.selected .al-sub-check {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.al-sub-row.selected .al-sub-check::after {
    content: '✓';
    font-size: 11px;
}

.al-sub-label {
    font-size: 13px;
    color: var(--text);
    flex: 1;
}

/* ── Machine count inline (embroidery sub-types) ─────────── */
.al-machine-inline {
    display: none;
    align-items: center;
    gap: 6px;
}

.al-machine-inline--show,
.al-machine-inline.show {
    display: flex;
}

.al-machine-inline__label {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.al-machine-inline__input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
}

.al-machine-inline__input:focus {
    outline: none;
    border-color: var(--purple);
}

/* ── Machine count block (non-embroidery) ────────────────── */
.al-machine-box {
    display: none;
    margin-top: 10px;
}

.al-machine-box--show,
.al-machine-box.show {
    display: block;
}

.al-machine-box__label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
    display: block;
}

.al-machine-box__input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
}

.al-machine-box__input:focus {
    outline: none;
    border-color: var(--purple);
}

/* ── Buttons ─────────────────────────────────────────────── */
.al-btn-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.al-btn {
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.al-btn--primary {
    background: var(--purple);
    color: var(--white);
}

.al-btn--primary:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 63, 168, 0.3);
}

.al-btn--primary:active {
    transform: translateY(0);
}

.al-btn--secondary {
    background: transparent;
    color: var(--muted);
    border: 1.5px solid var(--border);
}

.al-btn--secondary:hover {
    background: var(--bg);
}

/* ── Thank-you page ──────────────────────────────────────── */
.al-thankyou {
    text-align: center;
    padding: 2rem 0;
}

.al-thankyou__circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green-light);
    border: 3px solid var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.al-thankyou__circle-icon {
    font-size: 32px;
    color: var(--green);
}

.al-thankyou__title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.al-thankyou__subtitle {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto 1.5rem;
}

.al-confirm-box {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    text-align: left;
    margin-bottom: 1rem;
}

.al-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.al-confirm-row--bordered {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 4px;
}

.al-confirm-row--top {
    align-items: flex-start;
}

.al-confirm-row__label {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.al-confirm-row__value {
    font-weight: 500;
    color: var(--text);
    text-align: right;
}

.al-badge-biz {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--purple-light);
    color: var(--purple);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
}

.al-ref-text {
    font-size: 13px;
    color: var(--muted);
}

/* ── Footer note ─────────────────────────────────────────── */
.al-footer {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 2rem;
}

.al-footer a {
    color: var(--purple);
    text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 520px) {
    .al-card {
        padding: 1.25rem;
    }

    .al-row-2 {
        grid-template-columns: 1fr;
    }

    .al-option-grid {
        grid-template-columns: 1fr;
    }

    .al-biz-chips {
        flex-direction: column;
    }

    .al-biz-chip {
        width: 100%;
        justify-content: center;
    }

    .al-btn-row {
        justify-content: stretch;
    }

    .al-btn {
        width: 100%;
        justify-content: center;
    }
}
