/* ================================================================
   Appointment Booking Demo — HealthFirst Clinic Theme
   2Stallions · v1.0.0
   Light-blue clinic color palette
   ================================================================ */

/* ----------------------------------------------------------------
   CSS Custom Properties
   ---------------------------------------------------------------- */
:root {
  --abd-primary: #2e86c1;
  --abd-primary-hover: #2471a3;
  --abd-primary-dark: #1a5276;
  --abd-primary-light: #aed6f1;
  --abd-primary-bg: #eaf4fb;
  --abd-primary-bg2: #d6eaf8;
  --abd-accent: #5dade2;
  --abd-success: #1a7a44;
  --abd-success-bg: #d5f5e3;
  --abd-success-border: #82e0aa;
  --abd-error: #c0392b;
  --abd-error-bg: #fdedec;
  --abd-error-border: #f1948a;
  --abd-text: #1c2a38;
  --abd-text-muted: #6b7f8e;
  --abd-border: #bee3f8;
  --abd-border-dark: #85c1e9;
  --abd-white: #ffffff;
  --abd-bg: #f0f8ff;
  --abd-radius: 12px;
  --abd-radius-sm: 8px;
  --abd-shadow: 0 2px 16px rgba(46, 134, 193, 0.12);
  --abd-shadow-md: 0 4px 24px rgba(46, 134, 193, 0.16);
  --abd-shadow-lg: 0 8px 48px rgba(26, 82, 118, 0.22);
  --abd-font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --abd-transition: 0.18s ease;
}

/* ----------------------------------------------------------------
   Base wrapper
   ---------------------------------------------------------------- */
#abd-app,
#abd-app *,
#abd-app *::before,
#abd-app *::after {
  box-sizing: border-box;
}

#abd-app {
  font-family: var(--abd-font);
  font-size: 15px;
  color: var(--abd-text);
  background: var(--abd-bg);
  padding: 40px 20px 60px;
  line-height: 1.5;
  max-width: 100%;
}

.abd-container {
  display: flex;
  gap: 32px;
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}

/* ================================================================
   FORM SIDE
   ================================================================ */
.abd-form-side {
  flex: 0 0 400px;
  background: var(--abd-white);
  border-radius: var(--abd-radius);
  box-shadow: var(--abd-shadow-md);
  overflow: hidden;
}

/* Form header */
.abd-form-header {
  background: linear-gradient(145deg, #1a5276 0%, #2e86c1 50%, #5dade2 100%);
  color: white;
  padding: 28px 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.abd-form-header::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.abd-form-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.abd-clinic-logo {
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.abd-form-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.abd-form-header p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

/* Form body */
#abd-booking-form {
  padding: 24px 28px 28px;
}

/* Field groups */
.abd-field-group {
  margin-bottom: 18px;
}

.abd-field-group > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--abd-primary-dark);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.abd-required {
  color: var(--abd-error);
  margin-left: 2px;
}

.abd-field-hint {
  display: block;
  font-size: 11px;
  color: var(--abd-text-muted);
  margin-top: 5px;
  font-style: italic;
}

/* Inputs & selects */
.abd-field-group input[type="text"],
.abd-field-group input[type="tel"],
.abd-field-group input[type="email"],
.abd-field-group select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--abd-border);
  border-radius: var(--abd-radius-sm);
  font-size: 14px;
  font-family: var(--abd-font);
  color: var(--abd-text);
  background: var(--abd-white);
  transition:
    border-color var(--abd-transition),
    box-shadow var(--abd-transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.abd-field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%232e86c1' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
  cursor: pointer;
}

.abd-field-group input:focus,
.abd-field-group select:focus {
  border-color: var(--abd-primary);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.15);
}

.abd-field-group input[readonly] {
  background: var(--abd-primary-bg);
  color: var(--abd-primary-dark);
  font-weight: 600;
  cursor: default;
  font-size: 13.5px;
}

.abd-field-group input.abd-input-error,
.abd-field-group select.abd-input-error {
  border-color: var(--abd-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.abd-field-error {
  display: block;
  font-size: 11.5px;
  color: var(--abd-error);
  margin-top: 5px;
}

/* Readonly date/slot field wrapper */
.abd-readonly-wrap {
  position: relative;
}

.abd-readonly-wrap input {
  padding-right: 38px;
}

.abd-readonly-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--abd-primary);
  pointer-events: none;
}

