/* ============================================
   css/customer_app_setup.css
   Οδηγός εφαρμογής πελατών: Γνωριμία, σελίδα βημάτων, προεπισκόπηση, παράθυρο ερώτησης.
   Φόντο σελίδας: δεν ορίζεται εδώ — κληρονομείται (--cfx-page-bg) και φαίνεται γύρω από τις λευκές κάρτες.
   ============================================ */

.ca-page, .ca-dialog {
  font-size: 17px;
  line-height: 1.5;
  color: #1A1A1A;
}
.ca-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px;
  box-sizing: border-box;
}
.ca-wrap * { box-sizing: border-box; }

/* Κείμενα */
.ca-title { font-size: 26px; line-height: 1.25; margin: 8px 0 6px; font-weight: 700; }
.ca-lead { font-size: 18px; margin: 0 0 12px; color: #334155; }
.ca-h2 { font-size: 21px; line-height: 1.3; margin: 24px 0 10px; font-weight: 700; }
.ca-h3 { font-size: 18px; line-height: 1.3; margin: 0; font-weight: 700; }
.ca-text { font-size: 17px; margin: 6px 0; overflow-wrap: anywhere; }
.ca-strong { font-weight: 600; }
.ca-hint { font-size: 17px; color: #475569; margin: 6px 0; overflow-wrap: anywhere; }
.ca-link { font-size: 17px; font-weight: 600; color: #1A1A1A; text-decoration: underline; padding: 14px 0; display: inline-block; }

/* Κάρτες */
.ca-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 12px;
}

/* Πλαίσια μηνυμάτων: λίγο χρώμα, με σημασία */
.ca-note { font-size: 17px; border-radius: 10px; padding: 12px 14px; margin: 12px 0; border: 1px solid; overflow-wrap: anywhere; }
.ca-note-warm { background: #FFF7ED; border-color: #FDBA74; color: #7C2D12; }
.ca-note-good { background: #F0FDF4; border-color: #86EFAC; color: #14532D; }
.ca-note-bad { background: #FEF2F2; border-color: #FCA5A5; color: #7F1D1D; }

/* Κουμπιά: ύψος ≥ 52px */
.ca-btn {
  min-height: 52px;
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.25;
  border-radius: 10px;
  border: 2px solid #000000;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.ca-btn-dark { background: #000000; color: #FFFFFF; }
.ca-btn-light { background: #FFFFFF; color: #000000; }
.ca-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.ca-btn:focus-visible, .ca-dialog-x:focus-visible, .ca-link:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
.ca-btn-link {
  background: transparent; border: 0; color: #1A1A1A; text-decoration: underline;
  min-height: 52px; padding: 8px 0; font-size: 17px; font-weight: 600; font-family: inherit; text-align: left; cursor: pointer;
}
.ca-back { min-height: 52px; margin-bottom: 4px; }

/* Πρόοδος */
.ca-progress-label { font-size: 17px; font-weight: 600; margin: 12px 0 6px; }
.ca-progress { height: 12px; background: #E2E8F0; border-radius: 6px; overflow: hidden; }
.ca-progress-fill { height: 100%; background: #15803D; border-radius: 6px; }

/* Γνωριμία */
.ca-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ca-grid .ca-card { margin: 0; }
.ca-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 12px 0; }
.ca-col { background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px; }
.ca-list { margin: 8px 0 0; padding-left: 22px; }
.ca-list li { margin: 6px 0; overflow-wrap: anywhere; }
.ca-how { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ca-how-item { display: flex; align-items: flex-start; gap: 12px; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px; padding: 14px; }
.ca-how-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ca-num {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #000000; background: #FFFFFF; color: #000000;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px;
}
.ca-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 24px 0 32px; }

/* Σελίδα βημάτων */
.ca-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ca-side { min-width: 0; }
.ca-preview-holder { margin-top: 12px; }
.ca-preview-open { width: 100%; }
.ca-status-box .ca-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ca-pill { display: inline-block; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 17px; border: 1px solid; }
.ca-pill-draft { background: #FFF7ED; color: #9A3412; border-color: #FDBA74; }
.ca-pill-live { background: #F0FDF4; color: #166534; border-color: #86EFAC; }
.ca-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ca-addr-text { flex: 1 1 220px; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ca-changes { border: 2px solid #9A3412; background: #FFF7ED; }
.ca-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ca-step {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px;
  background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px;
}
.ca-step-first { border: 2px solid #000000; }
.ca-step-body { flex: 1 1 260px; min-width: 0; }
.ca-step-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ca-tag { font-size: 15px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #F1F5F9; color: #334155; }
.ca-tag-must { background: #EFF6FF; color: #1E3A8A; }
.ca-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.ca-status { font-size: 17px; font-weight: 600; color: #475569; flex: 0 0 auto; }
.ca-status-done { color: #166534; }

/* Προεπισκόπηση κινητού */
.ca-phone {
  width: 100%; max-width: 280px; margin: 0 auto;
  background: #FFFFFF; border: 6px solid #1A1A1A; border-radius: 28px; overflow: hidden; padding-bottom: 12px;
}
.ca-phone-bar { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid #E2E8F0; min-width: 0; }
/* Λογότυπο: ολόκληρο, χωρίς κόψιμο και χωρίς παραμόρφωση — σταθερό ύψος, πλάτος όσο χωρά */
.ca-phone-logo { height: 36px; width: auto; max-width: 120px; object-fit: contain; flex: 0 0 auto; }
.ca-phone-initials { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex: 0 0 auto; }
.ca-phone-name { font-weight: 700; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.ca-phone-hero { padding: 20px 14px; margin: 12px; border-radius: 12px; }
.ca-phone-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 14px; }
.ca-phone-cta { display: inline-block; background: #FFFFFF; color: #1A1A1A; font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 8px; }
.ca-phone-block { height: 56px; background: #E5E7EB; border-radius: 10px; margin: 8px 12px 0; }
.ca-preview .ca-h2 { margin-top: 0; text-align: center; }

/* Παράθυρο ερώτησης */
.ca-overlay {
  position: fixed; inset: 0; z-index: 10001; background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
}
.ca-dialog {
  position: relative; background: #FFFFFF; border-radius: 14px; padding: 24px 20px 20px;
  width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto;
}
.ca-dialog-x {
  position: absolute; top: 4px; right: 4px; width: 52px; height: 52px; border: 0; background: transparent;
  font-size: 30px; line-height: 1; cursor: pointer; color: #1A1A1A;
}
.ca-dialog-title { font-size: 21px; margin: 0 40px 10px 0; }
.ca-dialog-text { margin: 8px 40px 16px 0; font-size: 18px; }
.ca-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ca-dialog-actions .ca-btn { flex: 1 1 140px; }

/* Υπολογιστής: προεπισκόπηση δεξιά, κουμπί προεπισκόπησης κρύβεται */
@media (min-width: 900px) {
  .ca-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .ca-side { position: sticky; top: 16px; }
  .ca-preview-open { display: none; }
}
/* Κινητό: η προεπισκόπηση ανοίγει μόνο από το κουμπί */
@media (max-width: 899px) {
  .ca-side .ca-preview-holder { display: none; }
  }

/* Κουκκίδα «δεν έχει δημοσιευτεί» στις Ρυθμίσεις (χωρίς κείμενο) */
.ca-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #C62828; }
