/* =============================================================
   index.css — Home Page + Input Form Styles
   ============================================================= */

/* ── Hero Section ── */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-xl);
  min-height: min(100svh, 720px);
  justify-content: center;
}

.hero-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 0 18px rgba(45, 212, 191, 0.28)) drop-shadow(0 0 18px rgba(157, 78, 221, 0.42));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .hero-title { font-size: var(--text-4xl); }
}

.hero-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0;
  line-height: 1.7;
}

/* ── Feature Icons ── */
.feature-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  justify-content: center;
  width: 100%;
  margin-bottom: var(--space-xl);
}

.feature-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: var(--space-sm);
  min-width: 0;
  min-height: 92px;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.feature-icon:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

@media (hover: hover) {
  .feature-icon:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-strong);
  }
}

.feature-icon__emoji {
  font-size: 1.6rem;
}

.feature-icon__label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

/* ── Input Section ── */
.input-section {
  padding: var(--space-lg) 0 var(--space-3xl);
  animation: fadeInUp var(--transition-slow) ease both;
}

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

.input-section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.input-section__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-light);
  margin-bottom: var(--space-sm);
}

.input-section__subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Reading Form ── */
.reading-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .reading-form { padding: var(--space-2xl); }
}

/* ── Form Fields ── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.required-mark {
  color: var(--color-error);
  margin-left: 2px;
}

.optional-mark {
  color: var(--text-muted);
  font-weight: 400;
  font-size: var(--text-xs);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.form-hint--inline {
  display: block;
  font-weight: 400;
  margin-top: 2px;
}

.form-input,
.form-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-myanmar);
  font-size: var(--text-base);
  padding: 12px var(--space-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  min-height: 48px;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
}

.form-input.error,
.form-select.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form-input:disabled,
.form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Select arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b5a8a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: #1a0533;
  color: var(--text-primary);
}

/* ── Date of Birth Fieldset ── */
.form-fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-legend {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-sm);
}

.dob-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs);
}

.form-field--dob:last-child {
  grid-column: 1 / -1;
}

@media (min-width: 430px) {
  .dob-fields {
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: var(--space-sm);
  }

  .form-field--dob:last-child {
    grid-column: auto;
  }
}

.form-field--dob {
  gap: var(--space-xs);
}

.form-input--dob {
  text-align: center;
  padding: 12px var(--space-sm);
}

.error-msg--combo {
  margin-top: var(--space-xs);
}

@media (min-width: 640px) {
  .hero-section {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

  .hero-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
  }

  .feature-icons {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
  }

  .feature-icon {
    padding: var(--space-md) var(--space-lg);
    min-width: 100px;
    min-height: 104px;
  }

  .feature-icon__emoji {
    font-size: 2rem;
  }

  .input-section__title {
    font-size: var(--text-2xl);
  }

  .input-section__subtitle {
    font-size: var(--text-base);
  }
}
