/* subscribe.html — page-specific styles (tokens/navbar/footer live in pages' css/base.css) */
#sub-hero {
  background: var(--navy);
  padding: 48px 0 76px;
  position: relative;
  overflow: hidden;
}
#sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 70% at 80% 20%,
    rgba(245, 158, 11, 0.1) 0%,
    transparent 70%
  );
}
#sub-hero h1 {
  color: #fff;
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 800;
  margin-bottom: 6px;
}
#sub-hero p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}
.crumb {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  margin-bottom: 12px;
}
.crumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

/* .wrap sits directly in <body>, which is a column flexbox (base.css, for
   the sticky-footer trick). A flex item with horizontal auto-margins does
   NOT get flexbox's default "stretch" cross-axis sizing — per spec, auto
   margins on the cross axis opt the item OUT of stretch and shrink-wrap it
   to its content instead, so max-width becomes a no-op ceiling that's
   rarely reached and the box ends up far narrower than intended (worse the
   less "wide" content it happens to contain). align-self:center replaces
   the auto-margin centering so the item still stretches to max-width. */
.wrap {
  max-width: 1040px;
  align-self: center;
  width: 100%;
  margin: -44px 0 0;
  padding: 0 16px 88px;
  position: relative;
  z-index: 2;
}
.panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.summary-card {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 26px;
  position: sticky;
  top: 4.5rem;
}
.summary-code {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  padding: 3px 10px;
  direction: ltr;
}
.summary-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 12px 0 4px;
}
.summary-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12.5px;
  margin-bottom: 18px;
}
.summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
}
.summary-row iconify-icon {
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}
.summary-fee {
  color: var(--success);
  font-weight: 800;
  font-size: 1.05rem;
  margin-top: 10px;
}

.form-section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 14px;
}
.form-section-title:first-child {
  margin-top: 0;
}
.form-section-title iconify-icon {
  color: var(--accent);
  font-size: 19px;
}

label.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}
.form-control,
.form-select {
  border: 1px solid var(--card-border);
  border-radius: 9px;
  padding: 10px 13px;
  font-family: var(--font-head);
  font-size: 0.92rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.errorlist {
  list-style: none;
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 4px;
  padding: 0;
}
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.form-check-label {
  font-size: 0.87rem;
  color: var(--muted);
}

.alert-eems {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.alert-eems.warning {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.btn-send {
  width: 100%;
  background: var(--accent);
  color: var(--navy);
  font-weight: 800;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  margin-top: 24px;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-send:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.progress-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.progress-steps span {
  height: 4px;
  flex: 1;
  background: var(--card-border);
  border-radius: 3px;
}
.progress-steps span.done {
  background: var(--accent);
}

/* Login method toggle ("مساحتي"): segmented pill control switching
   between phone and email, styled like a small tab bar. */
.login-method-toggle {
  display: flex;
  gap: 4px;
  background: var(--body-bg);
  border: 1px solid var(--card-border);
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 22px;
}
.login-method-option {
  flex: 1;
  position: relative;
}
.login-method-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.login-method-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.15s;
}
.login-method-option span iconify-icon {
  font-size: 16px;
}
.login-method-option input:checked + span {
  background: var(--card-bg);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.login-method-option input:checked + span iconify-icon {
  color: var(--accent);
}
.login-method-option input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.login-field + .login-field {
  margin-top: 2px;
}
