/* AutoFrigo Programari - Public CSS v1.3.0
 * Generated by: Claude Sonnet 4.5 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --afp-primary:    #1a56db;
  --afp-primary-dk: #1341a0;
  --afp-success:    #0e9f6e;
  --afp-danger:     #e02424;
  --afp-warning:    #d97706;
  --afp-avail:      #0e9f6e;
  --afp-partial:    #f59e0b;
  --afp-full:       #e02424;
  --afp-blocked:    #9ca3af;
  --afp-card:       #ffffff;
  --afp-border:     #e5e7eb;
  --afp-text:       #111827;
  --afp-muted:      #6b7280;
  --afp-font:       'DM Sans', system-ui, sans-serif;
}

/* ── Wrap ────────────────────────────────── */
.afp-booking-wrap {
  font-family: var(--afp-font);
  color: var(--afp-text);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Card ────────────────────────────────── */
.afp-booking-card {
  background: var(--afp-card);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────── */
.afp-booking-header {
  background: linear-gradient(135deg, #1a56db 0%, #1341a0 100%);
  padding: 28px 32px 24px;
  text-align: center;
  color: #fff;
}
.afp-booking-logo     { font-size: 40px; margin-bottom: 10px; }
.afp-booking-title    { font-size: 26px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.4px; }
.afp-booking-subtitle { font-size: 15px; opacity: .88; margin: 0 auto; line-height: 1.6; max-width: 580px; display: block; }

/* ── Next available banner ───────────────── */
.afp-next-available-banner {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-bottom: 2px solid #f59e0b;
  padding: 14px 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #78350f;
  letter-spacing: -.1px;
}
.afp-next-available-banner strong { color: #92400e; }

/* ── Calendar layout ─────────────────────── */
.afp-cal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(260px, 1fr);
  gap: 0;
  flex: 1;
}
.afp-cal-col {
  padding: 22px 16px 22px 24px;
  border-right: 1px solid var(--afp-border);
}
.afp-slots-col {
  padding: 22px 24px 22px 16px;
  background: #fafbff;
  transition: background .2s;
}
.afp-slots-col.afp-slots-active { background: #f0f4ff; }

/* ── Step header ─────────────────────────── */
.afp-step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.afp-step-number {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--afp-primary); color: #fff;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.afp-step-header h3 { font-size: 17px; font-weight: 700; margin: 0; color: var(--afp-text); }
.afp-date-label { font-weight: 700; color: var(--afp-primary); font-size: 14px; }

/* ── View toggle ─────────────────────────── */
.afp-cal-view-toggle { display: flex; gap: 4px; margin-bottom: 10px; }
.afp-view-btn {
  padding: 6px 14px; border: 1px solid var(--afp-border);
  border-radius: 7px; font-size: 13px; font-weight: 600;
  cursor: pointer; background: #fff; color: var(--afp-muted);
  font-family: var(--afp-font); transition: all .15s;
}
.afp-view-btn:hover { background: #f3f4f6; }
.afp-view-active { background: var(--afp-primary) !important; color: #fff !important; border-color: var(--afp-primary) !important; }

/* ── Calendar legend ─────────────────────── */
.afp-cal-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--afp-muted); margin-bottom: 10px; }
.afp-cal-legend span { display: flex; align-items: center; gap: 5px; }
.afp-leg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.afp-leg-avail   { background: var(--afp-avail); }
.afp-leg-partial { background: var(--afp-partial); }
.afp-leg-full    { background: var(--afp-full); }
.afp-leg-blocked { background: var(--afp-blocked); }

/* ══════════════════════════════════════════
   FULLCALENDAR OVERRIDES
══════════════════════════════════════════ */
#afp-pub-calendar { font-family: var(--afp-font) !important; }

#afp-pub-calendar .fc-toolbar {
  gap: 8px !important;
  margin-bottom: 8px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
}
#afp-pub-calendar .fc-toolbar-chunk { display: flex; align-items: center; gap: 4px; }
#afp-pub-calendar .fc-toolbar-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  font-family: var(--afp-font) !important;
  white-space: nowrap;
  color: var(--afp-text) !important;
  line-height: 1.2 !important;
}
#afp-pub-calendar .fc-button {
  padding: 5px 12px !important;
  font-size: 13px !important;
  font-family: var(--afp-font) !important;
  font-weight: 600 !important;
  background: var(--afp-primary) !important;
  border-color: var(--afp-primary) !important;
  border-radius: 7px !important;
  height: 32px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
#afp-pub-calendar .fc-button:hover { background: var(--afp-primary-dk) !important; }
#afp-pub-calendar .fc-button:focus { box-shadow: 0 0 0 2px rgba(26,86,219,.3) !important; }

#afp-pub-calendar .fc-col-header-cell {
  background: #f9fafb !important;
  border-bottom: 2px solid var(--afp-border) !important;
  padding: 7px 2px !important;
}
#afp-pub-calendar .fc-col-header-cell-cushion {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--afp-muted) !important;
  text-decoration: none !important;
  padding: 4px 2px !important;
}
#afp-pub-calendar .fc-daygrid-day-number {
  font-size: 13px !important;
  padding: 5px 7px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: var(--afp-text) !important;
  font-weight: 600;
}
#afp-pub-calendar .fc-daygrid-more-link { display: none !important; }
#afp-pub-calendar .fc-event { display: none !important; }
#afp-pub-calendar .fc-timegrid-slot-label-cushion { font-size: 12px !important; }
#afp-pub-calendar .fc-timegrid-axis { width: 48px !important; }
#afp-pub-calendar .fc-timegrid-slot { height: 2.5em !important; }

