/* Plan form page styles */

.page-plan {
  background: var(--color-bg, #0a0a0f);
  color: var(--color-text, #f0f0f0);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.plan-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 80px;
}

.plan-container {
  width: 100%;
  max-width: 600px;
}

.plan-header {
  margin-bottom: 40px;
}

.plan-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #e0f7f7 0%, #a8edea 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: rgba(240, 240, 240, 0.6);
  line-height: 1.6;
  margin: 0;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ff8080;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 28px;
  font-family: 'DM Sans', sans-serif;
}

.plan-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(240, 240, 240, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #f0f0f0;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: rgba(240, 240, 240, 0.3);
}

.form-input:focus {
  border-color: rgba(168, 237, 234, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

/* Date input color fix */
.form-input[type="date"] {
  color-scheme: dark;
}

/* Field validation errors */
.field-error {
  display: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #ff8080;
  margin-top: 4px;
}

/* Pill group invalid state — make it impossible to miss */
.pill-group.invalid {
  background: rgba(255, 80, 80, 0.08);
  outline: 2px solid rgba(255, 80, 80, 0.6);
  outline-offset: 4px;
  border-radius: 12px;
}

/* Pill radio group */
.pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.pill input[type="radio"] {
  /* Use opacity+clip instead of width:0/height:0 for better touch hit on mobile */
  opacity: 0;
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

.pill span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.65);
  transition: all 0.15s;
  user-select: none;
}

.pill:hover span {
  border-color: rgba(168, 237, 234, 0.4);
  color: rgba(240, 240, 240, 0.9);
}

.pill input:checked + span {
  background: rgba(168, 237, 234, 0.15);
  border-color: rgba(168, 237, 234, 0.7);
  color: #a8edea;
}

/* Submit button */
.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hidden {
  display: none !important;
}

.spin {
  animation: spin 1s linear infinite;
}

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

/* Reuse btn-primary from theme.css; define fallback if not present */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a8edea, #c084fc);
  color: #0a0a0f;
  border: none;
  border-radius: 12px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Trust bar */
.plan-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(240, 240, 240, 0.55);
  margin-bottom: 28px;
}

.plan-trust-bar strong {
  color: #a8edea;
  font-weight: 600;
}

.plan-trust-bar svg {
  color: #a8edea;
  flex-shrink: 0;
}

/* Testimonials strip on plan page */
.plan-testimonials {
  margin-bottom: 40px;
}

.plan-testimonials .testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 800px) {
  .plan-testimonials .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* LP-landing prefill: when /plan is opened from /lp/festival, swap the H1 verb
   to "Tell us about your festival." and animate the title accent so the user
   feels they've landed on a festival-tuned flow, not a generic event form. */
.lp-festival-mode .plan-title {
  background: linear-gradient(135deg, #e0f7f7 0%, #a8edea 50%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
