/* Auto Veil Booking – Frontend Styles (v1.1.0) */
:root {
    --avb-red:        #E01D21;
    --avb-dark-red:   #A3191B;
    --avb-bg:         #050505;
    --avb-card:       #111111;
    --avb-card2:      #181818;
    --avb-border:     #2a2a2a;
    --avb-white:      #FFFFFF;
    --avb-muted:      #B8B8B8;
    --avb-light-red:  #FADEDE;
    --avb-success:    #22c55e;
    --avb-warning:    #f59e0b;
    --avb-radius:     12px;
    --avb-radius-sm:  8px;
    --avb-transition: 0.2s ease;
}

/* ─── Wrap ─────────────────────────────────────────────── */
.avb-wrap {
    background: var(--avb-bg);
    color: var(--avb-white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 600px;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}
.avb-wrap *, .avb-wrap *::before, .avb-wrap *::after { box-sizing: border-box; }

/* ─── Progress ─────────────────────────────────────────── */
.avb-progress { padding: 32px 24px 0; }
.avb-progress-bar {
    background: var(--avb-border);
    border-radius: 99px;
    height: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}
.avb-progress-fill {
    background: linear-gradient(90deg, var(--avb-dark-red), var(--avb-red));
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
    width: 16.66%;
}
.avb-steps-nav {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}
.avb-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.avb-dot-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--avb-card2);
    border: 2px solid var(--avb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--avb-muted);
    transition: all var(--avb-transition);
}
.avb-step-dot.active .avb-dot-num,
.avb-step-dot.done .avb-dot-num {
    background: var(--avb-red);
    border-color: var(--avb-red);
    color: var(--avb-white);
}
.avb-dot-label {
    font-size: 10px;
    color: var(--avb-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.avb-step-dot.active .avb-dot-label { color: var(--avb-red); }

/* ─── Live Price Bar ───────────────────────────────────── */
.avb-price-bar {
    margin: 20px 24px 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(224,29,33,0.12), rgba(163,25,27,0.08));
    border: 1px solid rgba(224,29,33,0.3);
    border-radius: var(--avb-radius);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}
.avb-price-bar-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--avb-muted);
    font-weight: 600;
}
.avb-price-bar-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--avb-white);
    flex: 1;
}
.avb-price-bar-note {
    font-size: 11px;
    color: var(--avb-muted);
    font-style: italic;
}

/* ─── Form Container ───────────────────────────────────── */
.avb-form-container { padding: 24px; }

/* ─── Step Header ──────────────────────────────────────── */
.avb-step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.avb-step-badge {
    font-size: 40px;
    font-weight: 800;
    color: var(--avb-border);
    line-height: 1;
    min-width: 56px;
}
.avb-step-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: var(--avb-white);
}
.avb-step-header p { margin: 0; color: var(--avb-muted); font-size: 14px; }

/* ─── Field Grid ───────────────────────────────────────── */
.avb-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media (max-width: 600px) { .avb-fields-grid { grid-template-columns: 1fr; } }
.avb-field-full { grid-column: 1 / -1; }

.avb-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--avb-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

