/* NeuroDisney DDS — Bucket.io-style modal on Disney illustration */

html, body { height: 100%; }
body { margin: 0; }

.dds-page {
  min-height: 100vh;
  position: relative;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Background illustration — fills viewport, centered, anchored bottom */
.dds-bg {
  position: fixed;
  inset: 0;
  background-image: url('/wp-content/uploads/2026/05/bucket-background-spark-family.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark wash so the modal pops */
.dds-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 50, 70, 0.55);
  z-index: 1;
}

/* Modal card */
.dds-modal {
  position: relative;
  z-index: 2;
  background: #ffffff;
  width: 100%;
  max-width: 760px;
  border-radius: 12px;
  padding: 40px 48px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  .dds-modal { padding: 28px 20px 24px; max-width: calc(100% - 16px); }
}

/* Close X */
.dds-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #777;
  cursor: pointer;
  padding: 4px 10px;
  font-family: inherit;
  z-index: 1;
}
.dds-close:hover { color: #223759; }

/* Progress bar (top) */
.dds-progress {
  margin: 0 0 28px 0;
}
.dds-progress-track {
  position: relative;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-right: 32px;  /* room for the close X */
}
.dds-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: #5d8bb3;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.dds-progress-badge {
  position: absolute;
  top: -8px;
  left: 0%;
  transform: translateX(-50%);
  background: #5d8bb3;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  transition: left 0.3s ease;
}

/* Loading */
.dds-loading {
  text-align: center;
  padding: 32px 0;
  color: #888;
  font-style: italic;
}

/* Question step */
.dds-step { animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dds-step-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: #222;
  margin: 0 0 6px 0;
  line-height: 1.45;
  white-space: pre-line;
}
.dds-step-title strong { font-weight: 700; }

.dds-step-sub {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #888;
  margin: 0 0 22px 0;
  line-height: 1.4;
}

/* Question options — checkbox / radio rows */
.dds-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 28px 0;
}

.dds-option {
  display: flex;
  align-items: center;
  padding: 10px 4px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
  color: #333;
  border-radius: 4px;
  transition: background 0.12s;
}
.dds-option:hover { background: #f6f8fb; }

.dds-option input {
  margin: 0 12px 0 0;
  accent-color: #5d8bb3;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Free-text question */
.dds-textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 24px;
  box-sizing: border-box;
}
.dds-textarea:focus { border-color: #5d8bb3; }

/* Next button (steel blue when active) */
.dds-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.dds-btn-next {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 36px;
  background: #d9dde3;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  text-transform: uppercase;
  min-width: 120px;
}
.dds-btn-next.is-ready,
.dds-btn-next:not(:disabled) { background: #5d8bb3; }
.dds-btn-next:not(:disabled):hover { background: #406e95; }
.dds-btn-next:disabled { cursor: not-allowed; }

/* Final email/phone form */
.dds-final-title {
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 2rem;
  color: #1d2a44;
  text-align: center;
  margin: 0 0 10px 0;
  line-height: 1.1;
}
@media (max-width: 600px) {
  .dds-final-title { font-size: 1.4rem; }
}

.dds-final-sub {
  text-align: center;
  font-size: 1rem;
  color: #444;
  margin: 0 0 24px 0;
}

.dds-email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dds-input {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid #c4c4c4;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  width: 100%;
}
.dds-input:focus { border-color: #5d8bb3; }

.dds-phone-blurb {
  font-style: italic;
  color: #888;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 8px 0 4px 0;
}

.dds-submit {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #fcc742;
  color: #1d2a44;
  border: 0;
  padding: 18px 24px;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 8px;
  transition: all 0.15s;
  text-transform: uppercase;
}
.dds-submit:hover:not(:disabled) {
  background: #f5b81f;
  transform: translateY(-1px);
}
.dds-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.dds-error {
  color: #b8242a;
  font-size: 0.9rem;
  margin: 10px 0 0 0;
  text-align: center;
}

/* Thank-you screen */
.dds-thanks { text-align: center; padding: 16px 0 8px; }
.dds-thanks-title {
  font-family: 'Alfa Slab One', serif;
  font-weight: 400;
  font-size: 1.8rem;
  color: #1d2a44;
  line-height: 1.2;
  margin: 0 0 16px 0;
}
.dds-thanks-body {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}
