/* No-Show Card Protection — post-booking save-card consent UI (Slice 1E).
   Palette follows the luxury-spa sage system; local tokens map to the project
   sage vars with hex fallbacks. Radius scale is intentional:
   inputs 6px, actions/boxes 10px, outer container 14px. */
:root {
  --nsc-accent: var(--sage-600, #8aa77b);
  --nsc-accent-strong: var(--sage-700, #5a6b4a);
  --nsc-edge: var(--sage-200, #d7e0cf);
  --nsc-edge-input: var(--sage-300, #c2cfb4);
  --nsc-ink: var(--sage-800, #3f4d35);
  --nsc-surface: var(--sage-50, #f4f7f0);
  --nsc-danger: #c0392b;
  --nsc-success: #4d6b3a;
}
.nsc-section {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--nsc-edge);
  border-left: 4px solid var(--nsc-accent);
  border-radius: 14px;
  background: var(--nsc-surface);
  overflow-x: hidden;
  max-width: 100%;
}
.nsc-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nsc-ink);
}
.nsc-blurb {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--nsc-accent-strong);
}
.nsc-card-field {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--nsc-edge-input);
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.nsc-card-field.StripeElement--focus {
  border-color: var(--nsc-accent);
  box-shadow: 0 0 0 3px rgba(138, 167, 123, 0.18);
}
.nsc-card-field.StripeElement--invalid {
  border-color: var(--nsc-danger);
}
.nsc-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--nsc-accent-strong);
  cursor: pointer;
}
.nsc-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--nsc-accent);
  cursor: pointer;
}
.nsc-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.nsc-save-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--nsc-accent);
  cursor: pointer;
  transition: background-color 200ms ease, transform 120ms ease;
}
.nsc-save-btn:hover:not(:disabled) {
  background: var(--nsc-accent-strong);
}
.nsc-save-btn:focus-visible {
  outline: 3px solid rgba(138, 167, 123, 0.45);
  outline-offset: 2px;
}
.nsc-save-btn:active:not(:disabled) {
  transform: translateY(1px);
}
.nsc-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.nsc-status {
  font-size: 0.88rem;
  font-weight: 600;
}
.nsc-status--error {
  color: var(--nsc-danger);
}
.nsc-status--success {
  color: var(--nsc-success);
}
.nsc-status--working {
  color: var(--nsc-accent-strong);
}
.nsc-saved {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: var(--nsc-surface);
  border: 1px solid var(--nsc-edge);
  color: var(--nsc-ink);
  font-weight: 600;
}
@media (max-width: 768px) {
  .nsc-section {
    padding: 1.15rem;
    overflow-x: hidden;
    max-width: 100%;
  }
  .nsc-actions { width: 100%; min-width: 0; }
  .nsc-save-btn { width: 100%; }
}
@media (max-width: 344px) {
  .nsc-section { padding: 0.85rem; }
  .nsc-heading { font-size: 0.98rem; }
  .nsc-required-note { padding: 0.7rem 0.8rem; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .nsc-card-field,
  .nsc-save-btn { transition: none; }
}

/* Slice C — Hardening #8: mandatory (required) variant + step-5 forewarning note.
   Warms/strengthens the existing sage edge to signal "action needed" without leaving
   the palette. Radii follow the existing scale (boxes 10px). */
.nsc-section--required {
  border-left-color: var(--nsc-accent-strong);
  background:
    linear-gradient(0deg, rgba(138, 167, 123, 0.10), rgba(138, 167, 123, 0.10)),
    var(--nsc-surface);
}
.nsc-required-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--nsc-edge);
  border-left: 4px solid var(--nsc-accent-strong);
  border-radius: 10px;
  background: var(--nsc-surface);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--nsc-accent-strong);
}
.nsc-required-note strong {
  color: var(--nsc-ink);
  font-weight: 700;
}
