/* ============================================================
   GigaBizZone — Component System (PRD §7)
   Buttons, cards, forms, eyebrows, numeric display, badges.
   ============================================================ */

/* --- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px */
  font-weight: 500;
  line-height: 1;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}

/* Primary — coral */
.btn--primary {
  background: var(--coral);
  color: var(--cream);
  height: 56px;
  padding-inline: 24px;
}
.btn--primary:hover { background: var(--coral-deep); transform: translateY(-1px); }

/* Secondary — ghost teal */
.btn--secondary {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--teal-deep);
  height: 56px;
  padding-inline: 24px;
}
.btn--secondary:hover { background: var(--teal-deep); color: var(--cream); }

/* On dark (teal) backgrounds — cream button */
.btn--light {
  background: var(--cream);
  color: var(--teal-deep);
  height: 56px;
  padding-inline: 24px;
}
.btn--light:hover { background: var(--coral); color: var(--cream); transform: translateY(-1px); }

.btn--block { width: 100%; }
.btn--sm { height: 48px; font-size: 1rem; }

/* --- Tertiary inline arrow link ----------------------------- */
.link-arrow {
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease);
}
.link-arrow::after {
  content: ' \2192';
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease);
}
.link-arrow:hover { color: var(--coral); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --- Cards (PRD §7.2) --------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  transition: transform var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 96, 109, 0.08);
}

/* --- Section eyebrow (PRD §7.5) ----------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;            /* 12px */
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 24px;
}
.eyebrow--on-dark { color: var(--coral); }

/* --- Numeric display (PRD §7.5) ----------------------------- */
.numeral {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  color: var(--coral);
  letter-spacing: -0.02em;
}

/* --- Forms (PRD §7.3) --------------------------------------- */
.field { margin-bottom: var(--space-4); }
.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}
.input, .select, textarea.input {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease);
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--teal-deep);
}
.input::placeholder { color: var(--ink-light); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300606D' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--coral-deep);
}
.field.has-error .input,
.field.has-error .select { border-color: var(--coral-deep); }
.field.has-error .field-error { display: block; }

/* --- Custom checkbox (configurator, PRD §7.3) --------------- */
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: var(--cream);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.check svg { width: 12px; height: 12px; opacity: 0; }
input:checked + .check,
.is-checked .check {
  background: var(--coral);
  border-color: var(--coral);
}
input:checked + .check svg,
.is-checked .check svg { opacity: 1; }

/* --- Badge card (compliance, PRD §4.9) ---------------------- */
.badge {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
}
.badge__label {
  display: block;
  font-size: 0.6875rem;          /* 11px */
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--space-2);
}
.badge__line {
  font-size: 0.8125rem;          /* 13px */
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* --- WhatsApp click-to-chat floating button (PRD §8.5) ------ */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;            /* WhatsApp brand green */
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.32),
              0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 220ms cubic-bezier(.22,.61,.36,1),
              box-shadow 220ms cubic-bezier(.22,.61,.36,1);
  text-decoration: none;
}
.wa-fab svg {
  width: 30px;
  height: 30px;
  fill: #FFFFFF;
  display: block;
}
.wa-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.48),
              0 4px 6px rgba(0, 0, 0, 0.2);
}
.wa-fab:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .wa-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .wa-fab svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: none; }
  .wa-fab:hover { transform: none; }
}

/* --- Inline error banner (shown when send.php fails) -------- */
.form-error-banner {
  background: #FDECE6;
  border-left: 3px solid var(--coral-deep);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  margin-bottom: var(--space-4);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* --- Caption text ------------------------------------------- */
.caption {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
