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

:root {
  --gold: #C9A84C;
  --gold-light: #E2C97E;
  --gold-dark: #A68A3E;
  --black: #0A0A0A;
  --black-light: #1A1A1A;
  --black-card: #141414;
  --white: #FFFFFF;
  --white-soft: #F5F5F5;
  --gray: #888888;
  --gray-light: #CCCCCC;
  --gray-dark: #333333;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* ===== SIMULATION WRAPPER ===== */
.sim-wrapper {
  width: 100%; max-width: 580px; padding: 2rem;
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
}

.sim-header {
  text-align: center; margin-bottom: 2rem;
}
.sim-header .logo img { height: 60px; margin-bottom: 1.5rem; }
.sim-header .logo a { text-decoration: none; }

/* Progress Bar */
.progress-bar {
  width: 100%; height: 6px; background: var(--gray-dark);
  border-radius: 10px; margin-bottom: 0.8rem; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 10px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.step-indicator {
  text-align: center; color: var(--gray); font-size: 0.85rem; margin-bottom: 2rem;
}
.step-indicator span { color: var(--gold); font-weight: 600; }

/* ===== FORM STEPS ===== */
.form-steps { position: relative; overflow: hidden; }

.form-step {
  display: none; flex-direction: column; align-items: center;
  animation: none;
}
.form-step.active {
  display: flex;
  animation: slideIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}
.form-step.exit-left {
  display: flex;
  animation: slideOutLeft 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
.form-step.exit-right {
  display: flex;
  animation: slideOutRight 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInReverse {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-60px); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(60px); }
}

.step-emoji {
  font-size: 3rem; margin-bottom: 1rem;
  animation: bounceIn 0.6s ease 0.2s both;
}
@keyframes bounceIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.step-question {
  font-family: var(--font-heading); font-size: 1.6rem;
  text-align: center; margin-bottom: 2rem; line-height: 1.3;
}

/* ===== FORM INPUTS ===== */
.sim-input {
  width: 100%; max-width: 400px; padding: 1rem 1.3rem;
  background: var(--black-card); border: 2px solid var(--gray-dark);
  border-radius: 12px; color: var(--white); font-family: var(--font-body);
  font-size: 1.1rem; outline: none; transition: var(--transition);
  text-align: center;
}
.sim-input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
}
.sim-input::placeholder { color: var(--gray); }

.sim-select {
  width: 100%; max-width: 400px; padding: 1rem 1.3rem;
  background: var(--black-card); border: 2px solid var(--gray-dark);
  border-radius: 12px; color: var(--white); font-family: var(--font-body);
  font-size: 1.05rem; outline: none; transition: var(--transition);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A84C' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
}
.sim-select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.15); }
.sim-select option { background: var(--black-card); color: var(--white); }

/* Yes/No buttons */
.option-buttons { display: flex; gap: 1rem; width: 100%; max-width: 400px; }
.option-btn {
  flex: 1; padding: 1rem; border: 2px solid var(--gray-dark);
  background: var(--black-card); border-radius: 12px;
  color: var(--white); font-family: var(--font-body); font-size: 1.05rem;
  cursor: pointer; transition: var(--transition); font-weight: 500;
}
.option-btn:hover { border-color: var(--gold); background: rgba(201,168,76,0.08); }
.option-btn.selected {
  border-color: var(--gold); background: rgba(201,168,76,0.15);
  color: var(--gold); font-weight: 700;
}

/* Sub-field animation */
.sub-field {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  width: 100%; max-width: 400px; margin-top: 0;
}
.sub-field.show {
  max-height: 120px; opacity: 1; margin-top: 1rem;
}

/* ===== NAVIGATION BUTTONS ===== */
.step-nav {
  display: flex; gap: 1rem; margin-top: 2rem; width: 100%; max-width: 400px;
  justify-content: center;
}
.btn-next, .btn-prev, .btn-submit {
  padding: 0.9rem 2.5rem; border: none; border-radius: 50px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); letter-spacing: 0.5px;
}
.btn-next {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black); flex: 1;
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}
.btn-next:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(201,168,76,0.4); }
.btn-prev {
  background: transparent; border: 1px solid var(--gray-dark);
  color: var(--gray-light);
}
.btn-prev:hover { border-color: var(--gold); color: var(--gold); }
.btn-submit {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black); flex: 1;
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(201,168,76,0.4); }

/* ===== SUCCESS SCREEN ===== */
.success-screen {
  display: none; flex-direction: column; align-items: center;
  text-align: center; padding: 2rem 0;
}
.success-screen.active { display: flex; animation: slideIn 0.5s ease forwards; }
.success-icon {
  font-size: 4rem; margin-bottom: 1.5rem;
  animation: bounceIn 0.6s ease 0.2s both;
}
.success-screen h2 {
  font-family: var(--font-heading); font-size: 2rem; margin-bottom: 1rem;
  color: var(--gold);
}
.success-screen p { color: var(--gray-light); font-size: 1.05rem; max-width: 400px; line-height: 1.7; }
.btn-whatsapp-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2rem; padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff; border-radius: 50px; border: none;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  letter-spacing: 0.3px;
}
.btn-whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(37,211,102,0.45);
}

.btn-home {
  margin-top: 2rem; padding: 0.9rem 2.5rem; border: 1px solid var(--gold);
  background: transparent; color: var(--gold); border-radius: 50px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-home:hover { background: rgba(201,168,76,0.1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .sim-wrapper { padding: 1.5rem; }
  .step-question { font-size: 1.3rem; }
  .sim-input, .sim-select { font-size: 1rem; }
}
