:root {
  --istse-maroon: #7a1717;
  --istse-maroon-dark: #5f0f0f;
  --istse-gold: #d8a83f;
  --istse-ivory: #fff8ea;
  --istse-charcoal: #222222;
  --istse-muted: #6f747b;
  --istse-border: #e8e2d7;
  --istse-success: #3c7a2c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--istse-charcoal);
  background: #f7f3ec;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.registration-embed {
  background: #f8f6f2;
}
    body.is-embedded .registration-page {
        padding: 0;
        background: #f8f5ef;
    }

    body.is-embedded .registration-card {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
.registration-page {
  min-height: 100vh;
}

.registration-hero {
  padding: 34px 0 28px;
  background:
    linear-gradient(135deg, rgba(122, 23, 23, .94), rgba(95, 15, 15, .92)),
    radial-gradient(circle at top right, rgba(216, 168, 63, .28), transparent 32%);
  color: #fff;
}

.registration-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.eyebrow {
  color: var(--istse-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
    .maroon {
        color: var(--istse-maroon);
    }

.hero-copy {
    color: rgba(255, 255, 255, .82);
    font-size: 1.05rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-weight: 700;
}

.registration-shell {
  padding: 32px 0;
}

.registration-embed .registration-shell {
  padding: 16px 0;
}

.registration-embed .js-standalone-only {
  display: none !important;
}

.info-card,
.registration-card {
  border: 1px solid var(--istse-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 45px rgba(55, 43, 30, .08);
}

.info-card {
  top: 1rem;
  padding: 26px;
}

.info-card h2,
.info-card h3 {
  color: var(--istse-maroon);
  font-weight: 800;
}

.info-card h2 {
  font-size: 1.3rem;
}

.info-card h3 {
  font-size: 1rem;
}

.check-list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
  color: #424242;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: .08rem;
  color: var(--istse-success);
  font-family: "bootstrap-icons";
  content: "\F26A";
}

.exam-dates-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: var(--istse-ivory);
}

.small-date-list {
  display: grid;
  gap: .5rem;
  margin-top: .75rem;
  color: #404040;
}

.small-date-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px dashed rgba(122, 23, 23, .18);
}

.small-date-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.registration-card {
  overflow: hidden;
}

.registration-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 28px 28px 18px;
  border-bottom: 1px solid var(--istse-border);
}

.registration-card-header h2 {
  color: #1f1f1f;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -.03em;
}

.fee-pill,
.selected-date {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 800;
}

.fee-pill {
  gap: .45rem;
  padding: .65rem .95rem;
  background: var(--istse-ivory);
  color: var(--istse-maroon);
}

.fee-pill strong {
  color: var(--istse-success);
}

#onlineRegistrationForm {
  padding: 24px 28px 30px;
}

.form-label {
  color: #333;
  font-weight: 750;
}

.form-control,
.form-select {
  min-height: 52px;
  border-color: #ddd7cd;
  border-radius: 12px;
  color: #222;
  font-weight: 550;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(122, 23, 23, .45);
  box-shadow: 0 0 0 .22rem rgba(122, 23, 23, .12);
}

.alert-warning-soft {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 24px 28px 0;
  border: 1px solid rgba(216, 168, 63, .34);
  border-radius: 16px;
  background: #fff7df;
  color: #5f4311;
  font-weight: 650;
}

.class-picker-wrap {
  padding: 20px;
  border: 1px solid var(--istse-border);
  border-radius: 20px;
  background: #fffdf8;
}

.class-help {
  color: var(--istse-muted);
  font-weight: 650;
}

.selected-date {
  align-self: start;
  padding: .5rem .85rem;
  background: #f1e7d4;
  color: var(--istse-maroon);
  font-size: .9rem;
}

.class-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
}

.class-option {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 48px;
  margin: 0;
  padding: .55rem .75rem;
  border: 1px solid #d9d4cc;
  border-radius: 12px;
  background: #f4f1eb;
  color: #5c5c5c;
  cursor: pointer;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}

.class-option:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 23, 23, .35);
  box-shadow: 0 8px 18px rgba(55, 43, 30, .08);
}

.class-option .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #d2d0cc;
  color: transparent;
}
.class-select-control {
    max-width: 320px;
    font-weight: 750;
    background-color: #fffdf8;
}

.registration-embed .class-select-control {
    max-width: 360px;
}