/* Email row */
.abd-email-row {
  display: flex;
  gap: 8px;
}

.abd-email-row input {
  flex: 1;
  min-width: 0;
}

.abd-verify-btn {
  flex-shrink: 0;
  padding: 10px 14px;
  background: var(--abd-primary-bg);
  color: var(--abd-primary);
  border: 1.5px solid var(--abd-primary-light);
  border-radius: var(--abd-radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--abd-font);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--abd-transition);
  line-height: 1;
}

.abd-verify-btn:hover:not(:disabled) {
  background: var(--abd-primary-light);
  border-color: var(--abd-primary);
}

.abd-verify-btn:disabled {
  cursor: default;
}

.abd-verify-btn.abd-verified {
  background: var(--abd-success-bg);
  color: var(--abd-success);
  border-color: var(--abd-success-border);
}

.abd-email-status {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 600;
}

.abd-email-status.success {
  color: var(--abd-success);
}
.abd-email-status.error {
  color: var(--abd-error);
}

/* Checkbox labels */
.abd-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--abd-text) !important;
  user-select: none;
}

.abd-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--abd-primary);
  cursor: pointer;
  margin: 0;
}

.abd-checkbox-label a {
  color: var(--abd-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.abd-checkbox-label a:hover {
  color: var(--abd-primary-dark);
}

/* reCAPTCHA demo widget */
.abd-recaptcha-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1.5px solid var(--abd-border);
  border-radius: var(--abd-radius-sm);
  padding: 14px 16px;
  background: #f7fcff;
  transition: border-color var(--abd-transition);
}

.abd-recaptcha-demo:focus-within {
  border-color: var(--abd-primary-light);
}

.abd-recaptcha-branding {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1.5px solid var(--abd-border);
  padding-left: 14px;
  flex-shrink: 0;
}

.abd-rc-shield {
  flex-shrink: 0;
}

.abd-rc-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.abd-rc-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--abd-text-muted);
  letter-spacing: 0.3px;
}

.abd-rc-sub {
  font-size: 9px;
  font-weight: 700;
  color: #e67e22;
  letter-spacing: 1px;
}

/* Form messages */
.abd-message {
  padding: 12px 16px;
  border-radius: var(--abd-radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.abd-message.abd-msg-success {
  background: var(--abd-success-bg);
  color: var(--abd-success);
  border-color: var(--abd-success-border);
}

.abd-message.abd-msg-error {
  background: var(--abd-error-bg);
  color: var(--abd-error);
  border-color: var(--abd-error-border);
}

/* Action buttons */
.abd-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.abd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--abd-radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--abd-font);
  border: none;
  cursor: pointer;
  transition: all var(--abd-transition);
  line-height: 1;
  text-decoration: none;
}

.abd-btn-primary {
  background: var(--abd-primary);
  color: white;
  flex: 1;
}

.abd-btn-primary:hover:not(:disabled) {
  background: var(--abd-primary-hover);
  box-shadow: 0 4px 14px rgba(46, 134, 193, 0.35);
  transform: translateY(-1px);
}

.abd-btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.abd-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.abd-btn-secondary {
  background: transparent;
  color: var(--abd-text-muted);
  border: 1.5px solid var(--abd-border-dark);
}

.abd-btn-secondary:hover {
  background: var(--abd-primary-bg);
  color: var(--abd-primary);
  border-color: var(--abd-primary-light);
}

/* Spinner */
.abd-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: abdSpin 0.75s linear infinite;
  vertical-align: middle;
}

@keyframes abdSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================================
   CALENDAR SIDE
   ================================================================ */
.abd-calendar-side {
  flex: 1 1 700px;
  max-width: 700px;
  min-width: 0;
}

/* Hint panel */
.abd-calendar-hint {
  background: var(--abd-white);
  border-radius: var(--abd-radius);
  box-shadow: var(--abd-shadow);
  padding: 48px 40px;
  text-align: center;
}

.abd-hint-icon {
  margin-bottom: 20px;
}

.abd-calendar-hint h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--abd-primary-dark);
}

.abd-calendar-hint p {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--abd-text-muted);
  line-height: 1.6;
}

.abd-calendar-hint strong {
  color: var(--abd-primary);
}

.abd-hint-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.abd-hint-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--abd-text-muted);
}

.abd-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--abd-primary-bg2);
  color: var(--abd-primary-dark);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Calendar panel */
