/* Admission SOP form polish. Loaded after per-page Admission CSS. */
.admission-legacy-page .sop-form-section {
  position: relative;
  padding: clamp(52px, 7vw, 92px) 0;
  background:
    radial-gradient(circle at 10% 12%, rgba(27, 121, 209, .15), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(15, 76, 129, .13), transparent 30%),
    linear-gradient(180deg, #f6faff 0%, #eaf3fd 100%);
  overflow: hidden;
}

.admission-legacy-page .sop-form-section::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(15, 76, 129, .08);
  border-radius: 36px;
  pointer-events: none;
}

.admission-legacy-page .sop-form-wrap {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 30px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(15, 76, 129, .12);
  box-shadow: 0 26px 70px rgba(15, 76, 129, .16);
  backdrop-filter: blur(12px);
}

.admission-legacy-page .sop-form-title {
  margin: 0 0 30px;
  color: #0d3157;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  text-align: center;
  letter-spacing: -.03em;
}

.admission-legacy-page .sop-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.admission-legacy-page .sop-cols-1 { grid-template-columns: 1fr; }
.admission-legacy-page .sop-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admission-legacy-page .sop-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admission-legacy-page .sop-group { min-width: 0; }

.admission-legacy-page .sop-input,
.admission-legacy-page .sop-select,
.admission-legacy-page .sop-file-btn,
.admission-legacy-page .sop-file-input-label {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(15, 76, 129, .18);
  border-radius: 16px;
  background: #f8fbff;
  color: #17385d;
  padding: 0 17px;
  font: 600 15px/1.2 Arial, Helvetica, sans-serif;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.admission-legacy-page .sop-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #1b79d1 50%),
    linear-gradient(135deg, #1b79d1 50%, transparent 50%);
  background-position: calc(100% - 19px) 24px, calc(100% - 13px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.admission-legacy-page .sop-input::placeholder { color: #7d90a3; font-weight: 500; }

.admission-legacy-page .sop-input:focus,
.admission-legacy-page .sop-select:focus {
  border-color: #1b79d1;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(27, 121, 209, .13), 0 10px 24px rgba(15, 76, 129, .08);
  transform: translateY(-1px);
}

.admission-legacy-page .sop-file-btn,
.admission-legacy-page .sop-file-input-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  color: #0f4c81;
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
}

.admission-legacy-page .sop-file-btn:hover,
.admission-legacy-page .sop-file-input-label:hover {
  border-color: #1b79d1;
  box-shadow: 0 10px 24px rgba(27, 121, 209, .12);
}

.admission-legacy-page .sop-section-head {
  margin: 30px 0 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(27, 121, 209, .1), rgba(15, 76, 129, .05));
  border: 1px solid rgba(15, 76, 129, .08);
}

.admission-legacy-page .sop-section-head h3 {
  margin: 0 0 6px;
  color: #123b67;
  font-size: clamp(18px, 2vw, 24px);
}

.admission-legacy-page .sop-section-head p {
  margin: 0;
  color: #657789;
  line-height: 1.65;
}

.admission-legacy-page .sop-submit-btn {
  width: 100%;
  min-height: 60px;
  margin-top: 16px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #1b79d1, #0f4c81);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(27, 121, 209, .28);
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.admission-legacy-page .sop-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(27, 121, 209, .36);
}

.admission-legacy-page .sop-submit-btn:disabled {
  opacity: .72;
  cursor: wait;
  transform: none;
}

.admission-legacy-page .sop-success {
  display: none;
  margin-top: 18px;
  padding: 17px 20px;
  border-radius: 18px;
  background: #e9f9ef;
  color: #176334;
  border: 1px solid rgba(23, 99, 52, .14);
  font-weight: 800;
}

@media (max-width: 900px) {
  .admission-legacy-page .sop-cols-2,
  .admission-legacy-page .sop-cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .admission-legacy-page .sop-form-section { padding: 36px 0; }
  .admission-legacy-page .sop-form-wrap { border-radius: 22px; }
  .admission-legacy-page .sop-form-section::before { display: none; }
}
