/* file: dorm.css */
/* Styles for Dorm Drop page */

/* ===========================
   1. Layout & Structure
   =========================== */

/* Two‑column layout: form (75%) + sidebar (25%), allow wrapping */
.content-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.form-container {
  flex: 3 1 0;
  max-width: 75%;
}
.info-container {
  flex: 1 1 0;
  max-width: 25%;
}

/* Sticky sidebar for summary panel */
.sticky {
  position: sticky;
  top: 1rem;
}

/* ===========================
   2. Form Controls & Labels
   =========================== */

/* Labels above inputs */
.form-group label {
  display: block;
  margin-bottom: 0.25rem;
}

/* Inputs & selects: larger touch targets */
.form-group input,
.form-group select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  min-height: 2.5rem;
  line-height: 1.2;
}

/* Responsive grid rows for grouping fields */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* ===========================
   3. Toggles & Optional Sections
   =========================== */

details.student-toggle {
  margin-top: 1rem;
}

/* Indent and space student details */
.nested-group {
  padding-left: 1rem;
  border-left: 2px solid #ddd;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* ===========================
   4. Checkbox Styling
   =========================== */

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* ===========================
   5. Service Cards
   =========================== */

.service-cards {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
}

.service-card {
  flex: 1 1 0;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
  margin-top: 0;
  font-size: 1rem;
}

.cost-summary {
  margin-top: 0.5rem;
  font-weight: bold;
}

@media (min-width: 768px) {
  .service-cards {
    flex-direction: row;
  }
}

/* ===========================
   6. Info-Card Overrides
   =========================== */

.service-card.info-card {
  background: #fafafa;
  border-color: #ccc;
  flex: 1 1 100%;   /* spans full width below other cards */
  margin-top: 2rem;
}

/* Padding between Quick Start and How It Works */
.service-card.info-card h4 {
  margin-bottom: 0.5rem;
}
.service-card.info-card h3 {
  margin-top: 1.5rem;
}

/* Indent ordered & unordered lists inside info-card */
.service-card.info-card ol,
.service-card.info-card ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Constrain and center diagrams in info-card */
.service-card.info-card img {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem;
}

/* ===========================
   7. Sidebar Summary Panel
   =========================== */

.summary-panel {
  background: #fff;
  border: 1px solid var(--accent);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}
.summary-panel h2 {
  margin-top: 0;
}
.summary-panel hr {
  margin: 0.5rem 0;
}

/* ===========================
   8. Button & Utility
   =========================== */

.submit-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}
.submit-btn:hover {
  background: var(--primary-hover);
}

.required {
  color: #c00;
  margin-left: 0.25rem;
}
/* dorm.css — stack form + aside on mobile */
@media (max-width: 768px) {
  .content-columns {
    /* switch from two‑column flex to stacking */
    display: flex;
    flex-direction: column;
  }
  .form-container,
  .info-container {
    /* both become full‑width */
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .info-container {
    /* add some breathing room */
    margin-top: 1rem;
  }
  /* if you want to disable sticky on mobile, uncomment: */
  /* .sticky { position: static; top: auto; } */
}

