
/* ── Preview box ─────────────────────────────────────────── */
.ep-preview {
  display: flex !important;
  align-items: center !important;
  gap: .875rem !important;
  background: linear-gradient(135deg, rgba(26,92,58,.06) 0%, rgba(26,92,58,.02) 100%) !important;
  border: 1.5px dashed rgba(26,92,58,.25) !important;
  border-radius: 10px !important;
  padding: 1.125rem 1.375rem !important;
  margin-bottom: 1.125rem !important;
  min-height: 58px !important;
  transition: all .3s ease !important;
  box-shadow: 0 2px 10px rgba(26,92,58,.07) !important;
}
.ep-preview.ep-preview--active {
  background: rgba(26,92,58,.06) !important;
  border-color: rgba(26,92,58,.35) !important;
  border-style: solid !important;
  box-shadow: 0 2px 10px rgba(26,92,58,.1) !important;
}
.ep-preview strong {
  color: #1a5c3a !important;
  font-family: 'Courier New', monospace !important;
}
.ep-preview em {
  color: #9ca3af !important;
  font-style: italic !important;
}

/* ── Tag-style domain chips ───────────────────────────────── */
.ep-domain-chip {
  padding: .25rem .625rem !important;
  border-radius: 4px !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  border: 1px solid #e5e7eb !important;
  cursor: pointer !important;
  transition: all .12s !important;
}
.ep-domain-chip:hover {
  background: #e5e7eb !important;
  color: #374151 !important;
}
.ep-domain-chip--active {
  background: rgba(26,92,58,.08) !important;
  color: #1a5c3a !important;
  border-color: rgba(26,92,58,.2) !important;
}

/* ── Avail badge ─────────────────────────────────────────── */
.ep-avail-badge {
  display: flex !important;
  align-items: center !important;
  gap: .5rem !important;
  background: rgba(26,92,58,.07) !important;
  color: #1a5c3a !important;
  font-weight: 600 !important;
  padding: .625rem .875rem !important;
  border-radius: 8px !important;
  font-size: .8125rem !important;
  border: 1px solid rgba(26,92,58,.15) !important;
  margin-bottom: 1.25rem !important;
}
.ep-avail-badge::before { content: '✓'; font-weight: 800; }

/* ── Status ─────────────────────────────────────────────── */
.ep-status--idle { 
  background: #f9fafb !important;
  padding: .5rem .75rem !important;
  border-radius: 6px !important;
  border: 1px solid #f3f4f6 !important;
  color: #9ca3af !important;
}

/* ── Picker row ─────────────────────────────────────────── */
.ep-picker-row {
  display: flex !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: .875rem !important;
  transition: all .2s !important;
}
.ep-picker-row:focus-within {
  border-color: #1a5c3a !important;
  box-shadow: 0 0 0 3px rgba(26,92,58,.08) !important;
}
.ep-input {
  flex: 1 !important;
  min-width: 0 !important;
  padding: .9375rem 1.125rem !important;
  border: none !important;
  outline: none !important;
  font-size: .9375rem !important;
  font-family: var(--font) !important;
  color: #111827 !important;
  background: transparent !important;
}
.ep-domain-select {
  padding: .9375rem .875rem !important;
  border: none !important;
  border-left: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  outline: none !important;
  font-size: .9375rem !important;
  font-family: var(--font) !important;
  color: #374151 !important;
  cursor: pointer !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  flex-shrink: 0 !important;
}

/* ── Continue button ─────────────────────────────────────── */
.ep-btn-continue {
  width: 100% !important;
  padding: 1rem !important;
  font-size: 1rem !important;
  border-radius: 10px !important;
  letter-spacing: -.01em !important;
}
.ep-btn-continue:not(:disabled) {
  box-shadow: 0 4px 14px rgba(26,92,58,.25) !important;
}
.ep-btn-continue:not(:disabled):hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(26,92,58,.3) !important;
}

