/* ==========================================================
   Student Portal (student.php) - matches the Student Portal UI design
   ========================================================== */
body.page-student {
  background: #f7f7f5
}

.page-student .section-title {
  margin-bottom: 12px
}

/* ---------- Hero ---------- */
.sp-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: clamp(560px, 54vw, 1040px);
  display: flex;
  background-color: #0bbfe8;
  background-image: linear-gradient(180deg, #0bbfe8 0%, #2ed1fa 100%)
    /* fallback until the image exists */
}

.sp-hero[style] {
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat
}

.sp-hero-inner {
  width: 100%;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 46%) 1fr;
  grid-template-rows: 1fr auto;
  padding-top: 130px;
  padding-bottom: 0
}

.sp-hero-text {
  grid-column: 1;
  grid-row: 1;
  align-self: center
}

.sp-hero-kicker {
  font: italic 500 clamp(40px, 5.2vw, 66px)/1.1 var(--font-serif);
  margin: 0 0 4px
}

.sp-hero h1 {
  font: 500 clamp(64px, 9vw, 120px)/.94 var(--font-body);
  letter-spacing: -.04em;
  color: #243b82;
  margin: 0 0 22px
}

.sp-hero-sub {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  color: #243b82;
  margin: 0
}

.sp-hero-note {
  grid-column: 1;
  grid-row: 2;
  max-width: 330px;
  margin: 0;
  padding-bottom: 34px;
  font-size: 13px;
  line-height: 1.6;
  color: #243b82
}

/* ---------- Intro ---------- */
.sp-intro {
  padding: 64px 0 40px
}

.sp-intro .section-desc {
  max-width: 1000px
}

/* ---------- Discount band ---------- */
.sp-band {
  background: var(--sky);
  position: relative;
  overflow: hidden
}

.sp-band::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -40%;
  width: 46%;
  height: 90%;
  background: #5bd9fb;
  border-radius: 100% 0 0 0 / 100% 0 0 0;
  transform: rotate(-8deg)
}

.sp-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px
}

.sp-band h3 {
  font: 500 clamp(26px, 3.4vw, 42px)/1.55 var(--font-body);
  margin: 0;
  max-width: 560px;
  color: var(--ink)
}

.sp-band mark {
  background: var(--cyan);
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(18, 196, 234, .3)
}

.sp-ul {
  background: linear-gradient(var(--cyan), var(--cyan)) 0 96%/48% 3px no-repeat;
  padding-bottom: 2px
}

.sp-band-img {
  width: clamp(150px, 20vw, 250px);
  animation: sp-float 7s ease-in-out infinite
}

/* ---------- Step cards ---------- */
.sp-wizard {
  padding: 48px 0 90px
}

.sp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.sp-step-card {
  background: #fff;
  border: 1.5px solid #e6ecef;
  border-radius: 22px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s
}

.sp-step-top {
  display: grid;
  place-items: center;
  height: 150px;
  background: #f1f3f4;
  transition: background-color .3s
}

.sp-step-top img {
  max-height: 118px;
  width: auto;
  filter: grayscale(1) opacity(.7);
  transition: filter .35s, transform .35s
}

.sp-step-body {
  padding: 26px 30px 26px
}

.sp-step-body small {
  display: block;
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 14px
}

.sp-step-body h4 {
  font: 500 22px/1.25 var(--font-body);
  margin: 0 0 6px
}

.sp-step-body p {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.5
}

.sp-step-card.is-active {
  border-color: var(--cyan);
  box-shadow: 0 14px 30px rgba(18, 196, 234, .16)
}

.sp-step-card.is-active .sp-step-top {
  background: var(--sky)
}

.sp-step-card.is-active .sp-step-top img {
  filter: none;
  transform: scale(1.05)
}

.sp-step-card.is-done .sp-step-top {
  background: var(--sky)
}

.sp-step-card.is-done .sp-step-top img {
  filter: none
}

.sp-step-card.is-done {
  cursor: pointer
}

/* ---------- Panel card ---------- */
.sp-panel-card {
  margin-top: 36px;
  background: #fff;
  border-radius: 22px;
  padding: 48px clamp(22px, 5vw, 64px) 52px;
  box-shadow: 0 18px 40px rgba(20, 40, 60, .05)
}

.sp-panel[hidden] {
  display: none
}

.sp-panel {
  animation: sp-in .5s var(--fx-ease, ease)
}