@media (max-width: 575.98px) {
    .class-select-control {
        max-width: 100%;
    }
}
.btn-check:checked + .class-option {
  border-color: rgba(60, 122, 44, .72);
  background: #edf8e8;
  color: #1d4514;
}

.btn-check:checked + .class-option .tick {
  background: #6fbe62;
  color: #fff;
}

.field-error {
  margin-top: .5rem;
  color: #b42318;
  font-size: .9rem;
  font-weight: 650;
}

.pricing-box {
  overflow: hidden;
  border: 1px solid var(--istse-border);
  border-radius: 22px;
  background: #fff;
}

.price-row,
.addon-row,
.total-row {
  padding: 18px 20px;
}

.price-row,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.price-row {
  background: #fff;
}

.addon-placeholder {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: 16px 20px;
  border-top: 1px solid var(--istse-border);
  background: #fffdf8;
  color: var(--istse-muted);
  font-weight: 700;
}

.addon-placeholder i {
  color: var(--istse-maroon);
}

.price-amount,
.total-amount {
  color: var(--istse-success);
  font-size: 1.1rem;
}

.addon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  border-top: 1px solid var(--istse-border);
  background: #fff;
}

.addon-title {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
}

.addon-title strong,
.addon-title small {
  display: block;
}

.addon-title strong {
  color: #151515;
  font-size: 1.02rem;
}

.addon-title small {
  margin-top: .35rem;
  color: #393939;
  font-weight: 600;
}

.form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .25rem;
  cursor: pointer;
}

.form-check-input:checked {
  border-color: var(--istse-success);
  background-color: var(--istse-success);
}

.helper-row {
  position: relative;
}

