:root {
  /* === MATCH LANDING PAGE === */
  --color-bg: linear-gradient(
    135deg,
    #689BC4 60%,
    #4682B4 80%,
    #3B6D97 100%
  );

  --color-surface: rgba(10, 25, 45, 0.45);
  --color-glass: rgba(255, 255, 255, 0.06);

  --color-primary: #ffffff;
  --color-secondary: #dbe7f3;
  --color-accent: #ffffff;

  --color-text: #ffffff;
  --color-text-secondary: #c9c9c9;

  --color-border: rgba(255,255,255,0.18);
  --color-success: #6BBF59;
  --color-error: #ff6b6b;
}

    * { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI','Inter',Roboto,sans-serif;
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;

  background: var(--color-bg);
  background-size: 600% 600%;
  animation: bgShift 22s ease infinite;
}

    @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    #particles {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      z-index: 0;
      pointer-events: none;
    }

.form-container {
  background: var(--color-surface);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 48px;
  max-width: 600px;
  width: 90%;

  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 26px 60px rgba(0,0,0,0.55);
}

    .question-number { color: var(--color-secondary); font-size:16px; font-weight:500; margin-bottom:12px; }
    .question-text { color: var(--color-text); font-size:28px; font-weight:600; margin-bottom:32px; }

    .input-container { position: relative; margin-bottom: 32px; }

.answer-input,
.custom-select {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-text);
}

.answer-input:focus,
.custom-select.open {
  border-color: #ffffff;
  box-shadow: 0 0 18px rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.status-text {
  font-size:22px;
  font-weight:600;
  color: var(--color-text);
  margin-bottom:20px;
}

.go-btn {
  display:inline-block;
  margin-top:20px;
  padding:12px 24px;
  border-radius:10px;
  background: var(--color-primary);
  color:#1C1C1E;
  font-weight:600;
  text-decoration:none;
  transition: all .2s ease;
}
.go-btn:hover { background: var(--color-accent); }

    .custom-select.open {
      border-color: var(--color-primary);
      box-shadow: 0 0 12px rgba(227,193,111,.4);
      background: rgba(255,255,255,0.08);
      transform: scale(1.02);
    }
    .completed-form {
      text-align: center;
      padding: 40px;
    }

    .completed-form .checkmark {
      width: 80px;
      height: 80px;
      margin: 0 auto 20px;
    }
    .completed-form .checkmark circle {
      fill: none;
      stroke-width: 4;
    }
    .completed-form .checkmark path {
      fill: none;
      stroke-width: 4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .completed-form .thank-you {
      font-size: 28px;
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: 8px;
    }

    .completed-form p {
      font-size: 16px;
      color: var(--color-text-secondary);
    }

    .custom-select .selected {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .custom-select .arrow {
        border: solid var(--color-primary);
      border-width: 0 2px 2px 0;
      padding: 4px;
      transform: rotate(45deg);
      transition: transform .3s;
    }
    .custom-select.open .arrow { transform: rotate(-135deg); }

    .custom-select .options {
      display: none;
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: 12px;
      list-style: none;
      box-shadow: 0 8px 20px rgba(0,0,0,.4);
      max-height: 240px;
      overflow-y: auto;
      z-index: 20;
    }
    .custom-select.open .options { display: block; }
    .custom-select .options li {
      padding: 12px;
      transition: background .2s;
      color: var(--color-text);
    }
    .custom-select .options li:hover {
      background: rgba(227,193,111,0.15);
    }

    .answer-label {
      position: absolute;
      top: 16px;
      left: 16px;
      font-size: 16px;
      color: var(--color-text-secondary);
      pointer-events: none;
      transition: all .25s ease;
    }
    .answer-input:focus + .answer-label,
    .answer-input:not(:placeholder-shown) + .answer-label,
    .custom-select.filled + .answer-label,
    .custom-select.open + .answer-label {
      top: -8px;
      left: 12px;
      font-size: 13px;
      color: var(--color-primary);
      background: var(--color-surface);
      padding: 0 6px;
      border-radius: 6px;
    }
    .custom-select + .answer-label { display: none; }
    .custom-select.filled + .answer-label,
    .custom-select.open + .answer-label { display: inline-block; }

    .button-container { display:flex; align-items:center; gap:16px; }
   .submit-btn,
.go-btn {
  background: #ffffff;
  color: #0b0b0b;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.submit-btn:hover,
.go-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.5);
}



    .enter-hint { color: var(--color-text-secondary); font-size: 14px; }
    .progress-bar { position:absolute; bottom:32px; left:50%; transform:translateX(-50%); width:240px; height:3px; background: var(--color-border); border-radius:2px; overflow:hidden; }
    .progress-fill { height:100%; background: var(--color-primary); transition:width .6s cubic-bezier(.4,0,.2,1); }

    .validation-message { color: var(--color-error); font-size:14px; margin-top:8px; opacity:0; transition:opacity .3s ease; }
    .validation-message.show { opacity:1; }
    /* ===== PATCH: restore input + button structure, keep new colors ===== */

/* Inputs */
.answer-input{
  width: 100%;
  font-size: 18px;
  padding: 16px 14px;
  outline: none;
  border-radius: 12px;

  background: rgba(255,255,255,0.08);
  border: 2px solid var(--color-border);
  color: var(--color-text);

  transition: border-color .3s, box-shadow .3s, background .3s, transform .2s;
}

.answer-input::placeholder{
  color: rgba(219,231,243,0.7); /* matches landing page vibe */
}

/* Focus glow like landing */
.answer-input:focus{
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 18px rgba(255,255,255,0.25);
}

/* Submit button */
.submit-btn{
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;

  background: var(--color-primary);
  color: #0b0b0b;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);

  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.submit-btn:hover{
  filter: brightness(1.05);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 36px rgba(0,0,0,.5);
}

.submit-btn:active{
  transform: translateY(0) scale(0.99);
}