/* Day cell color system */
#afp-pub-calendar .fc-daygrid-day { cursor: pointer; transition: background .1s; }

#afp-pub-calendar .afp-day-available .fc-daygrid-day-number::after {
  content: ''; display: block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--afp-avail); margin: 2px auto 0;
}
#afp-pub-calendar .afp-day-available { background: rgba(14,159,110,.07) !important; }
#afp-pub-calendar .afp-day-available:hover { background: rgba(14,159,110,.16) !important; }

#afp-pub-calendar .afp-day-partial .fc-daygrid-day-number::after {
  content: ''; display: block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--afp-partial); margin: 2px auto 0;
}
#afp-pub-calendar .afp-day-partial { background: rgba(245,158,11,.07) !important; }
#afp-pub-calendar .afp-day-partial:hover { background: rgba(245,158,11,.15) !important; }

#afp-pub-calendar .afp-day-full { background: rgba(224,36,36,.04) !important; cursor: not-allowed !important; }
#afp-pub-calendar .afp-day-full .fc-daygrid-day-number { color: #d1d5db !important; }
#afp-pub-calendar .afp-day-blocked { background: #f3f4f6 !important; cursor: not-allowed !important; }
#afp-pub-calendar .afp-day-blocked .fc-daygrid-day-number { color: #d1d5db !important; text-decoration: line-through !important; }
#afp-pub-calendar .afp-day-weekend { cursor: not-allowed !important; }
#afp-pub-calendar .afp-day-weekend .fc-daygrid-day-number { color: #e5e7eb !important; }
#afp-pub-calendar .afp-day-past { cursor: not-allowed !important; }
#afp-pub-calendar .afp-day-past .fc-daygrid-day-number { color: #d1d5db !important; }
#afp-pub-calendar .afp-day-loading .fc-daygrid-day-number::after {
  content: ''; display: block; width: 7px; height: 7px; border-radius: 50%;
  background: #d1d5db; margin: 2px auto 0; animation: afpPulse 1s infinite;
}
@keyframes afpPulse { 0%,100%{opacity:.3;} 50%{opacity:1;} }
#afp-pub-calendar .afp-day-selected {
  background: rgba(26,86,219,.13) !important;
  outline: 2px solid var(--afp-primary);
  outline-offset: -2px;
  border-radius: 2px;
}

/* ── Slots area ──────────────────────────── */
.afp-slots-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 280px; text-align: center; color: var(--afp-muted);
}
.afp-slots-placeholder-icon { font-size: 44px; margin-bottom: 14px; opacity: .4; }
.afp-slots-placeholder p { font-size: 15px; line-height: 1.6; max-width: 220px; }

/* ── Horizontal slot table ───────────────── */
.afp-slots-table { width: 100%; }

.afp-slots-thead {
  display: flex; gap: 6px; margin-bottom: 6px;
  border-bottom: 2px solid var(--afp-border); padding-bottom: 6px;
}
.afp-slots-th-time { width: 60px; flex-shrink: 0; }
.afp-slots-th {
  flex: 1; font-size: 12px; font-weight: 700; color: var(--afp-muted);
  text-transform: uppercase; letter-spacing: .5px; text-align: center;
}

.afp-slots-tr {
  display: flex; gap: 6px; align-items: flex-start; margin-bottom: 10px;
}
.afp-slots-td-time {
  width: 60px; flex-shrink: 0;
  font-size: 18px; font-weight: 800; color: var(--afp-text);
  padding-top: 8px;
}
.afp-slots-td { flex: 1; }

