:root {
  --dream-bg: #0a0a0c;
  --dream-card-bg: #141418;
  --dream-primary: #8a2be2;
  --dream-secondary: #4b0082;
  --dream-accent: #00d4ff;
  --dream-text: #e0e0e0;
  --dream-text-muted: #a0a0a0;
  --dream-border: #2a2a30;
  --dream-glow: rgba(138, 43, 226, 0.2);
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--dream-bg);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
  color: var(--dream-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInDown 1s ease-out;
}

h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  margin: 0;
  background: linear-gradient(to right, #fff, var(--dream-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--dream-text-muted);
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.dream-form {
  background: var(--dream-card-bg);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--dream-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px var(--dream-glow);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.form-section {
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.label-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.question-number {
  font-family: var(--font-serif);
  color: var(--dream-primary);
  font-size: 1.2rem;
  margin-right: 1rem;
  opacity: 0.8;
}

label {
  display: block;
  font-weight: 500;
  font-size: 1.1rem;
}

.required {
  color: var(--dream-accent);
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--dream-border);
  border-radius: 12px;
  padding: 1rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--dream-primary);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 10px var(--dream-glow);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.helper-text {
  font-size: 0.85rem;
  color: var(--dream-text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Checkbox & Radio Styling */
.checkbox-group, .radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--dream-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--dream-text-muted);
}

.option-item input {
  margin-right: 12px;
  accent-color: var(--dream-primary);
}

/* Plan Selection */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.plan-card {
  border: 1px solid var(--dream-border);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-card:hover {
  border-color: var(--dream-primary);
  transform: translateY(-2px);
}

.plan-card.selected {
  border-color: var(--dream-accent);
  background: rgba(0, 212, 255, 0.05);
}

.plan-info h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--dream-accent);
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--dream-text-muted);
  margin-top: 0.25rem;
}

/* Submit Section */
.form-footer {
  margin-top: 4rem;
  text-align: center;
}

.btn-submit {
  background: linear-gradient(45deg, var(--dream-primary), var(--dream-secondary));
  color: white;
  border: none;
  padding: 1.2rem 4rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(138, 43, 226, 0.5);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Icons */
.placeholder-icon {
  width: 24px;
  height: 24px;
  color: var(--dream-primary);
}

@media (max-width: 600px) {
  .container { 
    padding: 2rem 1.25rem; 
    overflow-x: hidden;
  }
  
  header {
    margin-bottom: 2.5rem;
  }

  h1 { 
    font-size: 2.25rem; 
    line-height: 1.2;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .dream-form { 
    padding: 1.5rem; 
    border-radius: 16px;
  }

  .form-section {
    margin-bottom: 2rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .question-number {
    font-size: 1rem;
    margin-right: 0.75rem;
  }

  label {
    font-size: 1rem;
  }

  .plan-card {
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .plan-price {
    font-size: 1.25rem;
    align-self: flex-end;
  }

  .btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .form-footer .helper-text {
    margin-top: 1.5rem;
  }
}

@media (max-width: 375px) {
  h1 {
    font-size: 1.85rem;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .dream-form {
    padding: 1.25rem 1rem;
  }
  
  .plan-info h4 {
    font-size: 1.1rem;
  }
  
  .plan-desc {
    font-size: 0.85rem;
  }
}
