/* Shared styles for every public / sign-in page (loaded after landing.css).
   Besides the new components it styles the form classes the existing pages already use
   (form-control, input-group, btn-yellow, radios, alerts...) so those pages keep working. */

body.site { background: var(--soft); }
.site-main { min-height: calc(100vh - 380px); padding: 48px 0 72px; }
.btn--outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-soft); }

/* ---------- Cards for sign-in / forms ---------- */
.auth-card { max-width: 460px; margin: 0 auto; padding: 36px 32px; background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.auth-card--wide { max-width: 680px; }
.auth-card h1, .auth-card h2 { margin: 0 0 8px; text-align: center; font-size: 28px; line-height: 1.3; font-weight: 800; color: var(--primary-dark); }
.auth-card > p, .auth-card .sub { margin: 0 0 24px; text-align: center; color: var(--muted); }
.auth-card .reg-request-form h2 { margin-bottom: 8px; }
.auth-card .reg-request-form > p { text-align: center; color: var(--muted); margin: 0 0 8px; }
.auth-links { margin-top: 24px; text-align: center; color: var(--muted); font-size: 15px; }
.auth-links a { margin-inline-start: 6px; color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-links + .auth-links { margin-top: 10px; }

/* ---------- Form fields (new + the classes older pages use) ---------- */
.site-main .form-group { margin-bottom: 18px; }
.site-main label, .site-main .label, .site-main .form-control-label, .site-main .control-label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.site-main .form-control,
.site-main input[type="text"], .site-main input[type="email"], .site-main input[type="password"],
.site-main input[type="tel"], .site-main input[type="number"], .site-main select, .site-main textarea {
  display: block; width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 12px;
  background: #fff; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.site-main .form-control:focus, .site-main input:focus, .site-main select:focus, .site-main textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(92, 36, 207, .12);
}
.site-main .input-group { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.site-main .input-group .form-control { flex: 1 1 0; min-width: 0; width: auto; }
.site-main .input-group-append { display: flex; }
.site-main .input-group-text { display: flex; align-items: center; padding: 0 16px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--soft); color: var(--muted); font-weight: 700; direction: ltr; }
.site-main .is-invalid { border-color: #c0213b !important; }
.site-main .is-valid { border-color: #1f9d5b !important; }
.site-main .invalid-feedback { display: block; flex: 0 0 100%; margin-top: 6px; color: #c0213b; font-size: 14px; }
.site-main .form-text { margin-top: 6px; color: var(--muted); font-size: 14px; }
.site-main .section-header { margin: 30px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-soft); font-size: 18px; font-weight: 800; color: var(--primary); }
.site-main .form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.site-main .form-check label, .site-main .collection_radio_buttons { margin: 0; font-weight: 600; color: var(--text); }
.site-main input[type="radio"], .site-main input[type="checkbox"] { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--primary); flex: none; }
.site-main .dimensions-block { margin: 0 0 12px; padding-inline-start: 28px; }
.site-main .required abbr, .site-main abbr[title] { text-decoration: none; color: #c0213b; margin-inline-end: 3px; }

/* ---------- Buttons used by the older markup ---------- */
.site-main .btn-block { display: flex; width: 100%; }
.site-main .btn-lg { padding: 15px 34px; font-size: 17px; }
.site-main .btn-yellow { background: var(--yellow); color: var(--primary-dark); box-shadow: 0 6px 18px rgba(247, 197, 4, .35); }
.site-main .btn-primary, .site-main .btn-purple { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(92, 36, 207, .3); }
.site-main .btn-outline-yellow { background: transparent; border-color: var(--primary); color: var(--primary); }
.site-main .btn-outline-yellow:hover { background: var(--primary-soft); }
.site-main .btn[disabled], .site-main .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.site-main .btn.border-0 { border: 0; }

/* ---------- Messages ---------- */
.site-main .alert { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 1.7; }
.site-main .alert-danger { background: #fdecee; color: #a4162c; }
.site-main .alert-success { background: #e8f7ee; color: #14683a; }

/* ---------- Small helpers the old markup relies on ---------- */
.site-main .d-none { display: none !important; }
.site-main .d-block { display: block !important; }
.site-main .ltr { direction: ltr; unicode-bidi: embed; }
.site-main .text-center { text-align: center; }
.site-main .text-block { text-align: center; color: var(--muted); }
.site-main .mt-3 { margin-top: 1rem; } .site-main .mt-4 { margin-top: 1.5rem; } .site-main .mt-5 { margin-top: 3rem; }
.site-main .mb-3 { margin-bottom: 1rem; } .site-main .mb-5 { margin-bottom: 3rem; }
.site-main .my-3 { margin: 1rem 0; } .site-main .my-4 { margin: 1.5rem 0; }
.site-main .pt-4 { padding-top: 1.5rem; } .site-main .pb-3 { padding-bottom: 1rem; }
.site-main .mr-3, .site-main .ml-3 { margin-inline: .5rem; }
.site-main .text-small { font-size: 14px; }
.site-main .font-weight-semibold { font-weight: 600; }

/* ---------- Content pages (terms, privacy, refunds, FAQ) ---------- */
.site-main.site-main--page { padding-top: 0; }
.page-hero { background: #5c24cf; color: #fff; padding: 56px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-hero p { margin-top: 8px; color: rgba(255, 255, 255, .8); font-size: 16px; }
.prose { max-width: 800px; margin: -28px auto 0; padding: 40px 40px 44px; background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.prose h2 { margin: 32px 0 10px; font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); font-size: 17px; line-height: 1.9; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-inline-start: 24px; list-style: disc; }
.prose a { color: var(--primary); font-weight: 700; }
.prose .updated { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.prose .faq { margin: 0 0 10px; }

@media (max-width: 620px) {
  .site-main { padding: 28px 0 48px; }
  .auth-card { padding: 28px 20px; border-radius: 20px; }
  .prose { margin-top: -20px; padding: 28px 22px 32px; border-radius: 18px; }
  .nav__cta { display: inline-flex; }
}
