/* ============================================================
   MAMMOTH FILM STUDIOS — Customer Booking Site
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #121212;
  --surface:       #1a1a1a;
  --surface2:      #202020;
  --surface3:      #282828;
  --border:        #2e2e2e;
  --border-bright: #3e3e3e;
  --text:          #cccccc;
  --text-muted:    #666;
  --text-dim:      #999;
  --accent:        #6F8578;
  --accent-dim:    #4a5c52;
  --coral:         #EC6969;
  --coral-dim:     #b84040;
  --coral-subtle:  rgba(236, 105, 105, 0.08);
  --green:         #3ecf6e;
  --amber:         #e0a040;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }

.hidden { display: none !important; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.logo-text-block { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.logo-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.header-contact {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.header-contact a { color: var(--text-dim); text-decoration: none; }
.header-contact a:hover { color: var(--coral); }

/* ── PAGE LAYOUT ─────────────────────────────────────────── */
.page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.page-title {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 520px;
}

/* ── STUDIO SELECTOR ─────────────────────────────────────── */
.studio-selector {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 40px;
}

.studio-btn {
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.studio-btn:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--surface3);
}

.studio-btn.selected {
  border-color: var(--coral);
  background: var(--coral-subtle);
  color: var(--text);
}

.studio-btn .btn-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.studio-btn .btn-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.studio-btn.selected .btn-sub { color: var(--text-dim); }

/* ── FORM SECTIONS ───────────────────────────────────────── */
.form-section {
  margin-bottom: 36px;
}

.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.field-row.single { grid-template-columns: 1fr; }
.field-row.thirds { grid-template-columns: 1fr 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field label .req { color: var(--coral); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field input.error,
.field select.error,
.field textarea.error {
  border-color: var(--coral);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }

.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.field-error {
  font-size: 11px;
  color: var(--coral);
  margin-top: 2px;
  display: none;
}

/* ── CHECKBOXES / RADIOS ─────────────────────────────────── */
.check-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.check-option,
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 9px 14px;
  border: 1px solid var(--border-bright);
  background: var(--surface2);
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.check-option:hover,
.radio-option:hover {
  border-color: var(--accent-dim);
  background: var(--surface3);
}

/* Hide native input */
.check-option input[type="checkbox"],
.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom box */
.check-option::before,
.radio-option::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--border-bright);
  background: var(--surface3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}

/* Tick mark using background SVG */
.check-option:has(input:checked)::before,
.radio-option:has(input:checked)::before {
  background: var(--coral);
  border-color: var(--coral);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

/* Selected state — highlight the whole option */
.check-option:has(input:checked),
.radio-option:has(input:checked) {
  border-color: var(--coral);
  background: var(--coral-subtle);
}

.check-option span,
.radio-option span {
  font-size: 13px;
  color: var(--text-dim);
}

.check-option:has(input:checked) span,
.radio-option:has(input:checked) span {
  color: var(--text);
}

/* ── DAYS DISPLAY ────────────────────────────────────────── */
.days-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface3);
  border: 1px solid var(--border-bright);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 12px;
}

.days-badge .days-count {
  font-size: 18px;
  font-weight: 300;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.days-badge .days-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── SUBMIT ──────────────────────────────────────────────── */
.form-footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.submit-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.submit-note strong { color: var(--text-dim); }

.btn-submit {
  background: var(--coral);
  border: none;
  color: #fff;
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
  font-family: inherit;
}

.btn-submit:hover { background: #d45a5a; }
.btn-submit:disabled { background: var(--border-bright); color: var(--text-muted); cursor: not-allowed; }

/* ── FORM ERROR BANNER ───────────────────────────────────── */
.form-error-banner {
  background: rgba(236,105,105,0.1);
  border: 1px solid var(--coral-dim);
  color: var(--coral);
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.5;
  display: none;
}

/* ── SUCCESS STATE ───────────────────────────────────────── */
.success-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-icon {
  width: 52px;
  height: 52px;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.success-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.5; }

.success-title {
  font-size: 20px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.01em;
}

.success-body {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 420px;
}

.success-ref {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  letter-spacing: 0.04em;
}

.success-ref span { color: var(--accent); font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 540px) {
  .page-wrap { padding: 32px 16px 60px; }
  .page-title { font-size: 22px; }
  .studio-selector { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .field-row.thirds { grid-template-columns: 1fr 1fr; }
  .btn-submit { width: 100%; text-align: center; }
}
