/* ======================================================
   RESIDENCY PAGE – 2 COLUMN FIXED LAYOUT
   LEFT: INFO | RIGHT: FORM
====================================================== */

.residency-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr; /* LEFT content | RIGHT form */
  gap: 50px;
  align-items: flex-start;
}

/* ======================================================
   LEFT COLUMN – INFO / TERMS
====================================================== */

.residency-info h2,
.residency-info h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
}

.residency-info p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 18px;
}

.residency-info ul {
  margin-bottom: 18px;
  padding-left: 18px;
}

.residency-info li {
  margin-bottom: 8px;
  color: #444;
}

.terms-list {
  list-style: disc;
}

.note {
  font-size: 14px;
  color: #666;
  margin-top: 16px;
}

/* ======================================================
   RIGHT COLUMN – FORM WRAPPER
====================================================== */

.residency-form-wrapper {
  background: #ffffff;
  border: 1px solid #e8e3dc;
  border-radius: 16px;
  padding: 36px 38px; /* 🔥 fixed inner spacing */
}

/* ======================================================
   FORM BASE
====================================================== */

.residency-form {
  width: 100%;
}

/* Section title */
.form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 22px;
}

/* Sub section titles */
.form-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin: 28px 0 14px;
}

/* ======================================================
   GRID FIELDS (ALWAYS 2 COLUMN)
====================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;   /* row gap | column gap */
  margin-bottom: 18px;
}

/* ======================================================
   INPUTS & TEXTAREA
====================================================== */

.residency-form input,
.residency-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd6ce;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

/* textarea spacing */
.residency-form textarea {
  resize: vertical;
  margin-bottom: 16px;
}

/* prevent double spacing inside grid */
.form-grid input {
  margin-bottom: 0;
}

/* ======================================================
   FILE INPUT LABELS
====================================================== */

.file-label {
  display: block;
  margin: 14px 0 8px;
  font-size: 14px;
  color: #444;
}

/* ======================================================
   CHECKBOX
====================================================== */

.checkbox {
  display: block;
  margin: 22px 0 26px;
  font-size: 14px;
  line-height: 1.5;
}

/* ======================================================
   SUBMIT BUTTON
====================================================== */

.residency-form .btn-primary {
  margin-top: 10px;
  padding: 14px 30px;
}

/* ======================================================
   RESPONSIVE (ONLY VERY SMALL MOBILES)
====================================================== */

@media (max-width: 640px) {

  .residency-layout {
    grid-template-columns: 1fr; /* stack only on very small screens */
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .residency-form-wrapper {
    padding: 28px 22px;
  }
}
/* ===== CATEGORY / DISCIPLINE – HARD LEFT ALIGN FIX ===== */

.discipline-grid-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 40px;
  margin: 15px 0 25px;
}

/* Each option */
.discipline-grid-form label {
  display: grid;
  grid-template-columns: 18px auto;   /* 🔥 checkbox | text */
  align-items: start;
  column-gap: 10px;

  font-size: 14px;
  color: #444;
  line-height: 1.4;
  cursor: pointer;
}

/* Checkbox */
.discipline-grid-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0 0;   /* 🔥 exact top alignment */
}

/* Prevent word break */
.discipline-grid-form span {
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 768px) {
  .discipline-grid-form {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 25px;
  }
}