/* ── Domains row ─────────────────────────────────────────── */
.ep-domains {
  display: flex !important;
  gap: .375rem !important;
  flex-wrap: wrap !important;
  margin-bottom: 1.375rem !important;
}


/* ── Preview box ─────────────────────────────────────────── */
.ep-preview {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: linear-gradient(135deg, rgba(26,92,58,.05) 0%, rgba(26,92,58,.02) 100%);
  border: 1.5px dashed rgba(26,92,58,.25);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: all .25s ease;
  min-height: 54px;
  box-shadow: 0 2px 8px rgba(26,92,58,.06);
}
.ep-preview.ep-preview--active {
  background: rgba(26,92,58,.06);
  border-color: rgba(26,92,58,.3);
  border-style: solid;
}
.ep-preview strong {
  color: #1a5c3a;
  font-family: 'Courier New', monospace;
}

/* ── Tag-style domain chips ───────────────────────────────── */
.ep-domains--tags {
  display: flex;
  gap: .375rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.ep-domain-tag {
  padding: .2rem .5rem;
  border-radius: 4px;
  font-size: .6875rem;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all .12s;
  font-family: var(--font);
}
.ep-domain-tag:hover {
  background: #e5e7eb;
  color: #374151;
}
.ep-domain-tag.ep-domain-chip--active {
  background: rgba(26,92,58,.08);
  color: #1a5c3a;
  border-color: rgba(26,92,58,.2);
}

/* ── Card footer legal strip ─────────────────────────────── */
.funnel-card {
  overflow: hidden;
}

/* ============================================================
   creare-pec.it — Funnel Styles
   ============================================================ */

/* --- Funnel Layout --- */
.funnel-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.funnel-main {
  flex: 1;
  padding: 2.5rem 1.5rem 4rem;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.funnel-main--wide {
  max-width: 1100px;
}

/* --- Funnel Progress Steps --- */
.funnel-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 2.5rem;
  max-width: 400px;
  padding: 1.5rem 0 0;
}

.funnel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  position: relative;
  flex: 1;
}

.funnel-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  border: 2px solid var(--gray-l);
  background: var(--white);
  color: var(--gray-m);
  transition: all .3s ease;
  position: relative;
  z-index: 1;
}

.funnel-step.completed .funnel-step-circle {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.funnel-step.active .funnel-step-circle {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(26,92,58,.2);
}

.funnel-step-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--gray-m);
  text-align: center;
  white-space: nowrap;
}
.funnel-step.active .funnel-step-label { color: var(--green); }
.funnel-step.completed .funnel-step-label { color: var(--green); }

.funnel-step-connector {
  flex: 1;
  height: 2px;
  background: var(--gray-l);
  margin-top: -28px;
  position: relative;
  z-index: 0;
  max-width: 80px;
  transition: background .3s ease;
}
.funnel-step-connector.done {
  background: var(--green);
}

/* Check icon for completed steps */
.funnel-step.completed .funnel-step-circle::after {
  content: '✓';
  font-size: .875rem;
}

/* --- Funnel Card --- */
.funnel-card {
  background: var(--white);
  border: 1px solid var(--gray-l);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.funnel-card-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--gray-l);
}

.funnel-card-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .35rem;
}

.funnel-card-header p {
  font-size: .9375rem;
  color: var(--gray-m);
}

.funnel-card-body {
  padding: 2rem;
}