@keyframes sp-in {
  from {
    opacity: 0;
    transform: translateY(14px)
  }
}

.sp-eyebrow {
  display: block;
  color: var(--mute);
  font-size: 14px;
  margin-bottom: 18px
}

.sp-panel h3 {
  font: 500 clamp(24px, 2.6vw, 30px)/1.2 var(--font-body);
  margin: 0 0 10px
}

.sp-lead {
  color: var(--mute);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 26px;
  max-width: 760px
}

.sp-h4 {
  font: 500 24px/1.3 var(--font-body);
  margin: 10px 0 8px
}

.sp-pill {
  display: inline-block;
  margin: 6px 0 18px;
  padding: 3px 16px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan-dark);
  font: italic 500 13px/1.7 var(--font-serif);
  background: #fff
}

.sp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px
}

.sp-col {
  min-width: 0
}

/* ---------- Fields ---------- */
.sp-field {
  display: block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink)
}

.sp-field i {
  color: #e5484d;
  font-style: normal
}

.sp-field input[type=text],
.sp-field input[type=email],
.sp-field input[type=password],
.sp-field input[type=date],
.sp-field select,
.sp-field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 20px;
  border: 1px solid #e3e5e7;
  border-radius: 999px;
  background: #f6f6f4;
  font: 400 14px var(--font-body);
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s
}

.sp-field textarea {
  border-radius: 18px;
  resize: vertical;
  min-height: 110px
}

.sp-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background: #f6f6f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 20px center
}

.sp-field input:focus,
.sp-field select:focus,
.sp-field textarea:focus {
  outline: 0;
  border-color: var(--cyan);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(18, 196, 234, .15)
}

.sp-field ::placeholder {
  color: #9aa4ad;
  font-weight: 400
}

.sp-field.has-error input,
.sp-field.has-error select {
  border-color: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, .12)
}

.sp-pass {
  position: relative;
  display: block
}

.sp-pass input {
  padding-right: 52px !important
}

.sp-eye {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-38%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #333
}

.sp-eye svg,
.sp-x svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2
}

/* ---------- Upload zone ---------- */
.sp-drop {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 10px;
  min-height: 190px;
  padding: 24px;
  border: 2px dashed var(--cyan);
  border-radius: 18px;
  background: #f6f6f4;
  text-align: center;
  cursor: pointer;
  transition: background-color .25s, border-color .25s
}

.sp-drop:hover,
.sp-drop.is-drag {
  background: var(--sky)
}

.sp-drop input[type=file] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer
}

.sp-drop-empty b {
  display: block;
  font-weight: 500;
  font-size: 16px;
  color: #333;
  line-height: 1.5
}

.sp-drop-empty small {
  display: block;
  margin-top: 10px;
  font-weight: 400;
  color: var(--mute);
  font-size: 13px
}

.sp-drop-file {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 520px);
  padding: 14px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(20, 40, 60, .08);
  text-align: left
}

.sp-drop-file[hidden] {
  display: none
}

.sp-drop-file img {
  width: 84px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px
}

.sp-drop-file img[hidden] {
  display: none
}

.sp-drop-file b {
  display: block;
  font-size: 16px;
  font-weight: 500;
  word-break: break-all
}

.sp-drop-file small {
  color: var(--mute);
  font-weight: 400
}

.sp-doc-ico {
  flex: none;
  width: 22px;
  height: 26px;
  border-radius: 4px;
  background: #3b4350
}

.sp-x {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e5484d;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer
}

.sp-drop-file .sp-doc-ico+div+.sp-x {
  background: transparent;
  color: #333;
  font-size: 24px
}

.sp-drop-file[hidden],
.sp-drop-empty[hidden] {
  display: none
}

/* ---------- Actions ---------- */
.sp-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px
}

.sp-actions .btn-primary {
  min-width: 300px;
  box-shadow: 0 16px 30px rgba(18, 196, 234, .3)
}

.sp-actions-split {
  justify-content: space-between
}

.sp-btn-pdf {
  background: #e5484d;
  color: #fff;
  padding: 14px 28px;
  font-size: 16px
}

.sp-btn-pdf:hover {
  background: #c93a3f
}

.sp-btn-pdf svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.sp-link {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: 0;
  color: var(--mute);
  font: 500 14px var(--font-body);
  cursor: pointer
}

.sp-link:hover {
  color: var(--cyan-dark)
}