/* ─── Inputs / Selects / Textareas ─────────────────────── */
/* Fixed: dropdown text was cut off in previous version.    */
/* Added explicit min-height, line-height, vertical-align. */
.avb-field input,
.avb-field select,
.avb-field textarea {
    width: 100%;
    background: var(--avb-card);
    border: 1.5px solid var(--avb-border);
    color: var(--avb-white);
    border-radius: var(--avb-radius-sm);
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    font-family: inherit;
    transition: border-color var(--avb-transition), box-shadow var(--avb-transition);
    box-sizing: border-box;
    display: block;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Inputs need a min-height to look consistent with selects */
.avb-field input[type="text"],
.avb-field input[type="email"],
.avb-field input[type="tel"],
.avb-field input[type="number"],
.avb-field input[type="date"] {
    min-height: 48px;
    height: 48px;
}

/* Selects: dropdown chevron + room for it so text is not clipped */
.avb-field select {
    min-height: 48px;
    height: 48px;
    padding-right: 44px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23B8B8B8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
/* Webkit sometimes needs an explicit text-indent so selected text stays vertically centered */
.avb-field select::-ms-expand { display: none; }

.avb-field textarea {
    resize: vertical;
    min-height: 100px;
    height: auto;
}

.avb-field input:focus,
.avb-field select:focus,
.avb-field textarea:focus {
    outline: none;
    border-color: var(--avb-red);
    box-shadow: 0 0 0 3px rgba(224,29,33,0.15);
}

.avb-field input::placeholder,
.avb-field textarea::placeholder { color: #555; }
.avb-field select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Native select options inherit the OS picker styling; we colour as a fallback */
.avb-field option { background: #1a1a1a; color: var(--avb-white); padding: 8px; }

.req { color: var(--avb-red); }
.avb-optional { color: var(--avb-muted); font-weight: 400; font-size: 11px; }
.avb-error { color: #f87171; font-size: 12px; margin-top: 4px; display: block; }
.avb-field-hint { display: block; color: var(--avb-muted); font-size: 12px; margin-top: 6px; }

/* ─── Services Grid ─────────────────────────────────────── */
.avb-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 600px) { .avb-services-grid { grid-template-columns: 1fr; } }
.avb-service-card {
    display: block;
    background: var(--avb-card);
    border: 1.5px solid var(--avb-border);
    border-radius: var(--avb-radius);
    padding: 16px 18px;
    cursor: pointer;
    transition: all var(--avb-transition);
    position: relative;
}
.avb-service-card:hover {
    border-color: var(--avb-red);
    background: var(--avb-card2);
}
.avb-service-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.avb-service-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.avb-service-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.avb-service-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--avb-border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    flex-shrink: 0;
    transition: all var(--avb-transition);
    background: var(--avb-card2);
}
.avb-service-card.selected {
    border-color: var(--avb-red);
    background: rgba(224,29,33,0.08);
}
.avb-service-card.selected .avb-service-check {
    background: var(--avb-red);
    border-color: var(--avb-red);
    color: var(--avb-white);
}
.avb-service-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--avb-white);
    line-height: 1.3;
}
.avb-service-price {
    font-size: 12px;
    font-weight: 500;
    color: var(--avb-red);
    letter-spacing: 0.3px;
}

/* ─── Detail Groups ─────────────────────────────────────── */
.avb-detail-group {
    background: var(--avb-card);
    border: 1px solid var(--avb-border);
    border-radius: var(--avb-radius);
    padding: 20px;
    margin-bottom: 16px;
}
.avb-detail-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--avb-white);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--avb-border);
}
.avb-warning-box {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.4);
    border-radius: var(--avb-radius-sm);
    padding: 12px 16px;
    color: #fcd34d;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.avb-info-box {
    background: rgba(224,29,33,0.08);
    border: 1px solid rgba(224,29,33,0.2);
    border-radius: var(--avb-radius-sm);
    padding: 14px 18px;
    color: var(--avb-muted);
    font-size: 14px;
}

/* ─── File Upload ───────────────────────────────────────── */
.avb-photo-upload-section { margin-top: 16px; }
.avb-upload-area {
    border: 2px dashed var(--avb-border);
    border-radius: var(--avb-radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--avb-transition);
    position: relative;
}
.avb-upload-area:hover { border-color: var(--avb-red); }
.avb-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.avb-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--avb-muted);
    font-size: 14px;
    pointer-events: none;
}
.avb-upload-icon { font-size: 28px; }
.avb-upload-sub { font-size: 12px; color: #555; }
.avb-photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.avb-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
}
.avb-preview-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--avb-radius-sm);
    border: 1px solid var(--avb-border);
}
.avb-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--avb-red);
    color: white;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
#avb-upload-status { font-size: 13px; color: var(--avb-muted); margin-top: 8px; }

/* ─── Hours Notice ──────────────────────────────────────── */
.avb-hours-notice {
    background: var(--avb-card);
    border: 1px solid var(--avb-border);
    border-left: 3px solid var(--avb-red);
    border-radius: var(--avb-radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--avb-muted);
    margin-top: 16px;
}