/* --- Reassurance Banner --- */
.reassurance-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  background: rgba(26,92,58,.06);
  border: 1px solid rgba(26,92,58,.2);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 1.5rem;
}
.reassurance-item {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* --- Price Pill --- */
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fdf6e8;
  border: 1.5px solid #f0c06a;
  border-radius: 100px;
  padding: .45rem 1.25rem;
  font-size: .875rem;
  margin-bottom: 1.5rem;
}
.price-pill-main {
  background: transparent;
  color: #633806;
  border-radius: 0;
  padding: 0;
  font-weight: 700;
  font-size: .9375rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.price-pill-main svg { flex-shrink: 0; opacity: .75; }
.price-pill-period {
  font-size: .875rem;
  font-weight: 400;
  opacity: 1;
  color: #633806;
}
.price-pill-sep { display: none; }
.price-pill-then { display: none; }
.price-pill-cancel {
  font-size: .875rem;
  color: #92660a;
  opacity: .8;
  font-weight: 400;
  white-space: nowrap;
}

/* ============================================================
   Email Picker Component — All States
   ============================================================ */

.email-picker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Preview line */







/* Input row */















/* ── Email Picker — Mockup style ─────────────────────────── */

/* Unified picker row */
.ep-picker-row {
  display: flex;
  gap: 0;
  border: 2px solid var(--gray-l);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: .75rem;
  transition: border-color .2s;
}
.ep-picker-row:focus-within {
  border-color: var(--green);
}
.ep-picker-row.ep-picker-row--taken {
  border-color: #dc2626;
}

.ep-input {
  flex: 1;
  padding: .875rem 1rem;
  border: none;
  outline: none;
  font-size: .9375rem;
  font-family: var(--font);
  color: var(--gray-d);
  background: transparent;
  min-width: 0;
}

/* Domain select */
.ep-domain-select {
  padding: .875rem .75rem;
  border: none;
  border-left: 2px solid var(--gray-l);
  outline: none;
  font-size: .9375rem;
  font-family: var(--font);
  color: var(--gray-d);
  background: var(--bg);
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s;
  appearance: auto;
  -webkit-appearance: auto;
  flex-shrink: 0;
}

/* Domain chips */
.ep-domains {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ep-domain-chip {
  padding: .25rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(26,92,58,.08);
  color: var(--green);
  border: 1px solid rgba(26,92,58,.2);
  cursor: pointer;
  transition: all .15s;
}
.ep-domain-chip:hover,
.ep-domain-chip--active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* Avail badge */
.ep-avail-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(26,92,58,.08);
  color: var(--green);
  padding: .6rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.ep-avail-badge::before {
  content: '✓';
  font-weight: 800;
}


/* Status bar */
.ep-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  min-height: 28px;
  transition: all .2s;
}

.ep-status--idle     { color: var(--green); font-weight: 500; }
.ep-status--typing   { color: var(--gray-m); }
.ep-status--checking { color: var(--orange); }
.ep-status--available { color: var(--green); font-weight: 600; }
.ep-status--taken    { color: #dc2626; font-weight: 600; }

.ep-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ep-status--idle .ep-status-dot { background: rgba(26,92,58,.25); }
.ep-status--typing .ep-status-dot { background: var(--gray-l); }
.ep-status--checking .ep-status-dot {
  background: var(--orange);
  animation: ep-pulse 1s infinite;
}
.ep-status--available .ep-status-dot { background: var(--green); }
.ep-status--taken .ep-status-dot    { background: #dc2626; }

@keyframes ep-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* Spinner for checking state */
.ep-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(245,158,11,.3);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Suggestion chips */
.ep-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}
.ep-suggestions-label {
  font-size: .8125rem;
  color: var(--gray-m);
  margin-bottom: .25rem;
  width: 100%;
}
.ep-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .85rem;
  border: 1.5px solid var(--gray-l);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--gray-d);
  background: var(--white);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  font-family: var(--font);
}
.ep-chip:hover {
  border-color: var(--green);
  background: rgba(26,92,58,.06);
  color: var(--green);
}
.ep-chip.ep-chip--selected {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

/* Continue button */
.ep-btn-continue {
  width: 100%;
  padding: 1rem;
  background: var(--green);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  font-family: var(--font);
}
.ep-btn-continue:hover:not(:disabled) {
  background: #155230;
  box-shadow: 0 4px 12px rgba(26,92,58,.3);
  transform: translateY(-1px);
}
.ep-btn-continue:disabled {
  background: var(--gray-l);
  color: var(--gray-m);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   Step 2 — Form Styles
   ============================================================ */

.form-info-box {
  background: rgba(12,27,51,.05);
  border: 1px solid rgba(12,27,51,.15);
  border-radius: var(--radius);
  padding: .9rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.form-info-box-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.form-info-pec {
  font-family: 'Courier New', monospace;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy);
}
.form-info-label {
  font-size: .8125rem;
  color: var(--gray-m);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid--full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-d);
}
.form-label .required {
  color: #dc2626;
  margin-left: .2rem;
}

.form-input {
  padding: .75rem 1rem;
  border: 2px solid var(--gray-l);
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: var(--font);
  color: var(--gray-d);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
}
.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,92,58,.1);
}
.form-input.error {
  border-color: #dc2626;
  background: #fef2f2;
}
.form-input.success {
  border-color: var(--green);
  background: #f0fdf4;
}

