/* Avellana Booking Styles */

:root {
  --ab-green:       #62C647;
  --ab-green-dark:  #4aad32;
  --ab-green-light: #edfae9;
  --ab-green-mid:   #b8f0ae;
  --ab-head:        #111827;
  --ab-body:        #374151;
  --ab-muted:       #9ca3af;
  --ab-border:      #e5e7eb;
}

.ab-outer { padding: 16px; }

.ab-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.07);
  padding: 40px 44px;
  max-width: 920px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ab-body);
}

/* Title */
.ab-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--ab-head);
  margin: 0 0 32px;
  letter-spacing: -0.4px;
}

/* Top grid */
.ab-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Calendar header */
.ab-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ab-cal-month {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ab-green);
}

.ab-cal-nav { display: flex; gap: 4px; }

.ab-cal-nav button {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ab-muted);
  font-size: 20px;
  line-height: 1;
  transition: background 0.15s;
}
.ab-cal-nav button:hover { background: var(--ab-green-light); color: #33452E; }
.ab-cal-nav button:focus { outline: 2px solid #33452E; outline-offset: 2px; }

/* Weekday headers */
.ab-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}
.ab-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--ab-muted);
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Calendar grid */
.ab-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.ab-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: var(--ab-body);
  transition: background 0.12s, color 0.12s;
  user-select: none;
}
.ab-cal-day:not(.ab-empty):not(.ab-past):hover {
  background: var(--ab-green-light);
  color: var(--ab-green-dark);
}
.ab-cal-day.ab-empty,
.ab-cal-day.ab-past { cursor: default; }
.ab-cal-day.ab-past { color: #d1d5db; }
.ab-cal-day.ab-booked {
  color: #d1d5db;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #f9fafb;
}

/* Booked time slot */
.ab-time-slot.ab-slot-booked {
  cursor: not-allowed;
  border-color: #f3f4f6;
  background: #fafafa;
  opacity: 0.6;
}
.ab-time-slot.ab-slot-booked .ab-radio {
  border-color: #d1d5db;
}
.ab-time-slot.ab-slot-booked .ab-slot-label {
  color: #d1d5db;
  text-decoration: line-through;
}
.ab-slot-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #d1d5db;
  background: #f3f4f6;
  border-radius: 20px;
  padding: 2px 9px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.ab-cal-day.ab-selected {
  background: var(--ab-green);
  color: #fff;
  font-weight: 600;
  border-radius: 50%;
}

/* Time slots */
.ab-time-label {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ab-head);
  margin: 0 0 14px;
}

.ab-time-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.ab-time-list::-webkit-scrollbar { width: 4px; }
.ab-time-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.ab-time-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  cursor: pointer;
  border: 1.5px solid var(--ab-border);
  background: #fff;
  transition: all 0.15s;
}
.ab-time-slot:hover { border-color: var(--ab-green); background: var(--ab-green-light); }
.ab-time-slot.ab-selected { background: var(--ab-green); border-color: var(--ab-green); }

.ab-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.ab-time-slot.ab-selected .ab-radio { border-color: #fff; }
.ab-time-slot.ab-selected .ab-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: block;
}

.ab-slot-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ab-body);
  transition: color 0.15s;
}
.ab-time-slot.ab-selected .ab-slot-label { color: #fff; }

/* Divider */
.ab-divider { height: 1px; background: #f3f4f6; margin: 32px 0; }

/* Form */
.ab-form-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ab-head);
  margin: 0 0 24px;
}

.ab-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ab-field { display: flex; flex-direction: column; gap: 6px; }

.ab-field label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ab-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ab-field input {
  border: none;
  border-bottom: 1.5px solid var(--ab-border);
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
  padding: 10px 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: var(--ab-head);
  background: transparent;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.ab-field input::placeholder { color: #d1d5db; }
.ab-field input:focus { outline: none; box-shadow: none; border-color: #33452E; }

/* Button */
.ab-btn-wrap { display: flex; justify-content: center; margin-top: 32px; }

.ab-btn {
  display: inline-flex;
  align-items: center;
  
  background: var(--ab-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px 36px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-width: 260px;
  justify-content: center;
}
.ab-btn:hover:not(:disabled) { background: var(--ab-green-dark); }
.ab-btn:active:not(:disabled) { transform: scale(0.98); }
.ab-btn:disabled { opacity: 0.7; cursor: not-allowed; }


/* Success */
.ab-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 0 8px;
}

.ab-success-icon {
  width: 64px;
  height: 64px;
  background: var(--ab-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.ab-success h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ab-head);
  margin: 0 0 8px;
}

.ab-success p {
  font-size: 15px;
  color: var(--ab-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .ab-card { padding: 24px 18px; }
  .ab-top-grid { grid-template-columns: 1fr; gap: 28px; }
  .ab-form-row { grid-template-columns: 1fr; }
  .ab-time-list { max-height: 200px; }
}