.special-promo {
  display: inline-block;
  margin-right: .4rem;
  padding: .18rem .45rem;
  border-radius: 999px;
  background: #fff0bd;
  color: var(--istse-maroon);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.helper-price {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: .75rem;
  flex-wrap: wrap;
}

.btn-know-more {
  border: 0;
  background: #313aa6;
  color: #fff;
  font-weight: 700;
}

.btn-know-more:hover,
.btn-know-more:focus {
  background: #27308f;
  color: #fff;
}

.old-price {
  color: #141414;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.helper-details {
  grid-column: 1 / -1;
  margin-left: 1.75rem;
  padding: .9rem 1rem 0;
  border-top: 1px dashed rgba(122, 23, 23, .18);
  color: #4a4a4a;
}

.helper-details ul {
  margin-bottom: 0;
}

.total-row {
  border-top: 1px solid var(--istse-border);
  background: #f8f3e8;
  color: #171717;
  font-size: 1.18rem;
}

.total-amount {
  font-size: 1.35rem;
}

.terms-row {
  padding-left: 1.65rem;
  color: #5e6268;
  font-weight: 700;
}

.terms-row a {
  color: #446db0;
  font-weight: 800;
  text-decoration: none;
}

.terms-row a:hover {
  text-decoration: underline;
}

.form-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.form-message.success {
  border: 1px solid rgba(60, 122, 44, .25);
  background: #eef8ea;
  color: #25591c;
}

.form-message.error {
  border: 1px solid rgba(180, 35, 24, .25);
  background: #fff0ef;
  color: #9f1f16;
}

.action-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn-maroon {
  min-width: 220px;
  border: 0;
  border-radius: 12px;
  background: var(--istse-maroon);
  color: #fff;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.btn-maroon:hover,
.btn-maroon:focus {
  background: var(--istse-maroon-dark);
  color: #fff;
}

.btn-maroon:disabled {
  background: #9a8686;
}

@media (max-width: 991.98px) {
  .registration-shell {
    padding: 20px 0;
  }

  .registration-card-header {
    flex-direction: column;
    padding: 22px 18px 14px;
  }

  #onlineRegistrationForm {
    padding: 18px;
  }

  .alert-warning-soft {
    margin: 18px 18px 0;
  }

  .class-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .addon-row {
    grid-template-columns: 1fr;
  }

  .helper-price {
    justify-content: start;
    padding-left: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .registration-embed .registration-shell {
    padding: 0;
  }

  .registration-card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .class-option {
    min-height: 46px;
    padding: .5rem .6rem;
    font-size: .92rem;
  }

  .price-row,
  .addon-row,
  .total-row {
    padding: 16px;
  }
}
/* =========================================================
   Embedded Registration Form - Modal Mode
   Removes extra side spacing inside iframe popup
========================================================= */

body.registration-embed {
    overflow-x: hidden;
    background: #ffffff;
}

    body.registration-embed .registration-page {
        min-height: auto;
        background: #ffffff;
    }

    body.registration-embed .registration-shell {
        padding: 0 !important;
    }

        body.registration-embed .registration-shell > .container {
            width: 100% !important;
            max-width: none !important;
            margin: 0 !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        body.registration-embed .registration-shell .row {
            --bs-gutter-x: 0 !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

        body.registration-embed .registration-shell [class*="col-"] {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        body.registration-embed .registration-shell .col-lg-8 {
            flex: 0 0 100% !important;
            width: 100% !important;
            max-width: 100% !important;
        }

    body.registration-embed .registration-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.registration-embed .registration-card-header {
        padding-left: 36px;
        padding-right: 36px;
    }

    body.registration-embed .alert-warning-soft {
        margin-left: 36px;
        margin-right: 36px;
    }

    body.registration-embed #onlineRegistrationForm {
        padding-left: 36px;
        padding-right: 36px;
    }

@media (max-width: 767.98px) {
    body.registration-embed .registration-card-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    body.registration-embed .alert-warning-soft {
        margin-left: 18px;
        margin-right: 18px;
    }

    body.registration-embed #onlineRegistrationForm {
        padding-left: 18px;
        padding-right: 18px;
    }
}
/* =========================================================
   Registration Processing Overlay and Success Screen
========================================================= */
.registration-card {
    position: relative;
}

.registration-processing-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(255, 253, 248, 0.92);
    backdrop-filter: blur(3px);
}

.registration-processing-overlay.d-none {
    display: none !important;
}

.processing-box {
    width: min(420px, 100%);
    padding: 34px 28px;
    border: 1px solid rgba(216, 168, 63, 0.38);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(55, 43, 30, 0.16);
    text-align: center;
}

.processing-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border: 6px solid #f4e4bd;
    border-top-color: var(--istse-maroon);
    border-radius: 50%;
    animation: istseSpin 0.85s linear infinite;
}

.processing-box h3 {
    margin: 0 0 8px;
    color: var(--istse-maroon);
    font-size: 1.35rem;
    font-weight: 850;
}

.processing-box p {
    margin: 0;
    color: var(--istse-muted);
    font-weight: 650;
}

@keyframes istseSpin {
    to {
        transform: rotate(360deg);
    }
}

.registration-success-panel {
    padding: 34px 36px 40px;
    background: #ffffff;
}

.success-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #eaf7e6;
    color: var(--istse-success);
    font-size: 2.4rem;
}

.registration-success-panel h3 {
    color: var(--istse-maroon);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 10px;
}

.success-order-no {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin: 0 0 18px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--istse-ivory);
    color: var(--istse-maroon);
    font-weight: 850;
}

.success-server-message,
.success-server-details {
    color: #24451b;
    font-weight: 650;
    line-height: 1.7;
}

.success-server-message {
    margin-bottom: 14px;
}

.success-server-details {
    padding: 18px 20px;
    border: 1px solid rgba(60, 122, 44, 0.24);
    border-radius: 18px;
    background: #f0faec;
}

.success-server-details p:last-child,
.success-server-details ul:last-child,
.success-server-details ol:last-child {
    margin-bottom: 0;
}

.success-server-details a {
    color: #2458a7;
    font-weight: 850;
    text-decoration: underline;
}

.success-next-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 575.98px) {
    .registration-processing-overlay {
        padding: 18px;
    }

    .processing-box {
        padding: 28px 20px;
    }

    .registration-success-panel {
        padding: 26px 18px 32px;
    }

    .success-next-actions .btn {
        width: 100%;
    }
}
.success-server-details {
    text-align: left;
    line-height: 1.7;
}

    .success-server-details h3 {
        color: var(--istse-maroon);
        font-weight: 850;
        margin-bottom: 1rem;
    }

    .success-server-details ul {
        margin-top: 1rem;
        padding-left: 1.4rem;
    }

    .success-server-details li {
        margin-bottom: .75rem;
    }

    .success-server-details a {
        color: #2458a7;
        font-weight: 800;
        word-break: break-word;
    }