.form-error {
  font-size: .8125rem;
  color: #dc2626;
  font-weight: 500;
  display: none;
}
.form-error.visible { display: block; }

.form-hint {
  font-size: .8125rem;
  color: var(--gray-m);
}

/* Checkbox */
.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-l);
  transition: border-color .2s;
}
.form-checkbox-wrap:hover { border-color: var(--green); }
.form-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.form-checkbox-label {
  font-size: .875rem;
  color: var(--gray-d);
  line-height: 1.5;
}
.form-checkbox-label a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  background: #dc2626;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  font-family: var(--font);
  margin-top: .5rem;
}
.form-submit-btn:hover {
  background: #b91c1c;
  box-shadow: 0 4px 12px rgba(220,38,38,.3);
}
.form-submit-btn:disabled {
  background: var(--gray-l);
  color: var(--gray-m);
  cursor: not-allowed;
}

/* ============================================================
   Step 3 — Payment Layout
   ============================================================ */

.payment-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: start;
}

/* Order Summary Card (left) */
.order-summary {
  background: var(--white);
  border: 1px solid var(--gray-l);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.order-summary h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-l);
}
.order-pec-address {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(26,92,58,.06);
  border: 1px solid rgba(26,92,58,.2);
  padding: .65rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  word-break: break-all;
}
.order-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.5rem;
}
.order-features li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .9375rem;
  color: var(--gray-d);
}
.order-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.order-price-block {
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.order-price-main {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--navy);
}
.order-price-main span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-m);
}
.order-price-sub {
  font-size: .875rem;
  color: var(--gray-m);
  margin-top: .25rem;
}
.order-cancel-note {
  font-size: .8125rem;
  color: var(--gray-m);
  font-style: italic;
}
.order-secure {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--gray-m);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-l);
}

/* Payment Form Card (right) */
.payment-form-card {
  background: var(--white);
  border: 1px solid var(--gray-l);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.payment-form-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

/* Stripe card element */
#card-element {
  padding: .85rem 1rem;
  border: 2px solid var(--gray-l);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 1rem;
}
#card-element.StripeElement--focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,92,58,.1);
}
#card-element.StripeElement--invalid {
  border-color: #dc2626;
}

#card-errors {
  font-size: .875rem;
  color: #dc2626;
  font-weight: 500;
  min-height: 20px;
  margin-bottom: .75rem;
}

.payment-btn {
  width: 100%;
  padding: 1rem;
  background: var(--green);
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.payment-btn:hover:not(:disabled) {
  background: #155230;
  box-shadow: 0 4px 12px rgba(26,92,58,.3);
}
.payment-btn:disabled {
  background: var(--gray-l);
  color: var(--gray-m);
  cursor: not-allowed;
}
.payment-btn .btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.payment-security-note {
  text-align: center;
  font-size: .75rem;
  color: var(--gray-m);
  margin-top: .75rem;
}

/* Card logos */
.card-logos {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.card-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem .6rem;
  border: 1px solid var(--gray-l);
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-d);
  background: var(--white);
  height: 26px;
}

/* ============================================================
   Grazie / Maintenance Page
   ============================================================ */
