/* ============================================================
   components.css — buttons, cards, form controls, badges, misc
   ============================================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.12s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--muted);
  color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg {
  padding: 15px 30px;
  font-size: var(--fs-md);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-grow {
  flex: 1;
}

/* ---------- Tick lists ---------- */
.tick-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tick-list .icon {
  color: var(--green);
  margin-top: 4px;
}

.tick-list-light .icon {
  color: #5ad48c;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 16px;
}

.card-plan {
  display: flex;
  flex-direction: column;
}

.card-plan p {
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-top: 16px;
}

/* ---------- Step cards (How it works) ---------- */
.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  box-shadow: var(--shadow-sm);
}

.step-card p {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0;
  line-height: 1.65;
}

.step-num {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: var(--fs-sm);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* ---------- Form fields ---------- */
.field {
  margin-bottom: 16px;
}

.field label,
.field .field-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--fs-base);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px; /* comfortable tap target (mobile-first) */
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235a6b7e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-error {
  display: none;
  margin: 6px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
}

.field.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--red);
}

.field.has-error .check-box {
  border-color: var(--red);
}

.field-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--blue-tint);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

/* ---------- Radio pills ---------- */
.radio-row {
  display: flex;
  gap: 10px;
}

.radio-pill {
  flex: 1;
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill span {
  display: block;
  text-align: center;
  padding: 11px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all 0.15s ease;
}

.radio-pill input:checked + span {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--blue-dark);
}

.radio-pill input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Consent checkboxes ---------- */
.consent-field {
  margin-bottom: 14px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400 !important;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1.5px solid var(--muted);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--white);
  transition: all 0.15s ease;
}

.check-box .icon {
  width: 13px;
  height: 13px;
  opacity: 0;
}

.check input:checked + .check-box {
  background: var(--blue);
  border-color: var(--blue);
}

.check input:checked + .check-box .icon {
  opacity: 1;
}

.check input:focus-visible + .check-box {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.check-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Progress indicator ---------- */
.progress {
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin: 0 0 22px;
  position: relative;
}

.progress::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--line);
}

.progress-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all 0.2s ease;
}

.progress-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-step.is-active .progress-dot {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.progress-step.is-active .progress-label {
  color: var(--blue-dark);
}

.progress-step.is-done .progress-dot {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

/* ---------- Testimonials ---------- */
.stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.8rem;
  margin-right: 10px;
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-weight: 700;
  color: var(--navy);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item p {
  padding-bottom: 18px;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
