/* ═══════════════════════════════════════════════════════════
   Sydney Ironing — Quick Booking
   ═══════════════════════════════════════════════════════════ */

.qb-page { max-width: 720px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }

/* Progress bar */
.qb-progress { display: flex; align-items: center; margin-bottom: 2rem; }
.qb-step {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Nunito Sans', sans-serif; font-size: 13px; font-weight: 600;
    color: #94A3B8;
}
.qb-step.active { color: var(--primary); }
.qb-step.done   { color: #22C55E; }
.qb-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    background: #E2E8F0; color: #94A3B8; flex-shrink: 0;
}
.qb-step.active .qb-step-num { background: var(--primary); color: #fff; }
.qb-step.done   .qb-step-num { background: #22C55E; color: #fff; }
.qb-step-label { white-space: nowrap; }
.qb-step-divider { flex: 1; height: 1px; background: #E2E8F0; margin: 0 12px; }

/* Step panels */
.qb-panel { display: none; }
.qb-panel.active { display: block; }

/* Back button */
.qb-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: none; padding: 0;
    font-family: 'Nunito Sans', sans-serif; font-size: 14px; font-weight: 600;
    color: var(--text-muted); cursor: pointer; margin-top: .75rem;
    transition: color .15s;
}
.qb-back-btn:hover { color: var(--primary); }

.qb-hd { margin-bottom: 1.75rem; }
.qb-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .35rem;
}
.qb-sub { font-size: 16px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Card */
.qb-card {
    background: var(--white);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.qb-card-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .3rem;
}


.qb-card-sub { font-size: 14px; color: var(--text-muted); margin: 0 0 1.1rem; line-height: 1.5; }

/* Item rows (garment + quantity) */
.qb-item-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.qb-item-row {
    display: grid;
    grid-template-columns: 1fr 90px auto;
    align-items: center;
    gap: 10px;
}

.qb-item-select,
.qb-item-qty {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    color: var(--text-body);
    background: #FAFBFC;
    outline: none;
    width: 100%;
    transition: border-color .18s, box-shadow .18s;
}

.qb-item-select:focus,
.qb-item-qty:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8,145,178,.1);
    background: var(--white);
}

.qb-item-remove {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-hint);
    cursor: pointer;
    transition: all .15s;
}

.qb-item-remove:hover { background: #FEF2F2; border-color: #FECACA; color: #EF4444; }
.qb-item-remove:disabled { opacity: .4; cursor: not-allowed; }

.qb-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px dashed #A5F3FC;
    border-radius: var(--radius);
    padding: 9px 16px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    transition: all .15s;
}

.qb-add-btn:hover { background: var(--primary-light); border-color: var(--primary); }

.qb-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1.5px solid var(--border-light);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.qb-total-row span:last-child {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    color: var(--primary);
}

/* Fields */
.qb-row-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.qb-row-2-10  { display: grid; grid-template-columns: 2fr 10fr; gap: 14px; margin-bottom: 16px; }

.qb-field-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.qb-row-2 .qb-field-group { margin-bottom: 0; }

.qb-field-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-body);
    letter-spacing: .02em;
}

.qb-field-group label span:not(.qb-optional) { color: #F43F5E; margin-left: 2px; }
.qb-optional { color: var(--text-hint); font-weight: 500; font-size: 12px; }

.qb-input,
.qb-textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    color: var(--text-body);
    background: #FAFBFC;
    outline: none;
    width: 100%;
    transition: border-color .18s, box-shadow .18s;
}

.qb-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.qb-input:focus,
.qb-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8,145,178,.1);
    background: var(--white);
}

.qb-input.qb-field-invalid,
.qb-textarea.qb-field-invalid,
.qb-item-select.qb-field-invalid,
.qb-item-qty.qb-field-invalid {
    border-color: #F43F5E;
    box-shadow: 0 0 0 3px rgba(244,63,94,.08);
}

.qb-hint { font-size: 12.5px; color: var(--text-hint); }

.qb-error {
    font-size: 13px;
    color: #BE123C;
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    border-radius: 8px;
    padding: 9px 13px;
    margin-top: 6px;
    display: none;
}

.qb-error.show { display: block; }

/* Payment method cards */
.qb-pay-methods { display: flex; flex-direction: column; gap: 10px; }

.qb-pay-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: all .15s;
}

.qb-pay-card:hover { border-color: var(--primary); }

.qb-pay-card input[type="radio"] { margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }

.qb-pay-info h4 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 2px; }
.qb-pay-info p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Submit */
.qb-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 15px 24px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.qb-submit-btn:hover { background: var(--primary-dark); }
.qb-submit-btn:disabled { opacity: .7; cursor: wait; }

.qb-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    display: none;
    animation: qb-spin .7s linear infinite;
}

.qb-submit-btn.is-loading .qb-spinner { display: block; }

@keyframes qb-spin { to { transform: rotate(360deg); } }

.qb-fineprint { font-size: 12px; color: var(--text-hint); margin-top: 1rem; text-align: center; }

/* Success state */
.qb-success { text-align: center; padding: 3rem 1rem; }
.qb-success-icon {
    width: 64px; height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.qb-success h2 { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700; color: var(--text); margin: 0 0 .6rem; }
.qb-success p { font-size: 15px; color: var(--text-muted); max-width: 440px; margin: 0 auto; line-height: 1.6; }

/* Stripe Payment Element */
#qb-stripe-wrap {
    margin-top: 14px;
    animation: qb-fade-in .2s ease;
}

@keyframes qb-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.qb-stripe-inner {
    background: #F8FAFC;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

#qb-payment-element { display: none; }

/* Skeleton loader */
#qb-stripe-skeleton { display: block; }

.qb-skel-label {
    height: 13px;
    width: 90px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    margin-bottom: 10px;
    animation: qb-shimmer 1.4s infinite;
}

.qb-skel-field {
    height: 44px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: qb-shimmer 1.4s infinite;
}

.qb-skel-full    { width: 100%; }
.qb-skel-country { width: 100%; height: 44px; }

.qb-skel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qb-skel-half { margin-bottom: 0; }

@keyframes qb-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .qb-row-2 { grid-template-columns: 1fr; gap: 0; }
    .qb-item-row { grid-template-columns: 1fr auto; grid-template-areas: "select remove" "qty remove"; }
    .qb-item-select { grid-area: select; }
    .qb-item-qty { grid-area: qty; }
    .qb-item-remove { grid-area: remove; }
}
