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

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

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: #fff;
  min-height: 100dvh;
  min-height: 100vh;
  overflow-x: hidden;
  background: #0a0f0a;
  background-image: url('assets/background.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* ===== OVERLAY ===== */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 15, 5, 0.88) 0%,
    rgba(5, 15, 5, 0.72) 40%,
    rgba(5, 15, 5, 0.45) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* ===== APP CONTAINER ===== */
#app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.75rem;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  overflow-y: auto;
}

/* ===== HONEYPOT ===== */
#honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* ===== PROGRESS BAR ===== */
.progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.6rem 1rem 0.5rem;
  background: rgba(5, 15, 5, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
}

.progress-wrap.visible {
  display: block;
}

.progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.35rem;
  text-align: center;
}

.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C9A84C, #E8D48B);
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== STEP TRANSITIONS ===== */
.step {
  display: none;
  width: 100%;
  max-width: 600px;
  animation: fadeSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.step.active {
  display: block;
}

.step.slide-out-left {
  animation: fadeSlideOutLeft 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.step.slide-out-right {
  animation: fadeSlideOutRight 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideInReverse {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-30px); }
}

@keyframes fadeSlideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}

/* ===== CARD ===== */
.card {
  background: rgba(10, 20, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 1.25rem;
  padding: 1.5rem 1.15rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
}

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

/* ===== INTRO CARD ===== */
.card--intro h1 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.card--intro .highlight {
  color: #C9A84C;
}

.card--intro .lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: #E8D48B;
  margin-bottom: 1rem;
}

.card--intro .divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #C9A84C, transparent);
  margin: 1.25rem 0;
}

.card--intro h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card--intro p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.card--intro .small {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  border-left: 3px solid #C9A84C;
  padding-left: 0.75rem;
  margin: 1rem 0;
}

.card--intro .time-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #C9A84C;
  margin-bottom: 1.25rem;
}

/* ===== QUESTION LABEL ===== */
.question-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: #fff;
}

/* ===== INPUT ===== */
.input {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.input:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.input.has-error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

/* ===== PHONE WITH COUNTRY SELECT ===== */
.phone-wrap {
  display: flex;
  position: relative;
}

.country-select {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-right: none;
  border-radius: 0.75rem 0 0 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.country-select:hover {
  background: rgba(255, 255, 255, 0.15);
}

.country-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.country-code {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.country-arrow {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 0.1rem;
}

.country-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.35rem;
  background: rgba(15, 25, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 0.6rem;
  overflow: hidden;
  z-index: 50;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.country-dropdown.open {
  display: block;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.country-option:hover {
  background: rgba(201, 168, 76, 0.15);
}

.country-option-code {
  margin-left: auto;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.input--phone {
  border-radius: 0 0.75rem 0.75rem 0;
  flex: 1;
  min-width: 0;
}

/* ===== ERROR MESSAGE ===== */
.error-msg {
  min-height: 1.25rem;
  font-size: 0.8rem;
  color: #ff6b6b;
  margin-top: 0.4rem;
  transition: opacity 0.2s;
}

/* ===== OPTIONS (multiple choice) ===== */
.options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.opt-btn {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}

.opt-btn:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.4);
}

.opt-btn:active {
  transform: scale(0.98);
}

.opt-btn.selected {
  background: rgba(201, 168, 76, 0.18);
  border-color: #C9A84C;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.25);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: linear-gradient(135deg, #C9A84C, #B8962F);
  color: #0a0f0a;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #E8D48B, #C9A84C);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.45);
  transform: translateY(-1px);
}

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

.btn--back {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.85rem 1rem;
}

.btn--back:hover {
  color: #fff;
}

.btn--full {
  width: 100%;
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  border-radius: 0.85rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

.btn--whatsapp svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  gap: 0.75rem;
}

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #C9A84C;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== FINAL CARD / AGENDA ===== */
.card--final {
  text-align: center;
  padding: 1.25rem 1rem;
}

.check-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A84C, #B8962F);
  color: #0a0f0a;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.card--final h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card--final > p,
.card--final .final-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

/* ===== AGENDA LIST (vertical, 100% responsive) ===== */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.agenda-day {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
}

.agenda-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.5rem;
  flex-shrink: 0;
}

.agenda-day-name {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.agenda-day-date {
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.agenda-day-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.agenda-day-slot {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.35rem;
}

.agenda-day-time {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.agenda-day-badge {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.08rem 0.28rem;
  border-radius: 0.75rem;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.agenda-notice {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 0.65rem;
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.agenda-notice p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== EXTRA-SMALL MOBILE (320px) ===== */
@media (max-width: 359px) {
  #app {
    padding: 0.5rem;
    padding-top: 3rem;
    padding-bottom: 1rem;
  }

  .card {
    padding: 1.15rem 0.85rem;
    border-radius: 1rem;
  }

  .card--final {
    padding: 1rem 0.7rem;
  }

  .card--intro h1 {
    font-size: 1.1rem;
  }

  .card--intro .lead {
    font-size: 0.9rem;
  }

  .card--intro p {
    font-size: 0.82rem;
  }

  .question-label {
    font-size: 0.92rem;
    margin-bottom: 1rem;
  }

  .opt-btn {
    padding: 0.7rem 0.75rem;
    font-size: 0.82rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .btn--whatsapp {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }

  .agenda-notice { padding: 0.65rem; }
  .agenda-notice p { font-size: 0.78rem; }
}

/* ===== SMALL MOBILE (360-413px) ===== */
@media (min-width: 360px) and (max-width: 413px) {
  .card--intro h1 {
    font-size: 1.2rem;
  }

  .question-label {
    font-size: 0.95rem;
  }
}

/* ===== MEDIUM MOBILE (414px+) ===== */
@media (min-width: 414px) and (max-width: 767px) {
  #app {
    padding: 0.85rem;
    padding-top: 3.5rem;
  }

  .card {
    padding: 1.75rem 1.35rem;
  }

  .card--final {
    padding: 1.5rem 1.15rem;
  }

}

/* ===== TABLET / DESKTOP ===== */
@media (min-width: 768px) {
  body {
    background-position: right center;
  }

  #app {
    align-items: center;
    justify-content: flex-start;
    padding-left: 6vw;
    padding-top: 4rem;
  }

  .card {
    padding: 2.5rem 2rem;
  }

  .card--final {
    padding: 2rem 1.75rem;
  }

  .card--intro h1 {
    font-size: 1.6rem;
  }

  .question-label {
    font-size: 1.1rem;
  }

  .check-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .card--final h2 {
    font-size: 1.3rem;
  }

  .btn--whatsapp {
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
  }

  .agenda-notice p { font-size: 0.9rem; }
}

@media (min-width: 1200px) {
  #app {
    padding-left: 10vw;
  }
}