/* ─── Review ────────────────────────────────────────────── */
.avb-review-section {
    background: var(--avb-card);
    border: 1px solid var(--avb-border);
    border-radius: var(--avb-radius);
    padding: 20px;
    margin-bottom: 14px;
}
.avb-review-section h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--avb-red);
    margin: 0 0 12px;
}
.avb-review-table { width: 100%; border-collapse: collapse; }
.avb-review-table tr + tr td { border-top: 1px solid var(--avb-border); }
.avb-review-table td { padding: 8px 0; font-size: 14px; vertical-align: top; }
.avb-review-table td:first-child { color: var(--avb-muted); width: 38%; padding-right: 12px; }
.avb-review-services { display: flex; flex-wrap: wrap; gap: 6px; }
.avb-review-service-tag {
    background: rgba(224,29,33,0.15);
    border: 1px solid rgba(224,29,33,0.3);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--avb-light-red);
}

/* Final price section on review page */
.avb-review-price-section {
    background: linear-gradient(135deg, rgba(224,29,33,0.10), rgba(163,25,27,0.05));
    border: 1.5px solid rgba(224,29,33,0.4);
}
.avb-review-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--avb-white);
    line-height: 1.1;
    margin: 4px 0;
}
.avb-review-price.quote {
    color: var(--avb-muted);
    font-size: 22px;
}
.avb-review-price-note {
    font-size: 12px;
    color: var(--avb-muted);
    font-style: italic;
    margin-top: 6px;
}

/* ─── Submit ────────────────────────────────────────────── */
.avb-submit-section { margin-top: 24px; text-align: center; }
.avb-submit-notice {
    color: var(--avb-muted);
    font-size: 13px;
    margin: 0 auto 20px;
    max-width: 500px;
}
.avb-error-msg { color: #f87171; font-size: 14px; margin-top: 12px; }

/* ─── Buttons ───────────────────────────────────────────── */
.avb-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--avb-border);
}
.avb-btn {
    border: none;
    border-radius: var(--avb-radius-sm);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    cursor: pointer;
    transition: all var(--avb-transition);
    letter-spacing: 0.3px;
    font-family: inherit;
}
.avb-btn-next {
    background: linear-gradient(135deg, var(--avb-red), var(--avb-dark-red));
    color: var(--avb-white);
    margin-left: auto;
}
.avb-btn-next:hover { opacity: 0.88; transform: translateY(-1px); }
.avb-btn-back {
    background: transparent;
    border: 1.5px solid var(--avb-border);
    color: var(--avb-muted);
}
.avb-btn-back:hover { border-color: var(--avb-white); color: var(--avb-white); }
.avb-btn-submit {
    background: linear-gradient(135deg, var(--avb-red), var(--avb-dark-red));
    color: var(--avb-white);
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 8px;
    min-width: 240px;
}
.avb-btn-submit:hover { opacity: 0.88; }
.avb-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Success ───────────────────────────────────────────── */
.avb-success { text-align: center; padding: 60px 20px; }
.avb-success-icon {
    width: 80px;
    height: 80px;
    background: var(--avb-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 24px;
}
.avb-success h2 {
    font-size: 26px;
    margin: 0 0 12px;
    color: var(--avb-white);
}
.avb-success p {
    color: var(--avb-muted);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto 10px;
}
.avb-success-ref {
    font-size: 18px;
    color: var(--avb-white) !important;
    margin-bottom: 20px !important;
}
.avb-success-ref strong { color: var(--avb-red); }

/* ============================================================ */
/*  Step 4 – Calendar & Slot Grid (v1.2.0)                       */
/* ============================================================ */

.avb-duration-summary {
    background: var(--avb-card);
    border: 1px solid var(--avb-border);
    border-left: 3px solid var(--avb-red);
    border-radius: var(--avb-radius-sm);
    padding: 12px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.avb-duration-label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--avb-muted);
    font-weight: 600;
}
.avb-duration-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--avb-white);
}

