.adb-form{max-width:100%;margin:0;padding:24px;border:1px solid #e5e7eb;background:#ffffff;border-radius:12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;box-shadow:0 4px 18px rgba(0,0,0,.04)}
.adb-form h3{margin:22px 0 12px;font-size:20px;line-height:1.3;color:#0f172a;border-top:1px solid #f1f5f9;padding-top:14px}
.adb-form h3:first-of-type{border-top:0;padding-top:0}
.adb-row{display:grid;grid-template-columns:repeat(12,1fr);gap:16px;align-items:flex-start; margin-top:10px;}
.adb-col{grid-column:span 6;min-width:0}
.adb-form label{display:block;margin-bottom:6px;font-weight:700;color:#334155}
.adb-form input[type=text],
.adb-form input[type=email],
.adb-form input[type=tel],
.adb-form select{width:100%;padding:10px;border:1px solid #c9c9c9;border-radius:4px}
.adb-form input[type=date],
.adb-form select{width:100%;padding:12px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;box-shadow:inset 0 1px 0 rgba(0,0,0,.02)}
.adb-form input:focus,.adb-form select:focus{outline:none;border-color:#4b0082;box-shadow:0 0 0 3px rgba(30,115,190,.12)}
.adb-checks label{display:inline-flex;align-items:center;margin:8px 10px 8px 0;gap:8px;font-weight:600;border:1px solid #e2e8f0;padding:8px 12px;border-radius:9999px;background:#f8fafc;color:#334155}
.adb-checks input{accent-color:#4b0082}
.adb-persona{display:none;border:1px solid #e2e8f0;padding:16px;border-radius:12px;background:#fafafe;margin-top:10px}
.adb-submit{padding:12px 18px;background:#4b0082;color:#fff;border:0;border-radius:10px;cursor:pointer;font-weight:700;box-shadow:0 2px 8px rgba(30,115,190,.25);margin-top: 20px;position:relative; z-index:99}
.adb-note{opacity:.8;font-size:13px;margin:10px 0}
@media (max-width:600px){.adb-row{flex-direction:column}}
@media (max-width:960px){.adb-col{grid-column:span 12}}
.adb-scheduler{display:grid;grid-template-columns:380px 1fr;gap:20px;margin-top:10px}
.adb-calendar{border:1px solid #e6e6e6;border-radius:8px;padding:12px;background:#fafafa}
.adb-cal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.adb-cal-title{font-weight:700}
.adb-cal-nav{border:1px solid #dcdcdc;background:#fff;border-radius:6px;padding:6px 10px;cursor:pointer}
.adb-cal-nav{border:1px solid #dcdcdc;background:#fff;border-radius:6px;padding:6px 10px;cursor:pointer}
.adb-cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin:6px 0 4px;font-size:12px;color:#6b7280}
.adb-cal-weekdays>div{text-align:center;font-weight:600}
.adb-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;min-height:220px;contain:layout style paint}
.adb-day{position:relative;border:1px solid #e1e1e1;background:#fff;border-radius:8px;padding:10px;min-height:44px;text-align:left;cursor:pointer;display:flex;align-items:flex-start;justify-content:flex-start;will-change:box-shadow}
.adb-day:hover{border-color:#4b0082}
.adb-day--empty{visibility:hidden}
.adb-day--disabled{opacity:.4;cursor:not-allowed}
.adb-day--selected{border-color:#4b0082;box-shadow:0 0 0 2px rgba(30,115,190,.15)}
.adb-day--booked{background:#f9f2f2}
.adb-day--partial{background:#fffaf0}
.adb-day--available{background:#f6fffb}
.adb-day-num{font-weight:700}
.adb-badge{position:absolute;right:10px;top:12px;background:#4b0082;color:#fff;font-size:11px;padding:2px 6px;border-radius:9999px}
.adb-legend{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px;font-size:12px}
.adb-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:6px;border:1px solid rgba(0,0,0,.08);vertical-align:middle}
.adb-dot-available{background:#22c55e}
.adb-dot-partial{background:#f59e0b}
.adb-dot-pending{background:#eab308}
.adb-dot-booked{background:#ef4444}

.adb-times{border:1px solid #e6e6e6;border-radius:8px;padding:12px;background:#fff}
.adb-times-title{font-weight:700;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}
.adb-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;max-height:320px;overflow:auto;padding-right:4px;contain:layout style paint}
.adb-slot{border:1px solid #dcdcdc;background:#fff;border-radius:8px;padding:10px 12px;text-align:center;cursor:pointer}
.adb-slot:hover{border-color:#4b0082}
.adb-slot--selected{background:#4b0082;color:#fff;border-color:#4b0082}
.adb-slot--booked{background:#f9f2f2;border-color:#ef4444;color:#991b1b;cursor:not-allowed;opacity:.7}
.adb-slot--pending{background:#fffaf0;border-color:#eab308;color:#92400e;cursor:not-allowed;opacity:.85}
.adb-empty{opacity:.7;padding:8px}
.adb-loading-text{opacity:.8}

@media (max-width:900px){.adb-scheduler{grid-template-columns:1fr}}

.adb-steps{display:flex;gap:8px;margin:10px 0 14px}
.adb-step{padding:8px 12px;border:1px solid #e0e0e0;border-radius:9999px;background:#f8fafc;font-weight:600;color:#475569}
.adb-step--active{background:#4b0082;color:#fff;border-color:#4b0082}
.adb-back-link{margin-left:12px;font-weight:600;color:#4b0082;text-decoration:none}
.adb-back-link:hover{text-decoration:underline}
.adb-calendar .adb-day--available{background:#f6fffb!important;border-color:#22c55e!important}
.adb-calendar .adb-day--partial{background:#fffaf0!important;border-color:#f59e0b!important}
.adb-calendar .adb-day--booked{background:#f9f2f2!important;border-color:#ef4444!important}
.adb-legend-slots{margin-top:10px}

.adb-confirmation-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
    max-width: 500px;
    margin: 20px auto;
}
.adb-confirmation-card h3 {
    margin: 16px 0 8px;
    font-size: 24px;
    color: #0f172a;
    border: none;
    padding: 0;
}
.adb-confirmation-card p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 24px;
}
.adb-conf-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 32px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.adb-success-card .adb-conf-icon {
    background: #f0fdf4;
    color: #16a34a;
}
.adb-error-card .adb-conf-icon {
    background: #fef2f2;
    color: #dc2626;
}
.adb-confirmation-card .adb-submit {
    display: inline-block;
    text-decoration: none;
    margin-top: 0;
}

/* Animations */
@keyframes adb-pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.adb-confirmation-card {
    animation: adb-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.adb-conf-icon {
    animation: adb-pop 0.5s 0.2s both cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Loader Spinner */
.adb-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.adb-loader.active {
    display: flex;
}
.adb-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: adb-spin 0.8s linear infinite;
}
@keyframes adb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.adb-form.adb-loading .adb-submit {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}
.adb-form.adb-loading .adb-submit::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: adb-spin 0.8s linear infinite;
    vertical-align: middle;
}
