@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --secondary: #3b82f6;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  --glass: rgba(255, 255, 255, 0.9);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --radius: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text-main);
}

/* Header & Countdown */
.top {
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

#countdown {
  position: relative;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

#countdown-number {
  font-weight: 800;
  font-size: 14px;
}

svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  transform: rotate(-90deg);
}

svg circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4px;
  stroke-dasharray: 176px;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: countdown 300s linear infinite forwards;
}

@keyframes countdown {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 176px; }
}

.buttons {
  display: flex;
  gap: 12px;
}

button {
  padding: 12px 24px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 15px;
}

button:active { transform: scale(0.95); }

#nextBtn {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

#nextBtn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

#prevBtn, .btn-restart {
  background: white;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

#prevBtn:hover, .btn-restart:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

/* Progress Indicators */
.tab-counter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 30px 0;
}

.step {
  width: 40px;
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
  transition: all 0.4s ease;
}

.step.active {
  background: var(--primary);
  width: 60px;
}

.step.finish {
  background: var(--secondary);
}

/* Main Form Container */
#regForm {
  flex: 1;
  display: flex;
  flex-direction: column;
  items-center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.tab {
  display: none;
  width: 100%;
  background: var(--glass);
  backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: tabFade 0.6s ease-out;
  flex-direction: column;
  align-items: center;
}

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

h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  text-align: center;
  color: #1e293b;
}

p {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 1.1rem;
  text-align: center;
}

/* Faces & Options */
.faces {
  display: flex;
  gap: 40px;
  margin: 20px 0;
  transition: all 0.3s;
}

.faces img {
  width: 110px;
  height: 110px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border-radius: 50%;
  padding: 5px;
}

input[type=radio]:checked + img {
  background: white;
  box-shadow: var(--shadow-lg);
  transform: scale(1.1);
  outline: 4px solid var(--primary);
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  transition: all 0.3s;
}

.option {
  flex: 1;
  min-width: 260px;
  max-width: 300px;
  min-height: 120px;
  padding: 20px;
  background: white;
  border: 2px solid #f1f5f9;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.option:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

input:checked + .option {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Inputs */
input[type=tel], input[type=email], textarea {
  width: 100%;
  max-width: 500px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

input.invalid, textarea.invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

input[type=radio], input[type=checkbox] { display: none; }

/* --- FUTURISTIC THEME OVERRIDE --- */
body.futuristic {
  --bg-gradient: radial-gradient(circle at 50% 50%, #030712 0%, #000000 100%);
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.4);
  --primary-hover: #34d399;
  --glass: rgba(2, 6, 23, 0.95);
  --text-main: #f8fafc;
  --text-muted: #64748b;
  --radius: 0px; 
  background-color: #000;
  overflow: hidden;
  letter-spacing: 0.05em;
}

/* Subtle HUD Grid Overlay */
body.futuristic::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  pointer-events: none;
}

/* Toned down Scanlines */
body.futuristic::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
  background-size: 100% 3px;
  z-index: 100;
  pointer-events: none;
  opacity: 0.2;
}

body.futuristic .tab {
  z-index: 10;
  border: 1px solid var(--primary);
  background: var(--glass);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 0 0 10px var(--primary-glow);
  clip-path: polygon(
    0 30px, 30px 0, 
    calc(100% - 30px) 0, 100% 30px, 
    100% calc(100% - 30px), calc(100% - 30px) 100%, 
    30px 100%, 0 calc(100% - 30px)
  );
  position: relative;
  padding: 60px 40px;
}

/* HUD Corner Decorators */
body.futuristic .tab::before {
  content: "((placeholder))-OS // v2.0.4";
  position: absolute;
  top: 10px; right: 40px;
  font-family: monospace;
  font-size: 10px;
  color: var(--primary);
  opacity: 0.5;
}

body.futuristic h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 0 8px var(--primary-glow);
  margin-bottom: 40px;
}

body.futuristic .option {
  background: rgba(16, 185, 129, 0.02);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #cbd5e1;
  border-radius: 0;
  clip-path: polygon(0 15px, 15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  font-weight: 500;
  transition: all 0.2s ease;
}

body.futuristic .option:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}

