/**
 * FLD-Daycare - Frontend Fast Check-in Styles
 *
 * Stili per lo shortcode [fld_daycare_checkin]
 * Tutte le classi usano il prefisso .fld-fc-*
 *
 * @since 2.0.0
 */

/* ============================================================
   WIDGET CONTAINER
   ============================================================ */
.fld-fc-widget {
  /* max-width: 520px; */
  margin: 0 auto;
  font-family: inherit;
}

.fld-fc-section {
  padding: 8px 0;
}

/* ============================================================
   INTESTAZIONE
   ============================================================ */
.fld-fc-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #1a1a1a;
}

.fld-fc-subtitle {
  color: #666;
  margin: 0 0 20px 0;
  font-size: 0.95em;
}

/* ============================================================
   SEZIONE 1 - INPUT EMAIL
   ============================================================ */
.fld-fc-email-row {
  display: flex;
  gap: 10px;
  /* align-items: center; */
  align-items: stretch;
  flex-wrap: wrap;
}

.fld-fc-email-input {
  flex: 1 1 200px;
  padding: 10px 14px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.fld-fc-email-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

/* ============================================================
   PULSANTI
   ============================================================ */
.fld-fc-btn {
  padding: 10px 22px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    opacity 0.2s;
  white-space: nowrap;
}

.fld-fc-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fld-fc-btn-primary {
  background-color: #2271b1;
  color: #fff;
}

.fld-fc-btn-primary:hover:not(:disabled) {
  background-color: #135e96;
}

.fld-fc-btn-secondary {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

.fld-fc-btn-secondary:hover:not(:disabled) {
  background-color: #e0e0e0;
}

/* ============================================================
   SEZIONE 2 - FAST CHECK-IN FORM
   ============================================================ */
.fld-fc-greeting {
  font-size: 1.1em;
  margin: 0 0 20px 0;
  padding: 14px 16px !important;
  background: #f0f6fc;
  border-left: 4px solid #2271b1;
  border-radius: 4px;
  line-height: 1.5;
}

.fld-fc-field {
  margin-bottom: 16px;
}

.fld-fc-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a1a;
  font-size: 0.95em;
}

.fld-fc-input {
  width: 100%;
  padding: 9px 12px !important;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.fld-fc-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.fld-fc-input-narrow {
  width: 120px;
}

/* ============================================================
   SERVIZI EXTRA
   ============================================================ */
.fld-fc-extras-section {
  margin: 20px 0;
  padding: 16px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}

.fld-fc-extras-title {
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1a1a1a;
  font-size: 0.95em;
}

.fld-fc-extra-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.fld-fc-extra-item:last-of-type {
  margin-bottom: 0;
}

.fld-fc-extra-label {
  font-size: 0.95em;
  color: #333;
  flex: 1;
}

.fld-fc-extra-label small {
  color: #666;
}

.fld-fc-qty {
  width: 64px;
  padding: 6px 8px;
  font-size: 0.95em;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  outline: none;
}

.fld-fc-qty:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.fld-fc-extras-total {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 0.95em;
  color: #1a1a1a;
}

/* ============================================================
   INFO PAGAMENTO
   ============================================================ */
.fld-fc-payment-info {
  font-size: 1.1em;
  font-weight: bold;
  color: #666;
  margin: 16px 0;
  padding: 10px 14px !important;
  background: #fffbeb;
  border-left: 3px solid #f0b429;
  border-radius: 4px;
}

/* ============================================================
   RIGA SUBMIT
   ============================================================ */
.fld-fc-submit-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ============================================================
   ALERT / MESSAGGI
   ============================================================ */
.fld-fc-alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin: 12px 0;
  font-size: 0.95em;
  line-height: 1.5;
}

.fld-fc-alert-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.fld-fc-alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.fld-fc-alert-info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* ============================================================
   SEZIONE 3 - REGISTRAZIONE (WPForms)
   ============================================================ */
.fld-fc-back-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.fld-fc-back-btn {
  display: inline-block;
}

.fld-fc-back-hint {
  font-size: 0.95em;
  color: #666;
  font-style: italic;
  white-space: nowrap;
}

/* ============================================================
   FLATPICKR OVERRIDES (Date & Time Pickers)
   ============================================================ */
.fld-fc-input[readonly] {
  cursor: pointer;
}

/* Selected day color (match WPForms blue #569ff7) */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #569ff7;
  border-color: #569ff7;
  color: #fff;
}

/* Today highlight (WPForms gray-blue #959ea9) */
.flatpickr-day.today {
  border-color: #959ea9;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
  background: #959ea9;
  border-color: #959ea9;
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .fld-fc-email-row {
    flex-direction: column;
    align-items: stretch;
  }

  .fld-fc-btn {
    width: 100%;
    text-align: center;
  }

  .fld-fc-submit-row {
    flex-direction: column;
  }

  .fld-fc-submit-row .fld-fc-btn {
    width: 100%;
  }
}

/* ============================================================
   POPUP CONFERMA PRENOTAZIONE
   ============================================================ */
.fld-fc-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.fld-fc-success-popup {
  position: relative;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 40px 36px 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.fld-fc-success-message {
  font-size: 1.25em;
  line-height: 1.6;
  color: #1a1a1a;
}

.fld-fc-success-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0;
}

.fld-fc-success-close:hover {
  color: #000;
}