/* ---------- Proposal ---------- */
.sp-price {
  width: min(100%, 360px);
  margin: 6px auto 34px;
  padding: 0 0 22px;
  text-align: center;
  background: var(--sky);
  border: 1px solid #d6eef7;
  border-radius: 18px;
  position: relative;
  padding-top: 34px
}

.sp-price-tag {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #243b82;
  color: #fff;
  font: 600 12px/1 var(--font-body);
  white-space: nowrap
}

.sp-price-tag svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.sp-price p {
  margin: 8px 0 0;
  color: #333;
  font-size: 15px
}

.sp-price strong {
  display: block;
  font: 600 clamp(48px, 6vw, 64px)/1.15 var(--font-body);
  color: #243b82;
  letter-spacing: -.03em
}

.sp-price small {
  color: var(--mute);
  font-size: 13px
}

.sp-plans {
  display: grid;
  gap: 14px;
  margin-top: 8px
}

.sp-plan {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: #fff;
  border: 1.5px solid #e3e8eb;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .25s, background-color .25s, box-shadow .25s
}

.sp-plan:hover {
  border-color: #a9e4f4
}

.sp-plan.is-on {
  border-color: var(--cyan);
  background: var(--sky);
  box-shadow: 0 10px 22px rgba(18, 196, 234, .12)
}

.sp-plan input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.sp-radio {
  width: 24px;
  height: 24px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff
}

.sp-plan.is-on .sp-radio::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan)
}

.sp-plan-main b {
  display: block;
  font-size: 16px;
  font-weight: 500
}

.sp-plan-main small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mute)
}

.sp-plan-side {
  text-align: right;
  white-space: nowrap
}

.sp-tags {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 4px
}

.sp-tags em {
  font: 500 11px/1 var(--font-body);
  font-style: normal;
  padding: 5px 12px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan-dark);
  background: #fff
}

.sp-tags i {
  font: 600 11px/1 var(--font-body);
  font-style: normal;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eceff1;
  color: #444
}

.sp-plan.is-on .sp-tags i {
  background: var(--cyan);
  color: #fff
}

.sp-plan-side strong {
  display: block;
  font-size: 14px;
  font-weight: 600
}

.sp-plan-side s {
  display: block;
  font-size: 12px;
  color: var(--mute)
}

.sp-fine {
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--mute)
}

/* ---------- Success ---------- */
.sp-success {
  text-align: center
}

.sp-check {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  color: var(--cyan-dark)
}

.sp-check svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.sp-success p {
  max-width: 520px;
  margin: 0 auto 22px;
  color: var(--mute)
}

.sp-quote-line {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 26px;
  padding: 16px 28px;
  border-radius: 16px;
  background: var(--sky)
}

.sp-quote-line span {
  font-size: 14px;
  color: var(--mute)
}

.sp-quote-line strong {
  font-size: 30px;
  color: #243b82
}

.sp-quote-line small {
  font-size: 13px;
  font-weight: 400;
  color: var(--mute)
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sp-hero {
    min-height: 0;
    padding-bottom: 92vw;
    background-size: 170% auto !important;
    background-position: 80% 100% !important
  }

  .sp-hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding-top: 110px
  }

  .sp-hero-text,
  .sp-hero-note {
    grid-column: 1;
    grid-row: auto
  }

  .sp-hero-note {
    max-width: none;
    padding-bottom: 0;
    margin-top: 18px
  }

  .sp-band-inner {
    flex-direction: column;
    align-items: flex-start
  }

  .sp-steps {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .sp-step-top {
    height: 110px
  }

  .sp-step-top img {
    max-height: 84px
  }

  .sp-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width: 640px) {
  .sp-plan {
    grid-template-columns: 24px 1fr
  }

  .sp-plan-side {
    grid-column: 2;
    text-align: left
  }

  .sp-tags {
    justify-content: flex-start
  }

  .sp-actions .btn,
  .sp-actions-split .btn {
    width: 100%;
    min-width: 0
  }

  .sp-panel-card {
    padding: 32px 18px 36px
  }
}

/* ---------- Print: only the proposal (Download PDF) ---------- */
@media print {
  body.sp-print * {
    visibility: hidden
  }

  body.sp-print #spProposal,
  body.sp-print #spProposal * {
    visibility: visible
  }

  body.sp-print #spProposal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%
  }

  body.sp-print .sp-plan:not(.is-on) {
    opacity: .65
  }
}

@media (prefers-reduced-motion: reduce) {

  .sp-band-img,
  .sp-panel {
    animation: none
  }
}