/* ===== DESIGN SYSTEM — Nirvana Hotels Registration Card ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ===== VIDEO SPLASH SCREEN ===== */
.video-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #000;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.video-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Fallback when video can't autoplay */
.video-splash.no-video {
  background: linear-gradient(135deg, #1a3a3a 0%, #0d2626 100%);
}

/* Tap icon — bottom center, pulsing */
.splash-tap-icon {
  position: absolute;
  bottom: 12vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: tapBounce 2s ease-in-out infinite;
}

.splash-tap-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: ringPulse 2s ease-out infinite;
}

@keyframes tapBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* QR code bar at bottom of splash */
.splash-qr-bar {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 12px 20px;
  pointer-events: none;
}

/* 3D button effect for QR items */
.qr-btn-3d {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  pointer-events: auto;
  /* Enable interaction */
}

.qr-btn-3d img {
  width: 75px;
  height: 75px;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.qr-btn-3d span {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.qr-btn-3d:active {
  transform: scale(0.92) translateY(2px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 4px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.qr-btn-3d:hover img {
  transform: scale(1.05);
}

/* ===== BACK TO VIDEO BUTTON ===== */
.btn-back-video {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border: none;
  border-radius: 40px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  min-height: 48px;
  min-width: 48px;
  touch-action: manipulation;
  box-shadow: 0 4px 16px rgba(162, 123, 72, 0.35);
}

.btn-back-video.show {
  display: flex;
}

.btn-back-video:hover,
.btn-back-video:active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 6px 20px rgba(162, 123, 72, 0.5);
  transform: translateY(-1px);
}

/* ===== TABLET SPLASH RESPONSIVE ===== */
@media (max-width: 480px) {
  .splash-tap-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    bottom: 8vh;
  }
}

:root {
  /* Color Palette — Light Cream Hotel Theme */
  --bg-primary: #faf6f0;
  --bg-secondary: #f5efe6;
  --bg-card: #ffffff;
  --bg-input: #f9f5ef;
  --bg-hover: #f0e9de;

  --gold-50: #fef9e7;
  --gold-100: #f5e6c8;
  --gold-200: #e0c99a;
  --gold-300: #c4a265;
  --gold-400: #a27b48;
  --gold-500: #87623a;
  --gold-600: #6b4c2e;

  --text-primary: #2c2013;
  --text-secondary: #5e4d3a;
  --text-muted: #8c7b68;
  --text-gold: var(--gold-500);

  --border-default: #e0d5c7;
  --border-focus: var(--gold-400);
  --border-subtle: rgba(0, 0, 0, 0.06);

  --accent: var(--gold-400);
  --accent-glow: rgba(162, 123, 72, 0.12);
  --success: #2e8b57;
  --danger: #c0392b;
  --info: #2980b9;

  /* Sizing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-input: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 12px var(--accent-glow);
}

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

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

/* ===== BACKGROUND PATTERN ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(162, 123, 72, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(162, 123, 72, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ===== APP CONTAINER ===== */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 200px;
  /* Increased bottom padding for keyboard avoidance on tablets */
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  padding: 32px 20px 28px;
  background: linear-gradient(135deg, var(--bg-card) 0%, #f0e9de 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.header-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(232, 184, 16, 0.3);
}

.header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.header-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}

.header-website {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.lang-btn {
  padding: 10px 20px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  background: var(--bg-hover);
  border-color: var(--gold-500);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--bg-primary);
  border-color: var(--gold-400);
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

/* ===== FORM SECTIONS ===== */
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  animation: sectionReveal 0.5s ease-out both;
}

.form-section:hover {
  border-color: rgba(232, 184, 16, 0.15);
}

@keyframes sectionReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section:nth-child(2) {
  animation-delay: 0.05s;
}

.form-section:nth-child(3) {
  animation-delay: 0.1s;
}

.form-section:nth-child(4) {
  animation-delay: 0.15s;
}

.form-section:nth-child(5) {
  animation-delay: 0.2s;
}

.form-section:nth-child(6) {
  animation-delay: 0.25s;
}

.form-section:nth-child(7) {
  animation-delay: 0.3s;
}

.form-section:nth-child(8) {
  animation-delay: 0.35s;
}

.form-section:nth-child(9) {
  animation-delay: 0.4s;
}

.form-section:nth-child(10) {
  animation-delay: 0.45s;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-gold);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .icon {
  font-size: 1.2rem;
}

.section-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* ===== FORM GRID ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-row.triple {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ===== FORM GROUPS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-group label .label-alt {
  font-weight: 300;
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ===== INPUTS ===== */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
  scroll-margin-top: 100px;
  /* Better positioning when focused/keyboard opens */
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-input);
  background: #fff;
  transform: scale(1.01);
  /* Subtle focus emphasis */
  z-index: 2;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ===== DATE INPUT ===== */
input[type="date"] {
  color-scheme: dark;
}

/* ===== COMPANIONS SECTION ===== */
.companion-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.btn-remove {
  width: 48px;
  height: 52px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
}

.btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 52px;
}

.btn-add:hover {
  border-color: var(--gold-500);
  color: var(--text-gold);
  background: var(--accent-glow);
}

/* ===== ALLERGY / VEGAN ===== */
.allergy-notice {
  background: rgba(232, 184, 16, 0.06);
  border: 1px solid rgba(232, 184, 16, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.allergy-notice strong {
  color: var(--text-gold);
}

.toggle-group {
  display: flex;
  gap: 12px;
}

.toggle-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 56px;
  user-select: none;
}

.toggle-option:hover {
  background: var(--bg-hover);
}

.toggle-option input[type="radio"] {
  display: none;
}

.toggle-option.selected-yes {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
  color: var(--success);
  font-weight: 600;
}

.toggle-option.selected-no {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
  font-weight: 600;
}

/* ===== ACCORDION — Hotel Rules ===== */
.accordion {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

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

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-input);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 56px;
  user-select: none;
}

.accordion-header:hover {
  background: var(--bg-hover);
}

.accordion-header .lang-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.accordion-header .lang-flag {
  font-size: 1.2rem;
}

.accordion-header .arrow {
  transition: transform 0.3s ease;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.accordion-item.open .accordion-header .arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.open .accordion-body {
  max-height: 1200px;
}

.accordion-content {
  padding: 16px;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.accordion-content p {
  margin-bottom: 6px;
  padding-left: 8px;
  border-left: 2px solid var(--border-default);
}

/* ===== KVKK CONSENT ===== */
.kvkk-text {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 16px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.kvkk-text::-webkit-scrollbar {
  width: 6px;
}

.kvkk-text::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.kvkk-text::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border-radius: 3px;
}

.kvkk-text h4 {
  color: var(--text-gold);
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.kvkk-text strong {
  color: var(--text-primary);
}

.consent-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.consent-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  min-height: 60px;
  user-select: none;
}

.consent-option:hover {
  background: var(--bg-hover);
}

.consent-option input[type="radio"] {
  display: none;
}

.consent-option.approved {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--success);
  color: var(--success);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.consent-option.rejected {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--danger);
  color: var(--danger);
  font-weight: 600;
}

/* ===== SIGNATURE PAD ===== */
.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.signature-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signature-block.full-width {
  grid-column: 1 / -1;
}

.signature-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.signature-label .sig-number {
  color: var(--text-gold);
  font-weight: 600;
}

.signature-canvas-wrapper {
  position: relative;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-input);
  transition: border-color 0.3s ease;
}

.signature-canvas-wrapper.signing {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-glow);
}

.signature-canvas-wrapper.has-signature {
  border-style: solid;
  border-color: var(--success);
}

.signature-canvas {
  display: block;
  width: 100%;
  height: 120px;
  cursor: crosshair;
  touch-action: none;
}

.signature-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.signature-canvas-wrapper.has-signature .signature-placeholder {
  opacity: 0;
}

.btn-clear-sig {
  align-self: flex-end;
  padding: 8px 16px;
  border: 1px solid var(--border-default);
  background: var(--bg-input);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear-sig:hover {
  color: var(--danger);
  border-color: var(--danger);
}

/* ===== SUBMIT BUTTON ===== */
.submit-section {
  text-align: center;
  margin-top: 32px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 60px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(232, 184, 16, 0.3);
  min-height: 60px;
  min-width: 280px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 184, 16, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ===== SUCCESS MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-card);
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text-gold);
  margin-bottom: 8px;
}

.modal-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-modal-close {
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-modal-close:hover {
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .app-container {
    padding: 12px 10px 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row.triple {
    grid-template-columns: 1fr;
  }

  .signature-grid {
    grid-template-columns: 1fr;
  }

  .companion-row {
    grid-template-columns: 1fr 1fr auto;
  }

  .header h1 {
    font-size: 1.3rem;
  }

  .consent-group {
    flex-direction: column;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .app-container {
    padding: 20px;
    max-width: 840px;
  }
}

/* ===== UTILITY ===== */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 20px 0;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* ===== ALLERGY TEXTAREA ===== */
.allergy-detail-area {
  margin-top: 12px;
}