.avb-manual-notice {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.35);
    border-radius: var(--avb-radius);
    padding: 16px 18px;
    margin-bottom: 18px;
    color: #fcd34d;
    font-size: 14px;
    line-height: 1.55;
}
.avb-manual-notice strong { color: #fde68a; }
.avb-manual-notice p { margin: 6px 0 0; color: #cbd5e1; }

.avb-calendar-grid-wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 18px;
}
@media (max-width: 720px) {
    .avb-calendar-grid-wrap { grid-template-columns: 1fr; }
}

/* ─── Calendar ─── */
.avb-calendar {
    background: var(--avb-card);
    border: 1px solid var(--avb-border);
    border-radius: var(--avb-radius);
    padding: 18px;
}
.avb-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.avb-cal-nav {
    background: var(--avb-card2);
    border: 1px solid var(--avb-border);
    color: var(--avb-white);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--avb-transition);
}
.avb-cal-nav:hover { background: var(--avb-red); border-color: var(--avb-red); }
.avb-cal-month {
    font-size: 15px;
    font-weight: 700;
    color: var(--avb-white);
    letter-spacing: 0.3px;
}
.avb-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}
.avb-cal-weekdays > div {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--avb-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
}
.avb-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.avb-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--avb-white);
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--avb-card2);
    border: 1px solid transparent;
    user-select: none;
}
.avb-cal-day.avb-cal-blank { background: transparent; cursor: default; }
.avb-cal-day.available { color: var(--avb-white); }
.avb-cal-day.available:hover {
    background: rgba(224,29,33,0.18);
    border-color: var(--avb-red);
    transform: translateY(-1px);
}
.avb-cal-day.selected,
.avb-cal-day.selected:hover {
    background: var(--avb-red);
    border-color: var(--avb-red);
    color: var(--avb-white);
    box-shadow: 0 0 0 3px rgba(224,29,33,0.25);
}
.avb-cal-day.past,
.avb-cal-day.closed,
.avb-cal-day.blocked {
    color: #444;
    background: transparent;
    cursor: not-allowed;
    text-decoration: line-through;
    text-decoration-color: #333;
}
.avb-cal-day.blocked { background: rgba(239,68,68,0.06); }
.avb-cal-day.closed { background: #0a0a0a; }

.avb-cal-legend {
    display: flex;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--avb-border);
    font-size: 11px;
    color: var(--avb-muted);
    flex-wrap: wrap;
}
.avb-cal-legend span { display: flex; align-items: center; gap: 6px; }
.avb-cal-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.avb-leg-avail    { background: var(--avb-card2); border: 1px solid var(--avb-border); }
.avb-leg-selected { background: var(--avb-red); }
.avb-leg-blocked  { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); }

/* ─── Slots Panel ─── */
.avb-slots-panel {
    background: var(--avb-card);
    border: 1px solid var(--avb-border);
    border-radius: var(--avb-radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}
.avb-slots-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--avb-border);
}
.avb-slots-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--avb-white);
}
.avb-slots-sub {
    font-size: 12px;
    color: var(--avb-muted);
}
.avb-slots-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    flex: 1;
    align-content: start;
}
@media (max-width: 720px) {
    .avb-slots-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
    .avb-slots-list { grid-template-columns: repeat(3, 1fr); }
}
.avb-slot-btn {
    background: var(--avb-card2);
    border: 1.5px solid var(--avb-border);
    color: var(--avb-white);
    border-radius: 6px;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--avb-transition);
    font-family: inherit;
    text-align: center;
}
.avb-slot-btn:hover {
    border-color: var(--avb-red);
    background: rgba(224,29,33,0.1);
    transform: translateY(-1px);
}
.avb-slot-btn.selected {
    background: var(--avb-red);
    border-color: var(--avb-red);
    color: var(--avb-white);
    box-shadow: 0 0 0 3px rgba(224,29,33,0.25);
}
.avb-slots-status {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    color: var(--avb-muted);
}
.avb-manual-date-confirm {
    background: rgba(224,29,33,0.08);
    border: 1px solid rgba(224,29,33,0.3);
    border-radius: var(--avb-radius-sm);
    padding: 16px 18px;
    color: var(--avb-white);
    font-size: 14px;
    grid-column: 1 / -1;
    line-height: 1.6;
}
.avb-manual-date-confirm small {
    color: var(--avb-muted);
    font-size: 12px;
}

