/* The consultation form (components/consultForm/ConsultForm.latte). */

/* Progress of the whole order, step 1 of 4 - the look of the progress of the question form
   (counsel.css) and of the picker on klient.ficek.sk (ConsultOrder/@progress.latte). */
.consult-progress {
  margin: 0 0 22px;
}

.consult-progress__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: #6c757d;
}

.consult-progress__top strong {
  color: #112b5d;
}

.consult-progress__percent {
  font-weight: 700;
  color: #18448c;
  font-variant-numeric: tabular-nums;
}

.consult-progress__track {
  height: 8px;
  border-radius: 8px;
  background: #e9eef6;
  overflow: hidden;
}

.consult-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #18448c, #18ae41);
  transition: width .4s ease;
}

/* The slot preselected by a link of the free terms list of the client portal, and the way to it */
.consult-slot {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #cfe9d6;
  border-radius: 12px;
  background: #eef8f1;
  color: #112b5d;
  font-size: 15px;
}

.consult-slot .bi {
  font-size: 22px;
  line-height: 1;
  color: #18ae41;
}

.consult-slot__text {
  margin-top: 2px;
  font-size: 13.5px;
  color: #4b5a70;
}

.consult-free-terms {
  margin: -8px 0 20px;
  font-size: 14px;
  color: #6c757d;
  /* the page text is justified - on a phone that stretched the gaps of the wrapped line */
  text-align: left;
}

.consult-free-terms a {
  font-weight: 600;
  /* the link wraps as a whole, never word by word */
  white-space: nowrap;
}

/* The check of the e-mail before the form is sent (consultEmailConfirm.js) - the look of step 6
   of the pricing wizard of kontrola-zmluvy.sk (kontrolaCeny.css) in a dialog, a bottom sheet on
   a phone. Every class carries the cec- prefix so nothing collides with Bootstrap of the websites. */

.cec {
  --cec-navy: #16356d;
  --cec-link: #1a5dab;
  --cec-green: #28a745;
  --cec-green-dark: #1f8c38;
  --cec-red-dark: #c0392b;
  --cec-text: #333a45;
  --cec-muted: #6b7686;
  --cec-border: #dfe5ec;
  --cec-bg-soft: #f5f7fa;
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cec[hidden] { display: none; }
.cec *, .cec *::before, .cec *::after { box-sizing: border-box; }
.cec button, .cec input { font-family: inherit; }

.cec-scrim { position: absolute; inset: 0; background: rgba(16, 42, 87, .55); }
.cec-dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(16, 42, 87, .25);
  padding: 28px 28px 24px; text-align: center; color: var(--cec-text); font-size: 15px; line-height: 1.65;
}
.cec-close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: none; background: none;
  border-radius: 8px; font-size: 28px; line-height: 1; color: var(--cec-muted); cursor: pointer;
  touch-action: manipulation;
}
.cec-close:hover { background: var(--cec-bg-soft); color: var(--cec-navy); }
.cec-title { margin: 0 0 6px; padding: 0 32px; color: #182b49; font-size: 22px; font-weight: 800; line-height: 1.3; }
.cec-sub { margin: 0 0 18px; color: var(--cec-muted); font-size: 14px; }

.cec-icon { width: 52px; height: 52px; margin-bottom: 12px; }
.cec-lead { font-size: 16.5px; font-weight: 800; color: #182b49; margin: 0 0 16px; }
.cec-email {
  display: inline-block; background: var(--cec-bg-soft); border: 1.5px solid var(--cec-border);
  border-radius: 10px; padding: 15px 26px; font-size: 22px; font-weight: 800;
  color: var(--cec-navy); word-break: break-all; max-width: 100%; line-height: 1.3;
}
.cec-hint { font-size: 13px; color: var(--cec-muted); max-width: 470px; margin: 16px auto 22px; line-height: 1.6; }
.cec-hint em { font-style: normal; font-weight: 700; color: var(--cec-red-dark); background: #faedec; padding: 1px 6px; border-radius: 4px; }
.cec-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.cec-btn {
  background: var(--cec-green); color: #fff; border: none; border-radius: 8px;
  font-weight: 700; font-size: 15.5px; padding: 13px 28px; cursor: pointer;
  transition: background .15s; touch-action: manipulation;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.cec-btn:hover { background: var(--cec-green-dark); }
.cec-btn svg { width: 19px; height: 19px; }
.cec-link {
  background: none; border: none; color: var(--cec-link); font-weight: 600; font-size: 13.5px;
  cursor: pointer; padding: 8px; min-height: 36px; touch-action: manipulation;
}
.cec-link:hover { text-decoration: underline; }

.cec-label { display: block; font-weight: 700; color: #182b49; margin-bottom: 10px; }
.cec-edit { display: flex; gap: 10px; max-width: 480px; margin: 4px auto 0; }
.cec-input {
  flex: 1; min-width: 0; text-align: center; font-size: 16px; font-weight: 700; color: var(--cec-navy);
  border: 1.5px solid var(--cec-border); border-radius: 8px; padding: 11px 14px;
}
.cec-input:focus { outline: none; border-color: var(--cec-link); box-shadow: 0 0 0 3px rgba(26, 93, 171, .15); }
.cec-error { color: var(--cec-red-dark); font-size: 13px; min-height: 1em; margin: 8px 0 4px; }

.cec-open, .cec-open body { overflow: hidden; }

@media (max-width: 560px) {
  .cec { align-items: flex-end; padding: 0; }
  .cec-dialog { max-width: none; max-height: 92vh; border-radius: 14px 14px 0 0; padding: 24px 16px 20px; }
  .cec-title { font-size: 20px; }
  .cec-email { font-size: 19px; padding: 13px 18px; }
  .cec-edit { flex-direction: column; }
}
