/* ============================================================
   CSS Custom Properties — Industrial / Sacred theme
   ============================================================ */
:root {
  --color-primary: #c8a84b;
  --color-primary-dark: #a8882b;
  --color-primary-light: rgba(200,168,75,0.12);
  --color-gold-bright: #f0d97a;
  --color-success: #2aff6a;
  --color-error: #ff3a3a;
  --color-text: #e8d8a0;
  --color-text-muted: #c8a84b88;
  --color-border: #c8a84b44;
  --color-border-focus: #c8a84b;
  --color-bg: #0d0d1a;
  --color-card-bg: #12100a;
  --color-card-bg-2: #1a1712;
  --color-card-shadow: 0 2px 12px rgba(200,168,75,0.12), 0 8px 32px rgba(0,0,0,0.5);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 150ms ease;
  --font-sans: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Orbitron', sans-serif;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    linear-gradient(rgba(200,168,75,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Banner / Header
   ============================================================ */
.app-header {
  width: 100%;
  background: #0d0d1a;
  border-bottom: 1px solid var(--color-border);
}

.banner-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.banner {
  width: 100%;
  height: 220px;
  background: #0d0d1a;
  position: relative;
  overflow: hidden;
  border-left: 2px solid #c8a84b;
  border-right: 2px solid #c8a84b;
  box-shadow: 0 0 0 1px #2a2a4a, 0 8px 48px rgba(200,168,75,0.25);
}

.bg-layer {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, #3d1f08 0%, transparent 60%),
    radial-gradient(ellipse at 10% 50%, #1a1035 0%, transparent 50%),
    radial-gradient(ellipse at 90% 50%, #1a1035 0%, transparent 50%),
    linear-gradient(180deg, #070712 0%, #120c1e 50%, #0f0d08 100%);
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,168,75,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,168,75,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.rivet-bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 18px;
  background: linear-gradient(180deg, #1e1a0e 0%, #2a2418 50%, #1e1a0e 100%);
  border-bottom: 1px solid #c8a84b;
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 24px;
  z-index: 10;
}
.rivet-bar.bottom {
  bottom: 0; top: auto;
  border-bottom: none;
  border-top: 1px solid #c8a84b;
}
.rivet {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8d080, #b8922a);
  box-shadow: 0 0 4px rgba(200,168,75,0.4);
  flex-shrink: 0;
}
.rivet-bar .spacer { flex: 1; }

.side-panel {
  position: absolute;
  top: 18px; bottom: 18px;
  width: 110px;
  background: linear-gradient(180deg, #12100a 0%, #1a1712 100%);
  border-right: 1px solid #c8a84b44;
  z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 8px;
}
.side-panel.right {
  right: 0; left: auto;
  border-right: none;
  border-left: 1px solid #c8a84b44;
}

.dial {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid #c8a84b66;
  background: radial-gradient(circle at 40% 35%, #2a2418, #0d0b07);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.dial::after {
  content: '';
  position: absolute;
  width: 2px; height: 12px;
  background: #c8a84b;
  border-radius: 1px;
  bottom: 50%; left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-30deg);
}
.dial-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 8px; letter-spacing: 1px;
  color: #c8a84b88;
  text-transform: uppercase;
  text-align: center;
}

.led-strip {
  display: flex; flex-direction: column; gap: 2px;
}
.led {
  width: 24px; height: 5px;
  border-radius: 2px;
}
.led.green  { background: #2aff6a; box-shadow: 0 0 4px #2aff6a88; }
.led.yellow { background: #ffd72a; box-shadow: 0 0 4px #ffd72a88; }
.led.amber  { background: #ff8c2a; box-shadow: 0 0 4px #ff8c2a88; }
.led.red    { background: #ff3a3a; box-shadow: 0 0 4px #ff3a3a66; opacity: 0.4; }

.switch-row { display: flex; gap: 6px; }
.switch {
  width: 12px; height: 22px;
  border-radius: 2px;
  border: 1px solid #c8a84b55;
  background: linear-gradient(180deg, #1a1612 50%, #c8a84b 50%);
}
.switch.up { background: linear-gradient(180deg, #c8a84b 50%, #1a1612 50%); }

.center-content {
  position: absolute;
  left: 110px; right: 110px;
  top: 18px; bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.main-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 46px;
  letter-spacing: 4px;
  line-height: 1;
  color: #f0d97a;
  text-shadow:
    0 0 20px rgba(240,217,122,0.6),
    0 0 60px rgba(200,168,75,0.3),
    2px 2px 0px #6b4a0a,
    4px 4px 0px #3d2a05;
  position: relative;
  z-index: 2;
  animation: glowPulse 3s ease-in-out infinite;
}

.title-3000 {
  color: #c8a84b;
  text-shadow:
    0 0 15px rgba(200,168,75,0.8),
    0 0 40px rgba(200,168,75,0.4),
    1px 1px 0 #3d2a05;
}

.title-rule {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 500px;
  margin: 6px 0 8px;
}
.rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8a84b88, transparent);
}
.rule-diamond {
  width: 8px; height: 8px;
  background: #c8a84b;
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(200,168,75,0.6);
}
.rule-cross {
  position: relative; width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
}
.rule-cross::before, .rule-cross::after {
  content: '';
  position: absolute;
  background: #f0d97a;
  box-shadow: 0 0 4px rgba(240,217,122,0.5);
}
.rule-cross::before { width: 14px; height: 1.5px; }
.rule-cross::after  { width: 1.5px; height: 14px; }

.tagline {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 4px;
  color: #c8a84bbb;
  text-transform: uppercase;
}

.note-deco {
  position: absolute;
  font-size: 28px;
  color: #c8a84b;
  opacity: 0.18;
  font-family: serif;
  user-select: none;
}

.slide-strip {
  display: flex; gap: 5px; margin-top: 8px;
}
.slide-mini {
  width: 22px; height: 15px;
  border-radius: 2px;
  border: 1px solid #c8a84b55;
  background: linear-gradient(135deg, #1a1810 0%, #2a2418 100%);
  position: relative;
  overflow: hidden;
}
.slide-mini::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px; right: 3px;
  height: 1.5px;
  background: #c8a84b55;
  border-radius: 1px;
}
.slide-mini::before {
  content: '';
  position: absolute;
  top: 7px; left: 3px;
  width: 60%;
  height: 1px;
  background: #c8a84b33;
}
.slide-mini.active {
  border-color: #c8a84b;
  background: linear-gradient(135deg, #2a2010 0%, #3d3015 100%);
  box-shadow: 0 0 6px rgba(200,168,75,0.3);
}

@keyframes scanline {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 0.04; }
  90%  { opacity: 0.04; }
  100% { transform: translateY(200px); opacity: 0; }
}
.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(200,168,75,0.08), transparent);
  animation: scanline 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
  top: 0;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 20px rgba(240,217,122,0.6), 0 0 60px rgba(200,168,75,0.3), 2px 2px 0px #6b4a0a, 4px 4px 0px #3d2a05;
  }
  50% {
    text-shadow: 0 0 30px rgba(240,217,122,0.9), 0 0 80px rgba(200,168,75,0.5), 2px 2px 0px #6b4a0a, 4px 4px 0px #3d2a05;
  }
}

/* LED blink animations */
@keyframes blinkGreen {
  0%, 44%, 56%, 100% { opacity: 1; box-shadow: 0 0 6px #2aff6a88; }
  50% { opacity: 0.15; box-shadow: none; }
}
@keyframes blinkYellow {
  0%, 29%, 41%, 69%, 81%, 100% { opacity: 1; box-shadow: 0 0 6px #ffd72a88; }
  35% { opacity: 0.1; box-shadow: none; }
  75% { opacity: 0.1; box-shadow: none; }
}
@keyframes blinkAmber {
  0%, 17%, 23%, 59%, 67%, 100% { opacity: 1; box-shadow: 0 0 5px #ff8c2a88; }
  20% { opacity: 0.1; box-shadow: none; }
  63% { opacity: 0.1; box-shadow: none; }
}
@keyframes blinkRed {
  0%, 100% { opacity: 0.3; box-shadow: none; }
  50% { opacity: 0.95; box-shadow: 0 0 8px #ff3a3aaa; }
}

.led.green  { animation: blinkGreen  1.7s ease-in-out infinite; }
.led.green.d2 { animation-delay: 0.35s; }
.led.yellow { animation: blinkYellow 2.3s ease-in-out infinite; }
.led.yellow.d2 { animation-delay: 0.9s; }
.led.amber  { animation: blinkAmber  1.1s ease-in-out infinite; }
.led.red    { animation: blinkRed    0.65s ease-in-out infinite; }

/* Dial needle sweep */
@keyframes dialSweepL {
  0%   { transform: translateX(-50%) rotate(-60deg); }
  25%  { transform: translateX(-50%) rotate(10deg); }
  50%  { transform: translateX(-50%) rotate(45deg); }
  75%  { transform: translateX(-50%) rotate(-20deg); }
  100% { transform: translateX(-50%) rotate(-60deg); }
}
@keyframes dialSweepR {
  0%   { transform: translateX(-50%) rotate(25deg); }
  30%  { transform: translateX(-50%) rotate(60deg); }
  60%  { transform: translateX(-50%) rotate(-40deg); }
  100% { transform: translateX(-50%) rotate(25deg); }
}
@keyframes dialGlow {
  0%, 100% { border-color: #c8a84b66; }
  50%       { border-color: #c8a84bcc; box-shadow: 0 0 8px rgba(200,168,75,0.35); }
}
.dial { animation: dialGlow 2.5s ease-in-out infinite; }
.dial-left::after  { animation: dialSweepL 4.5s ease-in-out infinite; }
.dial-right::after { animation: dialSweepR 3.8s ease-in-out infinite; }

/* Switch flick */
@keyframes switchFlickDown {
  0%, 84%, 100% { background: linear-gradient(180deg, #1a1612 50%, #c8a84b 50%); }
  89% { background: linear-gradient(180deg, #c8a84b 50%, #1a1612 50%); }
}
@keyframes switchFlickUp {
  0%, 84%, 100% { background: linear-gradient(180deg, #c8a84b 50%, #1a1612 50%); }
  89% { background: linear-gradient(180deg, #1a1612 50%, #c8a84b 50%); }
}
.sw1 { animation: switchFlickDown 5.2s ease-in-out infinite 0s; }
.sw2 { animation: switchFlickUp   3.9s ease-in-out infinite 1.4s; }
.sw3 { animation: switchFlickDown 6.1s ease-in-out infinite 2.7s; }

/* Slide active shimmer */
@keyframes slideShimmer {
  0%, 100% { box-shadow: 0 0 6px rgba(200,168,75,0.3); border-color: #c8a84b; }
  50%       { box-shadow: 0 0 14px rgba(200,168,75,0.75); border-color: #f0d97a; }
}
.slide-mini.active { animation: slideShimmer 1.8s ease-in-out infinite; }

.corner {
  position: absolute;
  width: 20px; height: 20px;
  z-index: 15;
}
.corner.tl { top: 22px; left: 4px; border-top: 2px solid #c8a84b; border-left: 2px solid #c8a84b; }
.corner.tr { top: 22px; right: 4px; border-top: 2px solid #c8a84b; border-right: 2px solid #c8a84b; }
.corner.bl { bottom: 22px; left: 4px; border-bottom: 2px solid #c8a84b; border-left: 2px solid #c8a84b; }
.corner.br { bottom: 22px; right: 4px; border-bottom: 2px solid #c8a84b; border-right: 2px solid #c8a84b; }

.arch-svg {
  position: absolute;
  left: 50%; top: 14px;
  transform: translateX(-50%);
  opacity: 0.09;
  z-index: 1;
}

.panel-readout {
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  color: #c8a84b66;
  letter-spacing: 1px;
  text-align: center;
}

.label-note {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px;
  color: #c8a84b55;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

/* ============================================================
   Content Area — warm light theme (contrasts with dark banner)
   ============================================================ */
body {
  background: #f4efe6;
  background-image: none;
}

/* ============================================================
   Main Container
   ============================================================ */
.main-container {
  flex: 1;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

/* ============================================================
   Step Indicator
   ============================================================ */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  padding: 0 4px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8e0d0;
  border: 1.5px solid #c8b88a;
  color: #8a7a5a;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.step-item.active .step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(200,168,75,0.5);
}

.step-item.completed .step-circle {
  background: #2d8a4e;
  border-color: #2d8a4e;
  color: #fff;
}

.step-label {
  font-size: 11px;
  color: #8a7a5a;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.step-item.active .step-label {
  color: #a07830;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: #d8cbb0;
  margin: 0 8px;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.step-connector.completed {
  background: #2d8a4e;
}

/* ============================================================
   Step Card
   ============================================================ */
.wizard-step {
  animation: fadeIn 250ms ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-step.hidden {
  display: none;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #e0d5c0;
  box-shadow: 0 2px 8px rgba(120,90,40,0.08), 0 8px 32px rgba(120,90,40,0.06);
  padding: 36px 40px;
}

.step-card-center {
  text-align: center;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.step-heading {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #3d2e10;
  margin-bottom: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.step-subheading {
  font-size: 15px;
  color: #7a6a4a;
  margin-bottom: 28px;
  line-height: 1.6;
  font-weight: 400;
}

/* ============================================================
   Forms
   ============================================================ */
.form-row {
  margin-bottom: 20px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #a07830;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.form-hint {
  font-size: 13px;
  color: #8a7a5a;
  margin-bottom: 12px;
  line-height: 1.5;
}

.form-input {
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #2a1f08;
  background: #faf7f0;
  border: 1.5px solid #d0c0a0;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,168,75,0.18);
}

.form-input::placeholder {
  color: #b8a888;
}

/* ============================================================
   AM/PM Toggle
   ============================================================ */
.ampm-toggle {
  display: flex;
  height: 44px;
  border: 1.5px solid #d0c0a0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #faf7f0;
  width: fit-content;
}

.ampm-btn {
  flex: 1;
  min-width: 70px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8a7a5a;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  padding: 0 20px;
}

.ampm-btn.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: inset 0 0 8px rgba(120,80,0,0.2);
}

.ampm-btn:not(.active):hover {
  background: #f0e8d0;
  color: #a07830;
}

/* ============================================================
   Service Type Cards
   ============================================================ */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.service-card {
  border: 1.5px solid #ddd0b0;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  user-select: none;
  background: #faf7f0;
  position: relative;
}

.service-card:hover {
  border-color: var(--color-primary);
  background: #fdf5e0;
  box-shadow: 0 2px 12px rgba(200,168,75,0.2);
}

.service-card.selected {
  border-color: var(--color-primary);
  background: #fdf5e0;
  box-shadow: 0 0 0 3px rgba(200,168,75,0.25), 0 4px 16px rgba(200,168,75,0.15);
}

.service-card .service-card__check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  display: none;
  align-items: center;
  justify-content: center;
}

.service-card.selected .service-card__check {
  display: flex;
}

.service-card__name {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  color: #2a1f08;
  margin-bottom: 8px;
}

.service-card.selected .service-card__name {
  color: #8a6010;
}

.service-card__order {
  font-size: 12px;
  color: #7a6a4a;
  line-height: 1.6;
}

.service-card__songs {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ============================================================
   Order of Worship (Step 2)
   ============================================================ */
.order-of-worship {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ow-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ow-number {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f0ead8;
  border: 1.5px solid #d0c0a0;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #8a7a5a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.ow-content {
  flex: 1;
}

.ow-static {
  height: 48px;
  display: flex;
  align-items: center;
}

.ow-static-label {
  font-size: 14px;
  color: #9a8a6a;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Song slot card */
.song-slot {
  border: 1.5px dashed #c8b890;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  background: #fff;
}

.song-slot:hover:not(.song-slot--filled):not(.song-slot--active) {
  border-color: var(--color-primary);
  background: #fdf5e0;
  box-shadow: 0 0 8px rgba(200,168,75,0.15);
}

.song-slot--active {
  border-color: var(--color-primary);
  border-style: solid;
  background: #fff;
  cursor: default;
  box-shadow: 0 0 0 3px rgba(200,168,75,0.15);
}

.song-slot--filled {
  border-color: #2d8a4e;
  border-style: solid;
  background: #f0faf4;
  cursor: pointer;
}

.song-slot__placeholder {
  font-size: 14px;
  color: #b8a888;
  display: flex;
  align-items: center;
  gap: 8px;
}

.song-slot__placeholder svg {
  opacity: 0.5;
}

.song-slot__filled-label {
  font-size: 14px;
  font-weight: 700;
  color: #2a1f08;
}

.song-slot__filled-edit {
  font-size: 12px;
  color: #a07830;
  margin-left: 8px;
  font-weight: 400;
}

/* Search panel inside song slot */
.song-search-panel {
  padding-top: 4px;
}

.search-bar-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.search-bar-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #b8a888;
  pointer-events: none;
}

.search-bar-input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 44px;
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #2a1f08;
  background: #faf7f0;
  border: 1.5px solid #d0c0a0;
  border-radius: 100px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 6px rgba(120,90,40,0.08);
}

.search-bar-input:focus {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 2px 6px rgba(120,90,40,0.08), 0 0 0 3px rgba(200,168,75,0.15);
}

.search-bar-input::placeholder {
  color: #b8a888;
}

.search-results {
  border: 1.5px solid #d0c0a0;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 4px 20px rgba(120,90,40,0.12);
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid #f0e8d8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.highlighted {
  background: #fdf5e0;
}

.search-result-num {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #a07830;
  min-width: 32px;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: #2a1f08;
}

.search-no-results {
  padding: 16px;
  font-size: 14px;
  color: #8a7a5a;
  text-align: center;
}

.search-loading {
  padding: 16px;
  font-size: 14px;
  color: #8a7a5a;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Verse selection panel */
.verse-selection-panel {
  margin-top: 12px;
  border: 1.5px solid #d8c8a0;
  border-radius: var(--radius-md);
  background: #fdf8ee;
  padding: 16px;
}

.verse-selection-panel__song {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  color: #3d2e10;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0d0b0;
}

.verse-selection-panel__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a7a5a;
  margin-bottom: 10px;
}

.verse-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.verse-checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.verse-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.verse-checkbox-item span {
  font-size: 14px;
  font-weight: 600;
  color: #2a1f08;
}

.verse-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-add-song {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}

.btn-add-song:hover {
  background: #a07830;
  box-shadow: 0 2px 10px rgba(200,168,75,0.35);
}

.btn-add-song:disabled {
  background: #d8ccb0;
  color: #a89870;
  cursor: not-allowed;
}

.btn-cancel-search {
  background: none;
  border: none;
  font-size: 13px;
  color: #8a7a5a;
  cursor: pointer;
  font-family: var(--font-sans);
  padding: 9px 4px;
  transition: color var(--transition);
  letter-spacing: 0.5px;
}

.btn-cancel-search:hover {
  color: #2a1f08;
}

/* ============================================================
   Review Summary (Step 3)
   ============================================================ */
.review-summary {
  border: 1.5px solid #ddd0b0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #faf7f0;
}

.review-block {
  padding: 16px 20px;
  border-bottom: 1px solid #ece4d0;
}

.review-block:last-child {
  border-bottom: none;
}

.review-block__label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #a07830;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.review-block__value {
  font-size: 15px;
  color: #2a1f08;
  font-weight: 600;
}

.review-order-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.review-order-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0e8d8;
  font-size: 14px;
}

.review-order-item:last-child {
  border-bottom: none;
}

.review-order-num {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #a07830;
  min-width: 24px;
  text-align: right;
}

.review-order-label {
  color: #9a8a6a;
  font-style: italic;
}

.review-order-song {
  color: #2a1f08;
  font-weight: 600;
}

.review-order-song strong {
  color: #8a6010;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), opacity var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #a07830;
  box-shadow: 0 2px 12px rgba(200,168,75,0.35);
}

.btn-primary:disabled {
  background: #d8ccb0;
  color: #a89870;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: #5a4a2a;
  border: 1.5px solid #c8b890;
}

.btn-secondary:hover {
  background: #fdf5e0;
  border-color: var(--color-primary);
  color: #8a6010;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #e8dcc8;
}

/* ============================================================
   Spinner
   ============================================================ */
.spinner {
  width: 52px;
  height: 52px;
  border: 3px solid #e8dcc8;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 28px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid #e8dcc8;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ============================================================
   Result Icons
   ============================================================ */
.result-icon {
  margin: 0 auto 20px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */
.app-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #ddd0b0;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a09070;
  background: #ede5d4;
  font-family: var(--font-display);
}

/* ============================================================
   Utility
   ============================================================ */
.hidden {
  display: none !important;
}

/* ============================================================
   Responsive — tablet (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .step-card {
    padding: 28px 24px;
  }

  .ampm-toggle {
    width: 100%;
  }

  .ampm-btn {
    flex: 1;
  }
}

/* ============================================================
   Responsive — mobile (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Banner: compact single-line version, hide side panels */
  .banner {
    height: 90px;
  }

  .side-panel {
    display: none;
  }

  .center-content {
    left: 12px;
    right: 12px;
  }

  .main-title {
    font-size: 22px;
    letter-spacing: 1.5px;
  }

  .title-3000 {
    font-size: 22px;
  }

  .title-rule {
    margin: 4px 0 5px;
  }

  .tagline {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .slide-strip {
    display: none;
  }

  .note-deco {
    display: none;
  }

  /* Content */
  .main-container {
    padding: 16px 12px 32px;
  }

  .step-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .step-heading {
    font-size: 17px;
    letter-spacing: 1px;
  }

  .step-subheading {
    font-size: 13px;
    margin-bottom: 20px;
  }

  /* Step indicator — circles only, no labels */
  .step-label {
    display: none;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  /* Forms */
  .form-label {
    font-size: 11px;
  }

  .form-input {
    height: 48px;
    font-size: 16px; /* prevents iOS auto-zoom */
    width: 100%;
    max-width: 100%;
    -webkit-appearance: none;
  }

  .ampm-toggle {
    width: 100%;
    height: 48px;
  }

  .ampm-btn {
    flex: 1;
    font-size: 14px;
    padding: 0;
  }

  /* Buttons */
  .step-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .btn {
    width: 100%;
    height: 48px;
    font-size: 13px;
  }

  .btn-add-song {
    width: 100%;
    padding: 12px 20px;
  }

  /* Song search */
  .search-bar-input {
    font-size: 16px; /* prevents iOS auto-zoom */
    height: 48px;
  }

  .verse-panel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cancel-search {
    text-align: center;
    padding: 8px;
  }

  /* Footer */
  .app-footer {
    font-size: 10px;
    letter-spacing: 1px;
    padding: 14px;
  }
}