.grazie-page {
  min-height: 100vh;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.grazie-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.grazie-content {
  max-width: 560px;
  text-align: center;
}

.grazie-gear {
  font-size: 5rem;
  display: block;
  animation: gear-rotate 3s linear infinite;
  margin-bottom: 1.5rem;
  line-height: 1;
}

@keyframes gear-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.grazie-content h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.grazie-address-box {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: .65rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #86efac;
  margin: 1rem 0;
  word-break: break-all;
}

.grazie-content p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.grazie-content .btn-primary {
  margin-top: 1.5rem;
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  font-size: 1rem;
  padding: .85rem 2rem;
}
.grazie-content .btn-primary:hover {
  background: var(--bg);
  border-color: var(--bg);
}

.grazie-legal {
  font-size: .8125rem;
  color: rgba(255,255,255,.45);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  line-height: 1.6;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .funnel-main { padding: 1.5rem 1rem 3rem; }
  .funnel-card-header { padding: 1.25rem 1.25rem 1rem; }
  .funnel-card-body { padding: 1.25rem; }

  .form-grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: 1; }

  .payment-layout {
    grid-template-columns: 1fr;
  }
  .payment-form-card {
    position: static;
    order: -1;
  }

  
  

  /* Input — larger touch target, smaller font */
  

  /* Select — compact, shows only domain */
  

  /* Preview — smaller, readable */
  
  

  /* Status — smaller */
  .ep-status {
    font-size: .75rem;
    min-height: 24px;
  }

  /* Continue button — full height touch */
  .ep-btn-continue {
    padding: .9rem;
    font-size: .9375rem;
    border-radius: 10px;
  }

  /* Trust bar 2x2 grid on mobile */
  .reassurance-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .375rem;
    border-radius: var(--radius);
    padding: .625rem;
    background: transparent;
    border: none;
  }
  .reassurance-item {
    background: var(--white);
    border-radius: 8px;
    padding: .4rem .625rem;
    font-size: .75rem;
    border: 1px solid rgba(26,92,58,.15);
    justify-content: flex-start;
  }

  /* Steps — hide labels on mobile */
  .funnel-step-label { display: none; }

  /* Pill — price first, annulla, monthly truncated */
  .price-pill {
    padding: .35rem .875rem .35rem .625rem;
    gap: .4rem;
    max-width: 100%;
    overflow: hidden;
  }
  .price-pill-cancel {
    white-space: nowrap;
    flex-shrink: 0;
    opacity: .9;
    font-size: .75rem;
  }
  .price-pill-then {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .7rem;
    opacity: .5;
    min-width: 0;
  }
  .price-pill-sep { display: inline; font-size: .7rem; color: #92660a; opacity: .5; }

  /* Card padding reduced */
  .funnel-card { padding: 1.25rem; border-radius: 12px; }
  .funnel-card-header { margin-bottom: .875rem; }
  .funnel-card-header h1 { font-size: 1.25rem; }

  .reassurance-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    border-radius: var(--radius);
    padding: .75rem;
  }
  .reassurance-item {
    background: var(--white);
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .8125rem;
    border: 1px solid rgba(26,92,58,.15);
  }

  .funnel-step-label { display: none; }
}

@media (max-width: 480px) {
  .funnel-progress { padding: 1rem 0 0; }
  .funnel-step-circle { width: 30px; height: 30px; font-size: .75rem; }

  /* Pill prix — version courte sur mobile */
  .price-pill {
    padding: .4rem .875rem .4rem .4rem;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow: hidden;
  }
  .price-pill-main {
    font-size: .875rem;
    padding: .25rem .625rem;
    flex-shrink: 0;
  }
  .price-pill-cancel {
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hide-mobile { display: none; }
}

/* ── Grazie refund box ────────────────────────────────── */
.grazie-refund-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 24px auto;
  max-width: 480px;
  text-align: left;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
}
.grazie-refund-box strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}
.grazie-refund-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