.avb-error-block {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #f87171;
}

/* ===========================================================
   v1.3.0 — Itemized Estimate Panel
   =========================================================== */

.avb-price-bar-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,.15);
    color: #ffd0d0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    cursor: pointer;
    margin-left: auto;
    transition: all .2s ease;
}
.avb-price-bar-toggle:hover {
    background: rgba(224, 29, 33, .15);
    border-color: #E01D21;
    color: #fff;
}

.avb-itemized-panel {
    background: #0c0c0c;
    border: 1px solid #1f1f1f;
    border-radius: 12px;
    margin: 0 0 24px 0;
    overflow: hidden;
    animation: avb-fade-in .25s ease;
}

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

.avb-itemized-estimate {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.avb-empty-estimate {
    text-align: center;
    color: #777;
    padding: 18px;
    font-size: 13px;
    font-style: italic;
}

.avb-item-block {
    background: #131313;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    padding: 14px 18px;
    transition: border-color .2s;
}
.avb-item-block:hover { border-color: #2a2a2a; }

.avb-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #1f1f1f;
}
.avb-item-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
}
.avb-item-subtotal {
    color: #E01D21;
    font-weight: 700;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}
.avb-item-subtotal.avb-item-quote {
    color: #fcd34d;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.avb-item-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.5;
}
.avb-line-label {
    color: #b5b5b5;
    flex: 1;
    padding-right: 16px;
}
.avb-line-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 13px;
    min-width: 80px;
    text-align: right;
}
.avb-line-amount.positive { color: #ff6b6b; }
.avb-line-amount.negative { color: #6ce26c; }
.avb-line-amount.zero { color: #666; font-weight: 500; }

/* Line kind variants */
.avb-item-line.kind-base .avb-line-label { color: #d4d4d4; font-weight: 500; }
.avb-item-line.kind-base .avb-line-amount { color: #fff; }
.avb-item-line.kind-option-info .avb-line-label { color: #888; }
.avb-item-line.kind-surcharge .avb-line-label { color: #fcd34d; }
.avb-item-line.kind-surcharge .avb-line-amount { color: #fcd34d; }

.avb-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    margin-top: 4px;
    background: linear-gradient(135deg, rgba(224, 29, 33, .08), rgba(224, 29, 33, .02));
    border: 1px solid rgba(224, 29, 33, .25);
    border-radius: 10px;
}
.avb-total-label {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.avb-total-amount {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
}

/* ===========================================================
   v1.3.0 — Dynamic option group cards (radio/checkbox)
   =========================================================== */

.avb-dynamic-detail-group {
    margin-bottom: 24px;
}

.avb-checkbox-list,
.avb-radio-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.avb-addon-card,
.avb-radio-card {
    background: #131313;
    border: 1.5px solid #222;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all .15s ease;
    position: relative;
    user-select: none;
}
.avb-addon-card:hover,
.avb-radio-card:hover {
    border-color: #444;
    background: #181818;
}
.avb-addon-card input,
.avb-radio-card input { position: absolute; opacity: 0; pointer-events: none; }

.avb-addon-check {
    width: 18px; height: 18px;
    border-radius: 4px;
    border: 1.5px solid #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: all .15s;
    flex-shrink: 0;
}
.avb-addon-card input:checked + .avb-addon-check {
    background: #E01D21;
    border-color: #E01D21;
    color: #fff;
}
.avb-addon-card input:checked ~ .avb-addon-label { color: #fff; }
.avb-addon-card:has(input:checked),
.avb-radio-card:has(input:checked) {
    border-color: #E01D21;
    background: rgba(224, 29, 33, .08);
}

.avb-radio-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 1.5px solid #444;
    flex-shrink: 0;
    position: relative;
    transition: all .15s;
}
.avb-radio-card input:checked + .avb-radio-dot {
    border-color: #E01D21;
}
.avb-radio-card input:checked + .avb-radio-dot::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #E01D21;
}

.avb-addon-label,
.avb-radio-label {
    color: #d4d4d4;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}
.avb-addon-mod,
.avb-radio-mod {
    color: #888;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    margin-left: 8px;
}
.avb-addon-card:has(input:checked) .avb-addon-mod,
.avb-radio-card:has(input:checked) .avb-radio-mod { color: #ffd0d0; }

/* Itemized review section variant */
.avb-itemized-review {
    background: #0c0c0c;
    border-radius: 10px;
    padding: 18px 0 0 0;
}
.avb-itemized-review .avb-item-block:last-of-type { margin-bottom: 4px; }

@media (max-width: 640px) {
    .avb-itemized-estimate { padding: 14px; gap: 14px; }
    .avb-item-block { padding: 12px 14px; }
    .avb-item-name { font-size: 14px; }
    .avb-item-subtotal { font-size: 14px; }
    .avb-total-amount { font-size: 18px; }
    .avb-price-bar-toggle { margin-left: 0; margin-top: 6px; width: 100%; text-align: center; }
}

/* ===========================================================
   v1.4.2 — Per-service subtotal in Step 3 service section header
   =========================================================== */
.avb-detail-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.avb-detail-header .avb-detail-title {
    margin: 0;
    flex: 1;
}
.avb-service-subtotal {
    color: #E01D21;
    font-weight: 700;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.avb-service-subtotal:empty { display: none; }

@media (max-width: 640px) {
    .avb-service-subtotal { font-size: 14px; }
}

/* ===========================================================
   v1.4.3 — A little more breathing room between the check
   icon and the option/add-on label (icon→label only, the
   label→price gap from v1.3.0 is preserved).
   =========================================================== */
.avb-addon-check { margin-right: 6px; }
.avb-radio-dot   { margin-right: 6px; }

/* ============================================================
   v1.5.0 — Service Category Selection (Step 0) + Commercial Flow
   ============================================================ */

.avb-category-step { padding: 24px; }

.avb-category-header h2 { margin: 0 0 6px; }
.avb-category-header p  { color: var(--avb-muted); margin: 0; }

.avb-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 700px) {
    .avb-category-grid { grid-template-columns: 1fr; }
}

.avb-category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    padding: 28px 24px;
    background: var(--avb-card);
    border: 2px solid var(--avb-border);
    border-radius: var(--avb-radius);
    color: var(--avb-white);
    cursor: pointer;
    transition: all var(--avb-transition);
    font: inherit;
}
.avb-category-card:hover,
.avb-category-card:focus-visible {
    border-color: var(--avb-red);
    background: var(--avb-card2);
    transform: translateY(-2px);
    outline: none;
}

.avb-category-icon {
    font-size: 34px;
    line-height: 1;
}
.avb-category-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.avb-category-desc {
    color: var(--avb-muted);
    font-size: 14px;
    line-height: 1.5;
}
.avb-category-cta {
    margin-top: 8px;
    color: var(--avb-red);
    font-weight: 600;
    font-size: 14px;
}

/* "Change service type" link at the top of each flow's first step */
.avb-change-category {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--avb-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--avb-transition);
}
.avb-change-category:hover { color: var(--avb-red); }

/* Commercial service cards — same card language, single-select, with description */
.avb-c-service-card {
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.avb-c-service-card .avb-c-service-desc {
    display: block;
    color: var(--avb-muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 4px 0 6px;
}

/* Existing-film radio list spacing */
.avb-c-film-list { margin-bottom: 16px; }
.avb-c-film-list .avb-radio-card { margin-bottom: 10px; }

/* Estimate disclaimer line under itemized totals */
.avb-c-disclaimer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--avb-border);
    color: var(--avb-muted);
    font-size: 12.5px;
    line-height: 1.5;
}

/* ============================================================
   v1.6.0 — Commercial-only refinements (automotive untouched)
   Scoped under .avb-commercial-active so the automotive flow,
   which never gets this class, keeps its exact spacing.
   ============================================================ */

/* (1) A little more black breathing room above the red estimate bar */
.avb-commercial-active .avb-price-bar {
    margin-top: 32px;
}

/* (2) More vertical space between the step number circle and its label */
.avb-c-step-dot {
    gap: 9px;
}

/* Commercial service cards are multi-select — keep the selected check visible.
   The Custom Quote card gets a subtle accent so it reads as a distinct option. */
.avb-c-custom-card {
    border-style: dashed;
}
.avb-c-custom-card.selected {
    border-style: solid;
}

/* "recommended" hint chip on the square footage label */
.avb-recommended {
    color: var(--avb-muted);
    font-weight: 400;
    font-size: 12px;
}

/* ============================================================
   v1.9.0 — Commercial Window Areas / Zones
   ============================================================ */
.avb-area-card {
    border: 1px solid var(--avb-border, #2a2a2a);
    border-radius: var(--avb-radius, 10px);
    padding: 18px;
    margin-bottom: 16px;
    background: var(--avb-card2, #161616);
}
.avb-area-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.avb-area-index {
    font-weight: 700;
    color: var(--avb-red, #E01D21);
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: 13px;
}
.avb-area-remove {
    background: transparent;
    border: 1px solid #5c2121;
    color: #ff9b9b;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
}
.avb-area-remove:hover { background: rgba(224,29,33,.12); }

.avb-area-services-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--avb-muted, #b8b8b8);
    margin: 14px 0 8px;
}
.avb-area-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}
.avb-area-svc {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding: 10px 12px;
    background: var(--avb-card, #111);
    border: 1px solid var(--avb-border, #2a2a2a);
    border-radius: 8px;
    color: var(--avb-white, #fff);
    cursor: pointer;
    font: inherit;
}
.avb-area-svc .avb-service-name { flex: 1; font-size: 13px; }
.avb-area-svc .avb-service-price { font-size: 11px; color: var(--avb-muted, #b8b8b8); }
.avb-area-svc .avb-service-check { opacity: 0; color: var(--avb-red, #E01D21); font-weight: 700; }
.avb-area-svc.selected { border-color: var(--avb-red, #E01D21); background: rgba(224,29,33,.08); }
.avb-area-svc.selected .avb-service-check { opacity: 1; }
.avb-area-svc.avb-c-custom-card { border-style: dashed; }
.avb-area-svc.avb-c-custom-card.selected { border-style: solid; }

.avb-area-goals { margin-top: 12px; }
.avb-goal-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.avb-goal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--avb-border, #2a2a2a);
    border-radius: 20px;
    font-size: 12px;
    color: var(--avb-white, #fff);
    cursor: pointer;
}
.avb-area-review-flag {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.35);
    border-radius: 6px;
    color: #fcd34d;
    font-size: 12.5px;
}
.avb-btn-add-area {
    background: transparent;
    border: 1px dashed var(--avb-red, #E01D21);
    color: var(--avb-red, #E01D21);
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 14px;
}
.avb-btn-add-area:hover { background: rgba(224,29,33,.08); }
.avb-review-notice {
    background: rgba(245,158,11,.10);
    border: 1px solid rgba(245,158,11,.30);
    color: #fcd34d;
}

/* Area estimate blocks in the breakdown panel */
.avb-area-est-block { border-bottom: 1px dashed var(--avb-border, #2a2a2a); padding: 8px 0; }
.avb-area-est-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.avb-area-est-name { color: var(--avb-white, #fff); }
.avb-area-est-sub { color: var(--avb-white, #fff); }
.avb-area-review-tag {
    font-size: 10px;
    background: rgba(245,158,11,.18);
    color: #fcd34d;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
}
.avb-grand-total { border-top: 2px solid var(--avb-border, #2a2a2a); margin-top: 8px; padding-top: 10px; }
.avb-area-meta-line { font-size: 12px; color: var(--avb-muted, #b8b8b8); padding: 4px 0 10px; }
.avb-review-line { color: #fcd34d; }
