/**
 * Guest-facing pages (auth, contact, etc.) — cohesive with landing brand.
 * Loaded on every guest layout with cache busting.
 */

.bodyContainer {
  background: #fffaf5 !important;
  font-size: 16px;
  padding-top: calc(var(--header-height, 72px) + var(--header-content-gap, 1.15rem)) !important;
}

.bodyContainer > .container,
.bodyContainer > .container-fluid,
.bodyContainer > .guest-page-wrap {
  padding-top: 1.75rem;
}

/* Kill legacy bulky auth-card wrapper from style.min.css */
.bodyContainer .auth-card {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: inherit !important;
}

.guest-page-wrap {
  padding: 0.85rem 0 1.75rem;
  max-width: 920px;
}

/* Auth & contact panels */
.auth-shell,
.contact-panel {
  background: #fff;
  border: 1px solid #ecd9c8;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(92, 64, 51, 0.08);
}

/* Contact page — match brand (replaces inline blue/green) */
.contact-alert {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

.contact-alert-success {
  background: #f0faf2;
  color: #4a7c59;
  border: 1px solid #b8dcc4;
}

.contact-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3d2e1f;
}

.contact-subtitle {
  font-size: 0.9rem;
  color: #6b5c4f;
}

.contact-btn-submit {
  background: linear-gradient(135deg, #e8734a, #d96c3d);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(217, 108, 61, 0.28);
}

.contact-btn-submit:hover {
  background: linear-gradient(135deg, #d96c3d, #c45a2e);
  color: #fff !important;
}

.contact-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-options {
  background: #fffaf5;
  border: 1px solid #ecd9c8;
  border-radius: 12px;
  padding: 1rem;
}

.contact-options-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3d2e1f;
  text-align: center;
  margin-bottom: 0.75rem;
}

.contact-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1 1 200px;
  min-width: 0;
  background: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #ecd9c8;
}

.contact-option > div {
  min-width: 0;
  flex: 1;
}

.contact-option em {
  color: #d96c3d;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-option strong {
  display: block;
  font-size: 0.75rem;
  color: #6b5c4f;
}

.contact-option a,
.contact-option span {
  display: block;
  font-size: 0.85rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #3d2e1f;
  text-decoration: none;
}

.contact-option a:hover {
  color: #d96c3d;
}

/* Prose links in contact / report-issue panels (outside .contact-option) */
.auth-shell a:not(.btn):not(.lp-btn):not(.contact-btn-submit):not(.auth-pg-link-accent):not(.contact-option a),
.contact-panel > a:not(.btn),
.contact-panel p a,
.contact-panel .text-muted a,
.auth-shell p a,
.auth-shell .text-muted a {
  color: #b34f28;
  text-decoration-color: rgba(179, 79, 40, 0.45);
}

.contact-panel p a:hover,
.contact-panel p a:focus-visible,
.contact-panel .text-muted a:hover,
.contact-panel .text-muted a:focus-visible,
.auth-shell p a:hover,
.auth-shell p a:focus-visible,
.auth-shell .text-muted a:hover,
.auth-shell .text-muted a:focus-visible {
  color: #8f3c1c;
  text-decoration-color: rgba(143, 60, 28, 0.7);
}

.form-control-modern:focus {
  border-color: #d96c3d !important;
  box-shadow: 0 0 0 3px rgba(217, 108, 61, 0.15) !important;
}

.turnstile-wrap {
  min-height: 65px;
}

.turnstile-wrap .cf-turnstile,
.turnstile-wrap iframe {
  width: 100% !important;
}

@media (max-width: 768px) {
  .bodyContainer > .container,
  .bodyContainer > .container-fluid,
  .bodyContainer > .guest-page-wrap {
    padding-top: 1.25rem;
  }

  .guest-page-wrap {
    padding: 0.75rem 0 1.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  .bodyContainer {
    background: #fffaf5 !important;
  }
}
