/*
Theme Name: Astra Child - Prescreening
Template: astra
Version: 1.0.28
Description: Child theme for U.S. Hunger prescreening form
*/

@import url("../../astra/style.css");

/* Prescreening form layout */
.prescreening-wrapper {
  padding: max(10vh, 2rem) max(5vw, 1rem); /* Use max() for minimum fallback */
}

.prescreening-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Progress indicator */
.progress-section {
  margin-bottom: 2rem;
}

.progress-indicator {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #007cba, #005a87);
  transition: width 0.3s ease;
}

.step-counter {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Form steps - Force hiding */
.multi-step-form .form-step {
  display: none;
}
.multi-step-form .form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Form styling */
.multi-step-form h2 {
  margin-bottom: 1rem;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.multi-step-form select,
.multi-step-form input[type="text"],
.multi-step-form input[type="email"] {
  width: 100%;
  padding: 2px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.multi-step-form select:focus,
.multi-step-form input:focus {
  border-color: #007cba;
  outline: none;
}

.multi-step-form label {
  display: block;
  margin-bottom: 1rem;
  cursor: pointer;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.multi-step-form label:hover {
  border-color: #007cba;
  background: #f8f9fa;
}

.multi-step-form input[type="radio"] {
  margin-right: 12px;
}

/* Navigation buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.form-navigation button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#next-btn,
#submit-btn {
  background: #007cba;
  color: white;
}

#prev-btn {
  background: #f0f0f0;
  color: #333;
}

.form-navigation button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#guardian-section {
  transition: all 0.3s ease;
  margin-top: 2rem;
}

#guardian-section h3 {
  color: #333;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* ==========================================
   Address Validation Feedback
   ========================================== */
.address-validation-feedback {
  margin-top: 8px !important;
  padding: 8px 10px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  border: 2px solid transparent !important;
  font-weight: 700 !important;
}

.address-validation-feedback.error {
  background: #ffe5e5 !important;
  color: #ff0000 !important;
  border: 2px solid #ff0000 !important;
}

.address-validation-feedback.error,
.address-validation-feedback.error * {
  color: #ff0000 !important;
}
}

.address-validation-feedback.info {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.address-validation-feedback.success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #10b981;
}

.address-choice-btn {
  padding: 8px 12px;
  border: 1px solid #999;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.address-choice-btn:hover {
  background: #f5f5f5;
}

.use-suggested-btn {
  border-color: #065f46;
  color: #065f46;
}

.keep-entered-btn {
  border-color: #666;
  color: #333;
}