.admission-page-optional {
  color: #6b7280;
  font-size: 0.7rem;
  margin-left: 6px;
}
/* Make small fields (like name fields) smaller on desktop */
@media (min-width: 768px) {
  .admission-page-small {
    max-width: 320px;
    width: 100%;
  }
}
/* ---------- GRID FOR FIELDS ---------- */
.admission-fields-spacing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .admission-fields-spacing {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 26px;
  }
  /* Sections/notes full width */
  .admission-page-section,
  .admission-page-note,
  .admission-page-type-textarea,
  .admission-page-type-file,
  .admission-page-full {
    grid-column: 1 / -1;
  }
}

/* ---------- PAGE CONTAINER + HEADER ---------- */
.admission-main-container {
  max-width: 880px;
  margin: 14px auto;
  padding: 0 8px; /* tighter left/right spacing */
  color: #192f5d;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Header stack: logo, institute, small title */
.admission-page-header {
  text-align: center;
  margin: 10px 0 18px 0;
}

.admission-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  display: inline-block;
  margin-bottom: 12px;
}

.admission-institute {
  font-weight: 500;
  font-size: 1.5rem; /* same size as small title */
  line-height: 1.25;
  margin-bottom: 6px;
  color: #192f5d;
}

.admission-page-title {
  margin: 0;
  font-size: 1.8rem; /* small heading size */
  line-height: 1.25;
  font-weight: 700;   /* bold */
  color: #192f5d;
}

/* ---------- NOTICES ---------- */
.admission-page-notice {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.admission-page-success { background: #ecfdf5; border-color: #10b981; }
.admission-page-error { background: #fef2f2; border-color: #ef4444; }

/* ---------- FORM SHELL ---------- */
.admission-page-form {
  padding: 12px;               /* slight inner padding */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

/* Section headings: semi-bold, same size as title */
.admission-page-section {
  font-weight: 600;        /* semi-bold */
  font-size: 1.2rem;       /* match small title size */
  line-height: 1.25;
  margin: 8px 0 12px 0;
}

/* Optional note block under sections */
.admission-page-note {
  margin: 4px 0 8px 0;
  color: #6b7280;
}

/* ---------- FIELDS ---------- */
.admission-page-field {
  min-width: 0; /* prevent overflow in grid cells */

}


.admission-page-label {
  display: block;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.admission-required-color { color: #ef4444; font-weight: 700; }

/* Inputs/selects/textarea with rounded look + hover/focus effects */
.admission-input-style {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #192f5d;
  border-radius: 12px;
  outline: none;
  background: #fff;
  transition: box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.admission-input-style:hover {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.15);
}

.admission-input-style:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  background: #fff;
}

/* Textarea specifics */
.admission-page-type-textarea textarea {
  resize: vertical;
  min-height: 110px;
}

/* Make specific fields full width (class added in PHP) */
.admission-page-full {
  grid-column: 1 / -1;
}

/* ---------- SUBMIT ROW ---------- */

.admission-actions-row {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.admission-submit-style {
  min-width: 180px;
  font-size: 1.15rem;
  padding: 14px 32px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #192f5d;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(25,47,93,0.10);
  transition: background 120ms, color 120ms, box-shadow 120ms, transform 80ms;
  outline: none;
  border: 2px solid #192f5d;
}

.admission-submit-style:hover {
  background: #192f5d;
  color: #fff;
  box-shadow: 0 8px 24px rgba(25,47,93,0.18);
  transform: translateY(-2px);
}

.admission-submit-style:active {
  box-shadow: 0 4px 12px rgba(25,47,93,0.15);
  transform: translateY(0);
}