/* =============================================
   BIGELOW COOPERATIVE — APPLICATION PAGE
   application.css
   ============================================= */

/* =============================================
   MAIN LAYOUT
   ============================================= */

.app-body {
  padding: var(--sp-xl) 0 var(--sp-2xl);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

/* =============================================
   FORM CARD
   ============================================= */

.app-form-section {
  background: var(--white);
  border-radius: var(--r-2xl);
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(40, 40, 40, 0.06);
}

/* Section headings within the form */
.form-section-heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.form-section-heading .optional {
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--charcoal-light);
}

.form-section-heading .req {
  color: var(--terracotta);
  margin-left: 0.125rem;
}

.form-section-note {
  font-size: 0.875rem;
  color: var(--charcoal-mid);
  line-height: 1.6;
  margin-top: -0.75rem;
  margin-bottom: 1.25rem;
}

/* =============================================
   FORM FIELDS — APPLICATION ADDITIONS
   ============================================= */

/* date input */
.form-group input[type="date"] {
  cursor: pointer;
}

/* =============================================
   CHECKBOXES + RADIOS — APPLICATION ADDITIONS
   ============================================= */

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

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--charcoal);
  cursor: pointer;
  user-select: none;
}

.radio-label input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  cursor: pointer;
  accent-color: var(--terracotta);
  margin: 0;
}

/* =============================================
   PREFERRED SCHEDULE GRID
   ============================================= */

.schedule-days {
  display: flex;
  flex-direction: column;
}

.schedule-day-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(40, 40, 40, 0.08);
}

.schedule-day-row:last-child {
  border-bottom: none;
}

.schedule-choice-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
}

.schedule-choice-label .req {
  color: var(--terracotta);
  margin-left: 0.125rem;
}

.schedule-choice-group {
  margin-top: 1rem;
}

.schedule-day-label {
  min-width: 130px;
}

.schedule-day-name {
  font-weight: 500;
}

.schedule-time-opts {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.schedule-day-row.is-active .schedule-time-opts {
  display: flex;
}

/* =============================================
   APPLICATION FEE NOTE
   ============================================= */

.app-fee-note {
  background: var(--terracotta-wash);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--charcoal-mid);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* =============================================
   SIDEBAR
   ============================================= */

.app-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-block--fee {
  background: var(--terracotta-wash);
  border: 1px solid rgba(192, 90, 66, 0.15);
}

.info-block-body {
  font-size: 0.9rem;
  color: var(--charcoal-mid);
  line-height: 1.65;
  margin-bottom: 0.625rem;
}

.info-block-body--note {
  font-size: 0.8125rem;
  color: var(--charcoal-light);
  margin-bottom: 0;
}

.info-download-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--terracotta);
  text-decoration: none;
}

.info-download-link:hover {
  text-decoration: underline;
}

.app-fee-note a {
  color: var(--terracotta);
  font-weight: 500;
  text-decoration: none;
}

.app-fee-note a:hover {
  text-decoration: underline;
}

.form-success-body a {
  color: #fff;
  text-decoration: none;
}

.form-success-body a:hover {
  text-decoration: underline;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: 1fr 280px;
    gap: 3rem;
  }
}

@media (max-width: 860px) {
  .app-body {
    padding: var(--sp-lg) 0 var(--sp-xl);
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .app-info {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .info-block {
    flex: 1 1 260px;
  }

  .app-form-section {
    padding: 1.75rem;
  }
}

@media (max-width: 600px) {
  .app-info {
    flex-direction: column;
  }

  .info-block {
    flex: 0 0 auto;
    width: 100%;
  }
}
