/* Onboarding Page Styles */

.onboarding-container {
  min-height: 100vh;
  background-color: #FEFDFB;
  padding: 2rem 1rem;
}

.onboarding-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.onboarding-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(187, 174, 155, 0.2);
}

.onboarding-section:last-child {
  border-bottom: none;
}

.onboarding-title {
  font-size: 2rem;
  font-weight: 300;
  color: #000000;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1rem;
  color: #000000;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

/* Plan Context Card */
.plan-context-card {
  background-color: #ffffff;
  border: 1px solid rgba(187, 174, 155, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1rem;
}

.plan-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-label {
  font-weight: 600;
  color: #000000;
}

.plan-value {
  color: #000000;
  opacity: 0.8;
}

/* Form Styles */
.onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;
}

.form-label.required::after {
  content: ' *';
  color: #BBAE9B;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(187, 174, 155, 0.3);
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  color: #000000;
  background-color: #ffffff;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #BBAE9B;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-helper {
  font-size: 0.875rem;
  color: #000000;
  opacity: 0.6;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

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

.form-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-col-full {
  flex: 1 1 100%;
}

/* Form Sections */
.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(187, 174, 155, 0.2);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 1.5rem;
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #BBAE9B;
}

/* Invalid section highlighting */
.form-section.section-invalid,
.onboarding-section.section-invalid {
  background-color: rgba(220, 38, 38, 0.05);
  border: 2px solid #dc2626;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  animation: pulseHighlight 0.5s ease-in-out;
}

.form-section.section-invalid .form-section-title,
.onboarding-section.section-invalid .section-title {
  color: #dc2626;
  border-bottom-color: #dc2626;
}

@keyframes pulseHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #000000;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #000000;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Error Messages */
.error-message {
  font-size: 0.875rem;
  color: #dc2626;
  display: none;
}

.form-input:invalid:not(:placeholder-shown) ~ .error-message,
.form-select:invalid:not(:placeholder-shown) ~ .error-message,
.form-textarea:invalid:not(:placeholder-shown) ~ .error-message {
  display: block;
}

.form-errors {
  background-color: #fee2e2;
  border: 1px solid #dc2626;
  color: #991b1b;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* Optional Section */
.optional-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed rgba(187, 174, 155, 0.3);
}

.optional-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

/* Calendar Embed */
.calendar-embed {
  margin: 2rem 0;
  border: 1px solid rgba(187, 174, 155, 0.3);
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9f9f9;
  padding: 2rem;
  text-align: center;
}

.calendar-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #4285f4;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: background-color 0.2s ease;
}

.calendar-button:hover {
  background-color: #357ae8;
}

.calendar-button:active {
  background-color: #2d6bc7;
}

.calendar-placeholder {
  padding: 3rem;
  text-align: center;
  color: #000000;
  opacity: 0.6;
}

/* Terms Content */
.terms-content {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.terms-content p {
  color: #000000;
  margin-bottom: 0.5rem;
}

/* Button */
.btn-primary {
  background-color: #BBAE9B;
  color: #000000;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

.btn-primary:hover:not(:disabled) {
  background-color: #a99d8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
  background-color: #e5e5e5;
  color: #999999;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

/* Template picker */
.template-selector-section {
  margin-bottom: 2.5rem;
}

.template-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.template-picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border: 2px solid rgba(187, 174, 155, 0.3);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.template-picker-card:hover {
  border-color: rgba(187, 174, 155, 0.6);
}

.template-picker-card.template-picker-card-selected,
.template-picker-card[aria-pressed="true"] {
  border-color: #BBAE9B;
  box-shadow: 0 0 0 2px rgba(187, 174, 155, 0.3);
}

.template-picker-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  background: #f5f5f5;
}

.template-picker-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000000;
}

@media (max-width: 768px) {
  .template-picker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .onboarding-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .plan-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.75rem;
  }
}