.abd-calendar-panel {
  background: var(--abd-white);
  border-radius: var(--abd-radius);
  box-shadow: var(--abd-shadow-md);
  overflow: hidden;
}

/* Doctor info bar */
.abd-doctor-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--abd-primary-bg);
  border-bottom: 1.5px solid var(--abd-border);
}

.abd-doctor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--abd-primary-dark),
    var(--abd-primary)
  );
  color: white;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(46, 134, 193, 0.3);
}

.abd-doctor-details {
  flex: 1;
}

.abd-doctor-details strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--abd-primary-dark);
  line-height: 1.3;
}

.abd-doctor-details small {
  font-size: 12px;
  color: var(--abd-text-muted);
}

/* Calendar header */
.abd-cal-header {
  background: linear-gradient(145deg, #1a5276, #2e86c1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.abd-cal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.2px;
}

.abd-cal-nav {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--abd-transition);
  line-height: 1;
  padding: 0;
  font-family: var(--abd-font);
}

.abd-cal-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
}

.abd-cal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Calendar grid */
.abd-cal-grid {
  padding: 12px 12px 6px;
}

.abd-cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.abd-cal-days-header span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--abd-primary-dark);
  padding: 6px 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.abd-sunday-header {
  color: var(--abd-text-muted) !important;
  opacity: 0.7;
}

.abd-cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

/* Calendar day cells */
.abd-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: default;
  transition: all 0.13s;
  position: relative;
  border: 2px solid transparent;
  outline: none;
  background: transparent;
  color: var(--abd-text);
}

.abd-cal-day.empty {
  background: transparent;
  pointer-events: none;
}

.abd-cal-day.past,
.abd-cal-day.unavailable {
  color: #c5d4de;
  background: transparent;
}

.abd-cal-day.sunday {
  color: #d5e3ee;
  background: transparent;
}

.abd-cal-day.today:not(.selected) {
  border-color: var(--abd-primary-light);
  color: var(--abd-primary-dark);
  font-weight: 700;
}

.abd-cal-day.available {
  background: var(--abd-primary-bg);
  color: var(--abd-primary-dark);
  cursor: pointer;
  font-weight: 600;
}

.abd-cal-day.available::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--abd-primary);
  border-radius: 50%;
}

.abd-cal-day.available:hover {
  background: var(--abd-primary-light);
  border-color: var(--abd-primary);
  transform: scale(1.05);
}

.abd-cal-day.available:focus {
  border-color: var(--abd-primary);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.2);
}

.abd-cal-day.selected {
  background: var(--abd-primary) !important;
  color: white !important;
  border-color: var(--abd-primary-dark) !important;
  box-shadow: 0 3px 10px rgba(46, 134, 193, 0.4);
  transform: scale(1.05);
  font-weight: 700;
}

.abd-cal-day.selected::after {
  background: rgba(255, 255, 255, 0.7) !important;
}

/* Legend */
.abd-cal-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px 14px;
  flex-wrap: wrap;
}

.abd-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--abd-text-muted);
}

.abd-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.abd-legend-available .abd-legend-dot {
  background: var(--abd-primary);
}
.abd-legend-selected .abd-legend-dot {
  background: var(--abd-primary-dark);
}
.abd-legend-none .abd-legend-dot {
  background: #d5e3ee;
}

/* Timeslot section */
.abd-timeslot-section {
  padding: 16px 20px 20px;
  border-top: 1.5px solid var(--abd-border);
  background: var(--abd-primary-bg);
}

@media (min-width: 640px) {
  .abd-calendar-panel.abd-has-timeslots {
    display: grid !important;
    grid-template-columns: minmax(240px, 330px) minmax(240px, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "doctor doctor"
      "header times"
      "grid times"
      "legend times";
    align-items: start;
  }

  .abd-calendar-panel.abd-has-timeslots .abd-doctor-info {
    grid-area: doctor;
  }

  .abd-calendar-panel.abd-has-timeslots .abd-cal-header {
    grid-area: header;
  }

  .abd-calendar-panel.abd-has-timeslots .abd-cal-grid {
    grid-area: grid;
  }

  .abd-calendar-panel.abd-has-timeslots .abd-cal-legend {
    grid-area: legend;
  }

  .abd-calendar-panel.abd-has-timeslots .abd-timeslot-section {
    grid-area: times;
    align-self: stretch;
    width: 100%;
    margin: 0;
    border-top: none;
    border-left: 1.5px solid var(--abd-border);
    min-height: 100%;
    max-height: none;
    overflow-y: auto;
    padding: 14px 16px 16px;
  }
}

.abd-timeslot-section h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--abd-primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.abd-timeslot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.abd-timeslot-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--abd-primary-light);
  background: var(--abd-white);
  color: var(--abd-primary-dark);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--abd-font);
  cursor: pointer;
  transition: all 0.13s;
  line-height: 1;
  outline: none;
}