/* Individual slot button */
.afp-slot-btn {
  width: 100%; border: 2px solid var(--afp-border); border-radius: 12px;
  padding: 12px 10px; text-align: center; cursor: pointer;
  background: #fff; transition: all .15s;
  display: block;
}
.afp-slot-btn:hover:not(.afp-slot-disabled) {
  border-color: var(--afp-primary); background: #eff6ff;
  transform: translateY(-2px); box-shadow: 0 4px 14px rgba(26,86,219,.14);
}
.afp-slot-btn.afp-slot-selected {
  border-color: var(--afp-primary); background: var(--afp-primary); color: #fff;
  box-shadow: 0 4px 18px rgba(26,86,219,.3);
}
.afp-slot-btn.afp-slot-disabled { opacity: .42; cursor: not-allowed; background: #f9f9f9; }
.afp-slot-time-text { font-size: 17px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.afp-slot-avail { font-size: 12px; opacity: .75; }
.afp-slot-full-badge { display: inline-block; background: #fee2e2; color: #991b1b; border-radius: 4px; padding: 1px 5px; font-size: 11px; font-weight: 700; }
.afp-slot-selected .afp-slot-avail { opacity: .85; }

.afp-occ-mini { height: 3px; background: rgba(0,0,0,.1); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.afp-occ-mini-fill { height: 100%; background: rgba(224,36,36,.5); border-radius: 3px; }
.afp-slot-selected .afp-occ-mini { background: rgba(255,255,255,.3); }
.afp-slot-selected .afp-occ-mini-fill { background: rgba(255,255,255,.6); }

.afp-no-slots { text-align: center; padding: 28px 12px; color: var(--afp-muted); font-size: 15px; line-height: 1.6; }
.afp-no-slots-warn { color: var(--afp-warning); }

.afp-slot-skeleton {
  width: 100%; height: 80px; border-radius: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%; animation: afpSkeleton 1.2s infinite;
  margin-bottom: 10px;
}
@keyframes afpSkeleton { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ── Step 3 ──────────────────────────────── */
.afp-step-3 { padding: 24px 28px 28px; border-top: 2px solid var(--afp-primary); background: #fff; }
.afp-step-divider {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--afp-border);
}
.afp-step-divider h3 { font-size: 18px; font-weight: 700; margin: 0; }

.afp-selected-slot-info {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 20px;
  font-size: 15px; font-weight: 600; color: #1e40af;
  line-height: 1.8;
}

/* ── Form fields — BIGGER ────────────────── */
.afp-form-grid-public { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.afp-field-group { display: flex; flex-direction: column; gap: 7px; }
.afp-field-full  { grid-column: 1 / -1; }
.afp-field-group label {
  font-size: 13px; font-weight: 700; color: var(--afp-text);
  text-transform: uppercase; letter-spacing: .4px;
}
.afp-field-group input,
.afp-field-group textarea {
  padding: 13px 16px; border: 2px solid var(--afp-border); border-radius: 10px;
  font-size: 16px; font-family: var(--afp-font); color: var(--afp-text); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.afp-field-group input:focus,
.afp-field-group textarea:focus {
  outline: none; border-color: var(--afp-primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,.10);
}
.afp-field-group textarea { resize: vertical; min-height: 80px; font-size: 15px; }
.afp-req { color: var(--afp-danger); }

.afp-captcha-wrap { margin: 14px 0; }
.afp-form-error {
  background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b;
  border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-top: 10px;
  font-weight: 600;
}

/* ── Buttons ─────────────────────────────── */
.afp-form-submit { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--afp-border); flex-wrap: wrap; }
.afp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 15px;
  font-weight: 700; font-family: var(--afp-font);
  cursor: pointer; border: none; text-decoration: none;
  transition: all .15s; line-height: 1.3; white-space: nowrap;
}
.afp-btn-primary { background: var(--afp-primary); color: #fff; box-shadow: 0 2px 8px rgba(26,86,219,.25); }
.afp-btn-primary:hover:not(:disabled) { background: var(--afp-primary-dk); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(26,86,219,.38); color: #fff; }
.afp-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.afp-btn-outline { background: transparent; color: var(--afp-muted); border: 2px solid var(--afp-border); }
.afp-btn-outline:hover { background: #f3f4f6; color: var(--afp-text); }
.afp-btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 11px; }

.afp-privacy-note { font-size: 12px; color: var(--afp-muted); text-align: center; margin-top: 12px; line-height: 1.6; }

/* ── Success screen — FIXED SPACING ─────── */
.afp-success-screen {
  text-align: center;
  padding: 60px 32px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.afp-success-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 20px; /* ← proper gap between icon and text */
  display: block;
}
.afp-success-screen h3 {
  font-size: 24px; font-weight: 800;
  color: var(--afp-success); margin: 0 0 10px;
}
.afp-success-sub { color: var(--afp-muted); font-size: 15px; margin: 0 0 24px; }

.afp-cancel-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.afp-cancel-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.afp-cancel-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Mobile ──────────────────────────────── */
@media (max-width: 820px) {
  .afp-cal-layout { grid-template-columns: 1fr; }
  .afp-cal-col    { border-right: none; border-bottom: 2px solid var(--afp-border); padding: 16px; }
  .afp-slots-col  { padding: 16px; }
  .afp-step-3     { padding: 16px; }
  .afp-form-grid-public { grid-template-columns: 1fr 1fr; }
  .afp-booking-header { padding: 20px 16px; }
  .afp-booking-title  { font-size: 20px; }
  .afp-booking-subtitle { font-size: 13px; }
}
@media (max-width: 520px) {
  .afp-form-grid-public { grid-template-columns: 1fr; }
  .afp-form-submit { flex-direction: column-reverse; }
  .afp-btn-lg { width: 100%; justify-content: center; }
  .afp-slot-time-text { font-size: 15px; }
  .afp-field-group input, .afp-field-group textarea { font-size: 16px; } /* prevent iOS zoom */
}

/* ── Success details block ───────────────── */
.afp-success-details {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0 8px;
  text-align: left;
  max-width: 480px;
  width: 100%;
}
.afp-success-detail-row {
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 1px solid #e0f2fe;
  color: var(--afp-text);
  line-height: 1.5;
}
.afp-success-detail-row:last-child { border-bottom: none; }
.afp-success-detail-row strong { color: #0c4a6e; }

.afp-success-status {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.afp-success-status-confirmed {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.afp-success-status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

/* ── Select fields in public form ────────────────────────── */
.afp-field-group select {
  padding: 13px 16px;
  border: 2px solid var(--afp-border);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--afp-font);
  color: var(--afp-text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  box-sizing: border-box;
}
.afp-field-group select:focus {
  outline: none;
  border-color: var(--afp-primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,.10);
}
.afp-field-group select option[value=""] { color: var(--afp-muted); }

/* ── Smaller calendar cells ──────────────────────────────── */
#afp-pub-calendar .fc-daygrid-day { min-height: 52px !important; }
#afp-pub-calendar .fc-daygrid-body-natural .fc-daygrid-day-events { min-height: 0 !important; }

/* ── Radio button group ──────────────────────────────────── */
.afp-radio-group {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.afp-radio-btn {
  display: flex; align-items: center;
  cursor: pointer;
}
.afp-radio-btn input[type="radio"] { display: none; }
.afp-radio-btn span {
  padding: 10px 18px;
  border: 2px solid var(--afp-border);
  border-radius: 9px;
  font-size: 15px; font-weight: 600;
  font-family: var(--afp-font);
  background: #fff; color: var(--afp-text);
  transition: all .15s; cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.afp-radio-btn input[type="radio"]:checked + span {
  background: var(--afp-primary); color: #fff;
  border-color: var(--afp-primary);
  box-shadow: 0 2px 8px rgba(26,86,219,.25);
}
.afp-radio-btn span:hover { border-color: var(--afp-primary); background: #eff6ff; }
.afp-radio-btn input[type="radio"]:checked + span:hover { background: var(--afp-primary-dk); }

/* ── Banner Rezervă button ───────────────────────────────── */
.afp-banner-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 7px; border: none;
  background: #92400e; color: #fff;
  font-size: 14px; font-weight: 700; font-family: var(--afp-font);
  cursor: pointer; transition: all .15s; vertical-align: middle; margin-left: 4px;
}
.afp-banner-btn:hover { background: #78350f; transform: translateY(-1px); }

/* ── Cancellation confirmation screen ─────────────────────── */
.afp-cancel-screen {
  text-align: center;
  padding: 48px 24px;
  border-radius: 16px;
  margin-bottom: 32px;
}
.afp-cancel-screen-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
}
.afp-cancel-screen-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fca5a5;
}
.afp-cancel-icon { font-size: 56px; margin-bottom: 16px; line-height: 1; }
.afp-cancel-title {
  font-size: 24px; font-weight: 700; margin: 0 0 12px;
  color: #111827;
}
.afp-cancel-msg {
  font-size: 16px; color: #374151; margin: 0 0 8px;
}
.afp-cancel-sub {
  font-size: 14px; color: #6b7280; margin: 0 0 28px;
}
.afp-cancel-actions { margin-top: 24px; }
.afp-cancel-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 32px 0 24px; color: #9ca3af; font-size: 13px; font-weight: 600;
}
.afp-cancel-divider::before,
.afp-cancel-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
