/* ============================================================
   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;
    -webkit-appearance: none;  /* ← ye add karo */
    appearance: none;          /* ← ye add karo */
    min-height: 46px;
}

.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;
    }
}


.al-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.al-modal-backdrop--open {
    display: flex;
}

.al-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.al-modal__header {
    text-align: center;
    padding: 2rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.al-modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--purple-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.al-modal__icon i {
    font-size: 22px;
    color: var(--purple);
}

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

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

.al-modal__body {
    padding: 1.5rem;
}

.al-modal__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.al-preview-section {
    margin-bottom: 1.25rem;
}

.al-preview-section__title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.6rem;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.al-preview-row {
    display: flex;
    gap: 1rem;
    padding: 5px 0;
    font-size: 13px;
}

.al-preview-row__label {
    color: var(--muted);
    min-width: 120px;
    flex-shrink: 0;
}

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

.al-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

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

.al-preview-tag--machine {
    background: var(--bg);
    color: var(--muted);
    font-size: 11px;
}
.al-machine-box__input textarea,
textarea.al-machine-box__input {
    resize: vertical;
    min-height: 70px;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 400px) {

    .al-container { padding: 1rem 0.75rem 3rem; }

    .al-header { padding: 10px 16px; }

    .al-header__logo { max-height: 100px; }

    .al-card { padding: 1rem; border-radius: 12px; }

    .al-card__title { font-size: 18px; }

    .al-stepper { margin-bottom: 1.25rem; }

    .al-step__circle { width: 32px; height: 32px; font-size: 12px; }

    .al-step__label { font-size: 10px; }

    .al-step__connector { max-width: 60px; }

}

@media (max-width: 520px) {

    .al-card { padding: 1.25rem; }

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

    .al-sub-row { flex-wrap: wrap; align-items: flex-start; gap: 6px; }

    .al-sub-label { flex: 1; min-width: 0; word-break: break-word; }

    .al-machine-inline { width: 100%; padding-left: 26px; }

    .al-machine-inline__input { flex: 1; width: auto; min-width: 0; }

    .al-machine-box__input { width: 100%; }

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

    .al-opt-item { padding: 10px; }

    .al-opt-label { font-size: 12px; }

    .al-opt-icon { width: 28px; height: 28px; }

    .al-opt-icon i { font-size: 13px; }

    .al-section-title { font-size: 13px; }

    .al-field__input, .al-field__textarea, .al-field__select, .al-machine-inline__input, .al-machine-box__input { font-size: 16px; padding: 12px 14px; }

    .al-biz-chips { flex-direction: row; flex-wrap: wrap; }

    .al-biz-chip { flex: 1; min-width: calc(50% - 5px); justify-content: center; padding: 10px 12px; font-size: 13px; }

    .al-btn-row { flex-direction: column-reverse; gap: 10px; justify-content: stretch; }

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

    .al-modal-backdrop { padding: 0; align-items: flex-end; }

    .al-modal { max-width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; }

    .al-preview-row { flex-direction: column; gap: 3px; }

    .al-preview-row__label { min-width: unset; font-size: 11px; }

    .al-thankyou__title { font-size: 20px; }

    .al-confirm-row { flex-direction: column; align-items: flex-start; gap: 4px; }

    .al-confirm-row__value { text-align: left; }

    .al-opt-item:has(.al-sub-panel) { grid-column: 1 / -1; }

}

@media (max-width: 360px) {

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

    .al-biz-chip { min-width: 100%; }

    .al-card__title { font-size: 16px; }

}

@media (hover: none) and (pointer: coarse) {

    .al-opt-item { min-height: 52px; }

    .al-sub-row { min-height: 44px; padding: 10px 0; }

    .al-biz-chip { min-height: 46px; }

    .al-btn--primary:hover { transform: none; box-shadow: none; }

}