.abd-timeslot-btn:hover {
  background: var(--abd-primary-light);
  border-color: var(--abd-primary);
  transform: translateY(-1px);
}

.abd-timeslot-btn:focus {
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.2);
}

.abd-timeslot-btn.selected {
  background: var(--abd-primary);
  color: white;
  border-color: var(--abd-primary-dark);
  box-shadow: 0 3px 10px rgba(46, 134, 193, 0.3);
  transform: translateY(-1px);
}

.abd-no-slots {
  font-size: 13px;
  color: var(--abd-text-muted);
  font-style: italic;
  margin: 0;
}

/* ================================================================
   MODALS
   ================================================================ */
.abd-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.abd-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 50, 0.55);
  backdrop-filter: blur(3px);
}

.abd-modal-box {
  position: relative;
  background: var(--abd-white);
  border-radius: 16px;
  box-shadow: var(--abd-shadow-lg);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1;
  animation: abdModalIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes abdModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.abd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1.5px solid var(--abd-border);
  background: var(--abd-primary-bg);
  border-radius: 16px 16px 0 0;
}

.abd-modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--abd-primary-dark);
}

.abd-modal-close-x {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--abd-text-muted);
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--abd-transition);
  font-family: var(--abd-font);
}

.abd-modal-close-x:hover {
  color: var(--abd-primary);
}

.abd-modal-body {
  padding: 22px 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--abd-text);
}

.abd-modal-body p {
  margin: 0 0 12px;
}

.abd-modal-body ol {
  padding-left: 22px;
  margin: 12px 0 0;
}

.abd-modal-body li {
  margin-bottom: 10px;
}

.abd-modal-body a {
  color: var(--abd-primary);
}

.abd-modal-footer {
  padding: 16px 24px;
  border-top: 1.5px solid var(--abd-border);
  display: flex;
  justify-content: flex-end;
  background: #f8fbff;
  border-radius: 0 0 16px 16px;
}

/* Success modal */
.abd-modal-success {
  padding: 40px 36px;
  text-align: center;
  max-width: 480px;
}

.abd-success-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(145deg, #1a7a44, #27ae60);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.35);
  animation: abdSuccessPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s
    both;
}

@keyframes abdSuccessPop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.abd-modal-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--abd-success);
  margin: 0 0 8px;
}

.abd-success-sub {
  font-size: 14px;
  color: var(--abd-text-muted);
  margin: 0 0 20px;
}

.abd-success-details {
  background: var(--abd-primary-bg);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 16px;
}

.abd-success-details p {
  margin: 6px 0;
  font-size: 13.5px;
  color: var(--abd-text);
}

.abd-ref-badge {
  display: inline-block;
  background: var(--abd-primary);
  color: white;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 6px;
  margin: 4px 0 12px;
}

.abd-success-note {
  font-size: 12px;
  color: var(--abd-text-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Fail modal */
.abd-modal-fail {
  padding: 40px 36px;
  text-align: center;
  max-width: 420px;
}

.abd-fail-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(145deg, #922b21, #c0392b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.3);
  animation: abdSuccessPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s
    both;
}

.abd-modal-fail h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--abd-error);
  margin: 0 0 12px;
}

.abd-fail-message {
  font-size: 14px;
  color: var(--abd-text-muted);
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .abd-container {
    flex-direction: column;
    gap: 24px;
  }

  .abd-form-side {
    flex: none;
    width: 100%;
  }

  .abd-calendar-side {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 520px) {
  #abd-app {
    padding: 20px 12px 40px;
  }

  #abd-booking-form {
    padding: 20px 16px 24px;
  }

  .abd-form-header {
    padding: 22px 16px 18px;
  }

  .abd-calendar-hint {
    padding: 36px 24px;
  }

  .abd-timeslot-grid {
    gap: 6px;
  }

  .abd-timeslot-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .abd-form-actions {
    flex-direction: column;
  }

  .abd-btn-primary {
    flex: none;
  }
}