body.futuristic input:checked + .option {
  background: var(--primary);
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 30px var(--primary);
}

body.futuristic .step {
  border-radius: 0;
  height: 2px;
  background: rgba(16, 185, 129, 0.1);
}

body.futuristic .step.active {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
  height: 4px;
}

body.futuristic .top #countdown {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 15px var(--primary-glow);
}

body.futuristic #countdown-number {
  color: var(--primary);
  font-family: monospace;
  font-weight: 900;
  text-shadow: 0 0 5px var(--primary);
}

body.futuristic .btn-restart, body.futuristic #prevBtn {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  border-radius: 0;
}

body.futuristic .btn-restart:hover, body.futuristic #prevBtn:hover {
  border-color: #f8fafc;
  color: #f8fafc;
}

body.futuristic #nextBtn {
  border-radius: 0;
  background: var(--primary);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

@media (max-width: 768px) {
  .top { padding: 20px; }
  .tab { padding: 30px 20px; }
  h1 { font-size: 1.5rem; }
  .faces img { width: 80px; height: 80px; }
  .option { min-width: 100%; }
}

/* --- EMOTIONAL MICRO-INTERACTIONS --- */
.feedback-good { animation: glowGreen 1s ease; }
.feedback-neutral { animation: glowYellow 1s ease; }
.feedback-bad { animation: glowRed 1s ease; }

@keyframes glowGreen {
  0% { box-shadow: inset 0 0 0px #10b981; }
  50% { box-shadow: inset 0 0 100px rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.1); }
  100% { box-shadow: inset 0 0 0px #10b981; }
}

@keyframes glowYellow {
  0% { box-shadow: inset 0 0 0px #f59e0b; }
  50% { box-shadow: inset 0 0 100px rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); }
  100% { box-shadow: inset 0 0 0px #f59e0b; }
}

@keyframes glowRed {
  0% { box-shadow: inset 0 0 0px #ef4444; }
  50% { box-shadow: inset 0 0 100px rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.1); }
  100% { box-shadow: inset 0 0 0px #ef4444; }
}

/* --- LANGUAGE SWITCHER UI --- */
.lang-switcher {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 10px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.lang-btn.active {
  border-color: var(--primary);
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--primary);
}

.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* --- LUXURY THEME OVERRIDE --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

body.luxury {
  --bg-gradient: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
  --primary: #c5a059; /* Champagne Gold */
  --primary-hover: #b38f4d;
  --glass: rgba(255, 255, 255, 0.85);
  --text-main: #1a1a1a;
  --text-muted: #707070;
  --radius: 12px;
  background-color: #fdfcfb;
}

body.luxury h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 40px;
}

body.luxury .tab {
  border: none;
  background: white;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
  padding: 80px 60px;
  border-radius: 4px;
  position: relative;
}

body.luxury .tab::after {
  content: "";
  position: absolute;
  top: 15px; left: 15px; right: 15px; bottom: 15px;
  border: 1px solid rgba(197, 160, 89, 0.2);
  pointer-events: none;
}

body.luxury .option {
  background: white;
  border: 1px solid #e5e5e5;
  color: #4a4a4a;
  border-radius: 2px;
  font-family: inherit;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  min-height: 100px;
  transition: all 0.4s ease;
}

body.luxury .option:hover {
  border-color: var(--primary);
  background: #fafafa;
}

body.luxury input:checked + .option {
  background: #1a1a1a;
  color: var(--primary);
  border-color: #1a1a1a;
}

body.luxury .step {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  background: transparent;
}

body.luxury .step.active {
  background: var(--primary);
  transform: scale(1.2);
}

body.luxury #nextBtn {
  background: #1a1a1a;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  border-radius: 0;
  padding: 16px 40px;
}

body.luxury #nextBtn:hover {
  background: #333;
}

body.luxury .top #countdown {
  background: transparent;
  width: 50px;
  height: 50px;
  border: 1px solid #e5e5e5;
  box-shadow: none;
}

body.luxury #countdown-number {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  color: #1a1a1a;
}

