/* ==========================================================================
   Online Admission Form — student-registration.php
   Same palette and type as the Contact, Faculty and Our Graduates pages:
   navy + gold, Noto Serif headings, Open Sans text, cream page.
   Everything is scoped under .hidayah-admission-page so it cannot leak into
   the shared header, footer or the Bootstrap 3 / style-v1.css rules.
   ========================================================================== */

.hidayah-admission-page {
    --adm-navy: #243a73;
    --adm-navy-deep: #1a2b57;
    --adm-navy-soft: #eef1f8;
    --adm-navy-ring: rgba(36, 58, 115, .16);
    --adm-gold: #faa619;
    --adm-gold-soft: #fbe3b3;
    --adm-gold-wash: #fff6e6;
    --adm-gold-text: #9a5b00;
    --adm-green: #2f6b4f;
    --adm-green-soft: #e8f3ed;
    --adm-red: #a33a2c;
    --adm-red-soft: #fbecea;
    --adm-ink: #1c2541;
    --adm-text: #3d4458;
    --adm-muted: #586074;
    --adm-line: #e6e3da;
    --adm-field: #d9d5ca;
    --adm-cream: #faf8f3;
    --adm-card: #ffffff;
    --adm-radius: 14px;
    --adm-radius-sm: 10px;
    --adm-shadow: 0 1px 2px rgba(28, 37, 65, .04), 0 2px 8px rgba(28, 37, 65, .04);
    --adm-shadow-hover: 0 4px 10px rgba(28, 37, 65, .06), 0 14px 32px rgba(28, 37, 65, .08);
    --adm-serif: "Noto Serif", Georgia, "Times New Roman", serif;
    --adm-sans: "Open Sans", "Segoe UI", Arial, sans-serif;

    display: block;
    background: var(--adm-cream);
    color: var(--adm-text);
    font-family: var(--adm-sans);
    font-size: 15px;
    /* style-v1.css sets body line-height in em, which would inherit as a fixed px value */
    line-height: 1.6;
}

/* No sideways scrolling on phones. This stylesheet is only loaded by the
   admission page, so the rule does not touch the rest of the site. `clip`
   (unlike `hidden`) does not turn the page into a scroll container, so the
   sticky Back / Continue bar keeps working. */
html {
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* style-v1.css paints #content white with no padding, and its id selector outranks the class */
#content.hidayah-admission-page {
    padding: 36px 0 72px;
    background: var(--adm-cream);
}

/* The hero's bottom margin would otherwise show as a white band above the cream page */
.ph {
    margin-bottom: 0;
}

.hidayah-admission-page *,
.hidayah-admission-page *::before,
.hidayah-admission-page *::after {
    box-sizing: border-box;
}

/* The [hidden] attribute must always win over any display rule below,
   otherwise buttons/steps toggled via JS (el.hidden = true) stay visible. */
.hidayah-admission-page [hidden] {
    display: none !important;
}

.hidayah-admission-page :focus-visible {
    outline: 3px solid var(--adm-gold);
    outline-offset: 2px;
}

.hidayah-admission-page h2,
.hidayah-admission-page h3 {
    margin: 0;
    font-family: var(--adm-serif);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: var(--adm-ink);
}

.hidayah-admission-page p {
    margin: 0;
}

.hidayah-admission-page a {
    color: var(--adm-navy);
}

/* Theme guard: the site stylesheet squares off and upper-cases bare buttons. */
.hidayah-admission-page button {
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--adm-sans);
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
}

.hidayah-admission {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 18px;
}

/* --------------------------------------------------------------------------
   Layout: form card + sidebar
   -------------------------------------------------------------------------- */

.hidayah-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.hidayah-aside {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* --------------------------------------------------------------------------
   Alerts / notes above the form
   -------------------------------------------------------------------------- */

.hidayah-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: var(--adm-radius-sm);
    font-size: 15px;
    font-weight: 600;
}

.hidayah-alert svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hidayah-alert-error {
    background: var(--adm-red-soft);
    border-color: #efc3bd;
    color: var(--adm-red);
}

.hidayah-catalogue-note {
    margin: 0 0 20px;
    padding: 12px 16px;
    border: 1px solid var(--adm-gold-soft);
    border-radius: var(--adm-radius-sm);
    background: var(--adm-gold-wash);
    color: var(--adm-gold-text);
    font-size: 14px;
}

.hidayah-catalogue-note a {
    color: inherit;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Form card
   -------------------------------------------------------------------------- */

#admissionForm {
    background: var(--adm-card);
    border: 1px solid var(--adm-line);
    border-top: 3px solid var(--adm-gold);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow);
    animation: hidayah-fade-up .45s ease both;
    scroll-margin-top: 24px;
}

@keyframes hidayah-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    #admissionForm,
    .hidayah-success-card,
    .hidayah-step {
        animation: none !important;
    }
}

.hidayah-form-body {
    padding: 30px 34px 8px;
}

.hidayah-step {
    animation: hidayah-step-in .3s ease both;
}

@keyframes hidayah-step-in {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Progress (card header)
   -------------------------------------------------------------------------- */

.hidayah-progress {
    padding: 22px 34px 20px;
    border-bottom: 1px solid var(--adm-line);
    background: linear-gradient(180deg, var(--adm-cream) 0, #fff 100%);
    border-radius: var(--adm-radius) var(--adm-radius) 0 0;
}

.hidayah-progress ol {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hidayah-progress li {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: 12.5px;
    color: var(--adm-muted);
}

/* Connector between the dots */
.hidayah-progress li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 2px;
    border-radius: 2px;
    background: var(--adm-line);
}

.hidayah-progress li.completed:not(:last-child)::after {
    background: var(--adm-navy);
}

.hidayah-progress-dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 auto 7px;
    border: 2px solid var(--adm-field);
    border-radius: 50%;
    background: #fff;
    color: var(--adm-muted);
    font-size: 13.5px;
    font-weight: 700;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.hidayah-progress li.active .hidayah-progress-dot {
    border-color: var(--adm-navy);
    background: var(--adm-navy);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(250, 166, 25, .28);
}

/* Completed: the number gives way to a gold tick */
.hidayah-progress li.completed .hidayah-progress-dot {
    border-color: var(--adm-navy);
    background: var(--adm-navy);
    color: transparent;
}

.hidayah-progress li.completed .hidayah-progress-dot::after {
    content: "";
    position: absolute;
    width: 11px;
    height: 6px;
    margin-top: -3px;
    border-left: 2.5px solid var(--adm-gold);
    border-bottom: 2.5px solid var(--adm-gold);
    transform: rotate(-45deg);
}

.hidayah-progress-label {
    display: block;
    font-weight: 600;
    letter-spacing: .02em;
}

.hidayah-progress li.active .hidayah-progress-label {
    color: var(--adm-ink);
    font-weight: 700;
}

.hidayah-progress li.completed .hidayah-progress-label {
    color: var(--adm-navy);
}

/* Compact version for phones: "Step 2 of 5 · Personal" + a bar. */
.hidayah-progress-compact {
    display: none;
}

.hidayah-progress-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    font-size: 13px;
}

.hidayah-progress-count {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--adm-gold-text);
}

.hidayah-progress-name {
    font-family: var(--adm-serif);
    font-weight: 700;
    color: var(--adm-ink);
}

.hidayah-progress-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--adm-line);
    overflow: hidden;
}

.hidayah-progress-bar span {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--adm-navy), var(--adm-gold));
    transition: width .35s ease;
}

/* --------------------------------------------------------------------------
   Step headings
   -------------------------------------------------------------------------- */

.hidayah-admission-page .hidayah-step-title {
    position: relative;
    margin: 0 0 6px;
    padding-left: 16px;
    font-size: clamp(21px, 2.4vw, 25px);
}

.hidayah-admission-page .hidayah-step-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 2px;
    background: var(--adm-gold);
}

.hidayah-admission-page .hidayah-step-title-sub {
    margin-top: 34px;
    margin-bottom: 18px;
    font-size: 19px;
}

.hidayah-step-sub {
    margin: 0 0 22px 16px !important;
    font-size: 14.5px;
    color: var(--adm-muted);
}

.hidayah-admission-page .hidayah-step-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 5px 12px 5px 10px;
    border: 1px solid var(--adm-line);
    border-radius: 999px !important;
    background: #fff;
    color: var(--adm-navy);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.hidayah-admission-page .hidayah-step-back-link:hover {
    border-color: var(--adm-navy);
    background: var(--adm-navy-soft);
}

/* --------------------------------------------------------------------------
   Study-mode choice cards
   -------------------------------------------------------------------------- */

.hidayah-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.hidayah-choice-card,
.hidayah-campus-card,
.hidayah-program-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    overflow: hidden;
    border: 1.5px solid var(--adm-line);
    border-radius: var(--adm-radius) !important;
    background: #fff;
    color: var(--adm-text);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s;
}

.hidayah-choice-card {
    gap: 6px;
    min-height: 210px;
    padding: 24px 22px 22px;
}

.hidayah-choice-card:hover,
.hidayah-campus-card:not(.is-disabled):hover,
.hidayah-program-card:not(.is-disabled):hover {
    border-color: #c9c3b3;
    box-shadow: var(--adm-shadow-hover);
    transform: translateY(-2px);
}

.hidayah-choice-card.is-selected,
.hidayah-campus-card.is-selected,
.hidayah-program-card.is-selected {
    border-color: var(--adm-navy);
    background: linear-gradient(160deg, var(--adm-navy-soft) 0, #fff 70%);
    box-shadow: 0 0 0 3px var(--adm-navy-ring);
}

.hidayah-choice-card:focus-visible,
.hidayah-campus-card:focus-visible,
.hidayah-program-card:focus-visible {
    outline: 3px solid var(--adm-gold);
    outline-offset: 2px;
}

.hidayah-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--adm-navy);
    transition: transform .2s;
}

.hidayah-choice-card:hover .hidayah-choice-icon,
.hidayah-choice-card.is-selected .hidayah-choice-icon {
    transform: scale(1.05);
}

.hidayah-choice-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: var(--adm-gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hidayah-choice-title {
    font-family: var(--adm-serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--adm-ink);
}

.hidayah-choice-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--adm-muted);
}

/* The choice card gets its own selected tick, top right. */
.hidayah-choice-card::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 22px;
    height: 22px;
    border: 2px solid var(--adm-field);
    border-radius: 50%;
    background: #fff;
    transition: border-color .2s, background-color .2s;
}

.hidayah-choice-card.is-selected::after {
    border-color: var(--adm-navy);
    background: var(--adm-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23faa619' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* --------------------------------------------------------------------------
   Campus + program cards
   -------------------------------------------------------------------------- */

.hidayah-campus-grid,
.hidayah-program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
    gap: 14px;
    align-items: stretch;
    border-radius: var(--adm-radius);
    transition: box-shadow .2s;
}

.hidayah-campus-card,
.hidayah-program-card {
    justify-content: flex-start;
    padding: 18px 46px 16px 20px;
}

/* Brand stripe down the left edge: faint on hover, solid when chosen. */
.hidayah-campus-card::before,
.hidayah-program-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--adm-gold);
    opacity: 0;
    transition: opacity .2s;
}

.hidayah-campus-card:not(.is-disabled):hover::before,
.hidayah-program-card:not(.is-disabled):hover::before {
    opacity: .5;
}

.hidayah-campus-card.is-selected::before,
.hidayah-program-card.is-selected::before {
    opacity: 1;
}

.hidayah-admission-page .hidayah-select-mark {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid var(--adm-field);
    border-radius: 50% !important;
    background: #fff;
    transition: background-color .2s, border-color .2s;
}

.hidayah-select-mark::after {
    content: "";
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border-left: 2px solid var(--adm-gold);
    border-bottom: 2px solid var(--adm-gold);
    opacity: 0;
    transform: rotate(-45deg) scale(.4);
    transition: opacity .2s, transform .2s;
}

.hidayah-campus-card:not(.is-disabled):hover .hidayah-select-mark,
.hidayah-program-card:not(.is-disabled):hover .hidayah-select-mark {
    border-color: var(--adm-navy);
}

.is-selected .hidayah-select-mark {
    border-color: var(--adm-navy);
    background: var(--adm-navy);
}

.is-selected .hidayah-select-mark::after {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

.is-disabled .hidayah-select-mark {
    display: none;
}

.hidayah-program-name,
.hidayah-campus-name {
    display: block;
    font-family: var(--adm-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--adm-ink);
}

.hidayah-program-meta-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin: 10px 0 12px;
}

.hidayah-program-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--adm-muted);
}

.hidayah-program-meta svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    fill: none;
    stroke: var(--adm-navy);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Admissions closed: listed, flat and greyed, but still readable. */
.hidayah-campus-card.is-disabled,
.hidayah-program-card.is-disabled {
    border-color: #ece8dc;
    background: #f7f5ef;
    box-shadow: none;
    cursor: not-allowed;
}

.is-disabled .hidayah-campus-name,
.is-disabled .hidayah-program-name {
    color: #7d7768;
}

.is-disabled .hidayah-program-meta {
    color: #8e887a;
}

.is-disabled .hidayah-program-meta svg {
    stroke: #a39d8e;
}

.hidayah-admission-page .hidayah-campus-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    align-self: flex-start;
    padding: 4px 10px 4px 9px;
    border-radius: 999px !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hidayah-campus-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.hidayah-campus-badge.open {
    background: var(--adm-green-soft);
    color: var(--adm-green);
}

.hidayah-campus-badge.closed {
    background: #eeebe2;
    color: #857e6f;
}

/* Men's / Women's section heading inside the program grid. */
.hidayah-program-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 0;
}

.hidayah-program-group:first-child {
    margin-top: 0;
}

.hidayah-admission-page .hidayah-program-group h3 {
    font-family: var(--adm-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--adm-gold-text);
    white-space: nowrap;
}

.hidayah-group-rule {
    flex: 1 1 auto;
    height: 1px;
    background: var(--adm-line);
}

.hidayah-group-count {
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-muted);
    white-space: nowrap;
}

/* Closed programs, folded away behind a disclosure. */
.hidayah-closed-fold {
    grid-column: 1 / -1;
    border: 1px dashed var(--adm-field);
    border-radius: var(--adm-radius-sm);
    background: var(--adm-cream);
}

.hidayah-closed-fold > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    list-style: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--adm-muted);
    cursor: pointer;
}

.hidayah-closed-fold > summary::-webkit-details-marker {
    display: none;
}

.hidayah-closed-fold > summary::before {
    content: "+";
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ece8dc;
    color: #7d7768;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.hidayah-closed-fold[open] > summary::before {
    content: "\2212";
}

.hidayah-closed-fold-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
    gap: 14px;
    padding: 0 14px 14px;
}

.hidayah-program-closed-note {
    width: 100%;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e0dbcc;
    font-size: 12px;
    line-height: 1.45;
    color: #857e6f;
}

/* Echo of the current pick, under the grid. */
.hidayah-program-selected {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 18px 0 0 !important;
    padding: 12px 16px;
    border: 1px solid #cdd5ea;
    border-left: 4px solid var(--adm-navy);
    border-radius: var(--adm-radius-sm);
    background: var(--adm-navy-soft);
    color: var(--adm-ink);
    font-size: 14px;
}

.hidayah-selected-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--adm-navy);
}

.hidayah-selected-name {
    font-weight: 700;
}

.hidayah-selected-schedule {
    color: var(--adm-muted);
}

.hidayah-grid-note,
.hidayah-empty-note {
    grid-column: 1 / -1;
    padding: 16px 18px;
    border-radius: var(--adm-radius-sm);
    font-size: 14px;
}

.hidayah-grid-note {
    border: 1px dashed var(--adm-field);
    background: var(--adm-cream);
    color: var(--adm-muted);
}

.hidayah-empty-note {
    margin-top: 16px !important;
    border: 1px solid var(--adm-gold-soft);
    background: var(--adm-gold-wash);
    color: var(--adm-gold-text);
}

/* Grade / Class panel under the program pick. */
.hidayah-program-extra {
    margin-top: 24px;
    padding: 18px 20px 20px;
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius-sm);
    background: var(--adm-cream);
}

.hidayah-extra-title {
    margin-bottom: 2px !important;
    font-family: var(--adm-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--adm-ink);
}

.hidayah-extra-sub {
    margin-bottom: 14px !important;
    font-size: 13.5px;
    color: var(--adm-muted);
}

/* --------------------------------------------------------------------------
   Eligibility (men-only campus, both online)
   -------------------------------------------------------------------------- */

.hidayah-eligibility-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    align-self: flex-start;
    padding: 4px 11px 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hidayah-choice-card .hidayah-eligibility-pill {
    margin-top: auto;
    transform: translateY(6px);
}

.hidayah-eligibility-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.hidayah-eligibility-pill.men {
    background: var(--adm-gold-wash);
    color: var(--adm-gold-text);
    border: 1px solid var(--adm-gold-soft);
}

.hidayah-eligibility-pill.all {
    background: var(--adm-green-soft);
    color: var(--adm-green);
    border: 1px solid #c6e0d1;
}

.hidayah-eligibility-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px !important;
    padding: 12px 16px;
    border: 1px solid var(--adm-gold-soft);
    border-left: 4px solid var(--adm-gold);
    border-radius: var(--adm-radius-sm);
    background: var(--adm-gold-wash);
    color: #7a4a00;
    font-size: 14px;
    line-height: 1.55;
}

.hidayah-eligibility-note.all {
    border-color: #c6e0d1;
    border-left-color: var(--adm-green);
    background: var(--adm-green-soft);
    color: var(--adm-green);
}

.hidayah-eligibility-note svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 2px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hidayah-locked-hint {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--adm-muted);
}

/* --------------------------------------------------------------------------
   Fields
   -------------------------------------------------------------------------- */

.hidayah-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 22px;
}

.hidayah-field-full {
    grid-column: 1 / -1;
}

.hidayah-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hidayah-admission-page .hidayah-field > label:not(.hidayah-checkbox-inline) {
    display: block;
    max-width: none;
    margin: 0 0 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--adm-ink);
}

.hidayah-field .req {
    color: var(--adm-red);
}

.hidayah-admission-page .hidayah-field input[type="text"],
.hidayah-admission-page .hidayah-field input[type="email"],
.hidayah-admission-page .hidayah-field input[type="tel"],
.hidayah-admission-page .hidayah-field input[type="date"],
.hidayah-admission-page .hidayah-field select,
.hidayah-admission-page .hidayah-field textarea {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--adm-field);
    border-radius: var(--adm-radius-sm);
    background-color: #fff;
    color: var(--adm-ink);
    font-family: var(--adm-sans);
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

/* iOS Safari gives a date input an intrinsic minimum width and ignores
   width:100%, so on a phone it pushed past its column and widened the page. */
.hidayah-admission-page .hidayah-field input[type="date"] {
    display: block;
    min-width: 0;
    max-width: 100%;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
}

.hidayah-admission-page .hidayah-field input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

/* One consistent chevron instead of each browser's own select arrow */
.hidayah-admission-page .hidayah-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23586074' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 13px center;
    background-repeat: no-repeat;
    background-size: 15px;
}

.hidayah-admission-page .hidayah-field textarea {
    height: auto;
    min-height: 104px;
    padding-top: 12px;
    line-height: 1.55;
    resize: vertical;
}

.hidayah-admission-page .hidayah-field input::placeholder,
.hidayah-admission-page .hidayah-field textarea::placeholder {
    color: #8a90a0;
}

.hidayah-admission-page .hidayah-field input:hover,
.hidayah-admission-page .hidayah-field select:hover,
.hidayah-admission-page .hidayah-field textarea:hover {
    border-color: #bfb9aa;
}

.hidayah-admission-page .hidayah-field input:focus,
.hidayah-admission-page .hidayah-field select:focus,
.hidayah-admission-page .hidayah-field textarea:focus {
    position: relative;
    z-index: 1;
    border-color: var(--adm-navy);
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 58, 115, .14);
}

.hidayah-admission-page .hidayah-field.has-error input,
.hidayah-admission-page .hidayah-field.has-error select,
.hidayah-admission-page .hidayah-field.has-error textarea {
    border-color: var(--adm-red);
    background-color: #fffafa;
    box-shadow: 0 0 0 3px rgba(163, 58, 44, .1);
}

.hidayah-admission-page .hidayah-field input.is-locked,
.hidayah-admission-page .hidayah-field select.is-locked {
    border-style: dashed;
    background-color: #f4f2ec;
    color: #6e6858;
    cursor: not-allowed;
}

.hidayah-error {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--adm-red);
}

.hidayah-error::before {
    content: "!";
    display: inline-flex;
    flex: 0 0 15px;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--adm-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.hidayah-field.has-error .hidayah-error {
    display: flex;
}

/* Country code + number joined into one control */
.hidayah-phone-group {
    display: flex;
    min-width: 0;
}

.hidayah-admission-page .hidayah-phone-group select {
    flex-shrink: 0;
    width: 132px;
    min-width: 0;
    border-right: none;
    border-radius: var(--adm-radius-sm) 0 0 var(--adm-radius-sm);
    background-color: var(--adm-cream);
    font-size: 13px;
}

.hidayah-admission-page .hidayah-phone-group input {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0 var(--adm-radius-sm) var(--adm-radius-sm) 0;
}

.hidayah-admission-page .hidayah-checkbox-inline {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    max-width: none;
    margin: 10px 0 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--adm-muted);
    cursor: pointer;
}

.hidayah-checkbox-inline input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--adm-navy);
}

/* --------------------------------------------------------------------------
   Terms
   -------------------------------------------------------------------------- */

.hidayah-terms {
    margin-top: 30px;
    padding: 0;
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius-sm);
    background: var(--adm-cream);
}

.hidayah-terms summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    list-style: none;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--adm-navy);
    cursor: pointer;
}

.hidayah-terms summary::-webkit-details-marker {
    display: none;
}

.hidayah-terms summary::before {
    content: "+";
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--adm-navy);
    color: var(--adm-gold);
    font-size: 15px;
    line-height: 1;
}

.hidayah-terms[open] summary::before {
    content: "\2212";
}

.hidayah-terms ul {
    margin: 0;
    padding: 0 18px 12px;
    list-style: none;
}

.hidayah-terms li {
    position: relative;
    margin-bottom: 9px;
    padding-left: 28px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--adm-text);
}

.hidayah-terms li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--adm-gold-wash);
    border: 1px solid var(--adm-gold-soft);
    color: var(--adm-gold-text);
    font-size: 10px;
    font-weight: 700;
}

.hidayah-admission-page .hidayah-terms-agree {
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius-sm);
    background: #fff;
    font-size: 14.5px;
    color: var(--adm-ink);
}

.hidayah-admission-page .hidayah-terms-agree.has-error {
    border-color: #efc3bd;
    background: var(--adm-red-soft);
    color: var(--adm-red);
}

.hidayah-terms-agree.has-error .hidayah-error {
    display: flex;
    flex: 0 0 100%;
}

/* --------------------------------------------------------------------------
   Review
   -------------------------------------------------------------------------- */

.hidayah-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hidayah-summary-section {
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius-sm);
    overflow: hidden;
}

.hidayah-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--adm-line);
    background: var(--adm-cream);
}

.hidayah-admission-page .hidayah-summary-head h3 {
    font-size: 16px;
}

.hidayah-admission-page .hidayah-summary-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--adm-field);
    border-radius: 999px !important;
    background: #fff;
    color: var(--adm-navy);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.hidayah-admission-page .hidayah-summary-edit:hover {
    border-color: var(--adm-navy);
    background: var(--adm-navy-soft);
}

.hidayah-summary-edit svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hidayah-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 0;
    padding: 16px;
}

.hidayah-summary-item {
    min-width: 0;
}

.hidayah-summary-item dt {
    margin: 0 0 2px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--adm-muted);
}

.hidayah-summary-item dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--adm-ink);
    overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Nav buttons
   -------------------------------------------------------------------------- */

.hidayah-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding: 18px 34px;
    border-top: 1px solid var(--adm-line);
    border-radius: 0 0 var(--adm-radius) var(--adm-radius);
    background: var(--adm-cream);
}

.hidayah-admission-page .hidayah-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid var(--adm-navy);
    border-radius: 999px !important;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}

.hidayah-admission-page .hidayah-btn-primary {
    margin-left: auto;
    background: var(--adm-navy);
    color: #fff;
}

.hidayah-admission-page .hidayah-btn-primary:hover,
.hidayah-admission-page .hidayah-btn-primary:focus {
    border-color: var(--adm-navy-deep);
    background: var(--adm-navy-deep);
    color: #fff;
    text-decoration: none;
}

.hidayah-btn-primary .hidayah-btn-arrow {
    color: var(--adm-gold);
    transition: transform .2s;
}

.hidayah-btn-primary:hover .hidayah-btn-arrow {
    transform: translateX(3px);
}

.hidayah-admission-page .hidayah-btn-ghost {
    border-color: var(--adm-field);
    background: #fff;
    color: var(--adm-ink);
}

.hidayah-admission-page .hidayah-btn-ghost:hover,
.hidayah-admission-page .hidayah-btn-ghost:focus {
    border-color: var(--adm-navy);
    background: var(--adm-navy-soft);
    color: var(--adm-navy);
    text-decoration: none;
}

.hidayah-admission-page .hidayah-btn-gold {
    border-color: var(--adm-gold);
    background: var(--adm-gold);
    color: var(--adm-ink);
}

.hidayah-admission-page .hidayah-btn-gold:hover {
    border-color: #e08e00;
    background: #e08e00;
    color: var(--adm-ink);
}

.hidayah-admission-page .hidayah-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.hidayah-admission-page .hidayah-btn.is-loading {
    opacity: .8;
    cursor: progress;
}

.hidayah-btn.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: var(--adm-gold);
    border-radius: 50%;
    animation: hidayah-spin .7s linear infinite;
}

.hidayah-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hidayah-btn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Sidebar cards
   -------------------------------------------------------------------------- */

.hidayah-aside-card {
    padding: 22px;
    background: var(--adm-card);
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow);
}

.hidayah-aside-card--navy {
    border-color: var(--adm-navy);
    color: #d7dcea;
    background-color: var(--adm-navy);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='16' y='16' width='40' height='40'/%3E%3Crect x='16' y='16' width='40' height='40' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='8'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, var(--adm-navy) 0%, var(--adm-navy-deep) 100%);
    background-size: 72px 72px, auto;
}

.hidayah-admission-page .hidayah-aside-card--navy h2 {
    color: #fff;
}

.hidayah-aside-eyebrow {
    margin-bottom: 4px !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--adm-gold-text);
}

.hidayah-aside-card--navy .hidayah-aside-eyebrow {
    color: var(--adm-gold);
}

.hidayah-admission-page .hidayah-aside-card h2 {
    margin-bottom: 14px;
    font-size: 18px;
}

.hidayah-aside-list {
    margin: 0;
}

.hidayah-aside-list > div {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-top: 1px dashed var(--adm-line);
}

.hidayah-aside-list > div:first-child {
    padding-top: 0;
    border-top: none;
}

.hidayah-aside-list dt {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--adm-muted);
}

.hidayah-aside-list dd {
    margin: 2px 0 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--adm-ink);
}

.hidayah-aside-list dd.is-empty {
    font-weight: 400;
    font-style: italic;
    color: #8a90a0;
}

.hidayah-aside-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px !important;
    padding-top: 14px;
    border-top: 1px solid var(--adm-line);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--adm-muted);
}

.hidayah-aside-note svg,
.hidayah-checklist svg {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    fill: none;
    stroke: var(--adm-green);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hidayah-help-lede {
    margin-bottom: 16px !important;
    font-size: 14px;
    line-height: 1.55;
}

.hidayah-help-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hidayah-admission-page .hidayah-aside-card--navy .hidayah-btn-ghost {
    border-color: rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
}

.hidayah-admission-page .hidayah-aside-card--navy .hidayah-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.hidayah-admission-page .hidayah-aside-card .hidayah-btn {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14.5px;
}

.hidayah-checklist {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hidayah-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--adm-text);
}

.hidayah-checklist svg {
    stroke: var(--adm-navy);
}

/* --------------------------------------------------------------------------
   Success screen
   -------------------------------------------------------------------------- */

.hidayah-success {
    display: flex;
    justify-content: center;
    padding: 8px 0 20px;
}

.hidayah-success-card {
    width: 100%;
    max-width: 640px;
    overflow: hidden;
    background: var(--adm-card);
    border: 1px solid var(--adm-line);
    border-top: 3px solid var(--adm-gold);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow-hover);
    text-align: center;
    animation: hidayah-fade-up .45s ease both;
}

.hidayah-success-top {
    padding: 42px 36px 30px;
}

.hidayah-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--adm-navy);
    box-shadow: 0 0 0 8px var(--adm-gold-wash), 0 0 0 9px var(--adm-gold-soft);
}

.hidayah-success-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--adm-gold);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: hidayah-draw .5s .35s ease forwards;
}

@keyframes hidayah-draw {
    to { stroke-dashoffset: 0; }
}

.hidayah-success-eyebrow {
    margin-bottom: 6px !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--adm-gold-text);
}

.hidayah-admission-page .hidayah-success-card h2 {
    margin-bottom: 10px;
    font-size: clamp(23px, 3vw, 28px);
}

.hidayah-success-sub {
    max-width: 460px;
    margin: 0 auto !important;
    font-size: 15px;
    line-height: 1.65;
    color: var(--adm-muted);
}

.hidayah-success-sub strong {
    color: var(--adm-ink);
}

.hidayah-success-ref {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 24px auto 0;
    padding: 16px 20px;
    max-width: 420px;
    border-radius: 12px;
    background: var(--adm-navy);
    color: #fff;
}

.hidayah-success-ref > span {
    flex: 0 0 100%;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--adm-gold);
}

.hidayah-success-ref strong {
    font-family: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
    font-size: 26px;
    letter-spacing: .08em;
}

.hidayah-admission-page .hidayah-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px !important;
    background: transparent;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.hidayah-admission-page .hidayah-copy-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
}

.hidayah-copy-btn svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.hidayah-success-next {
    padding: 26px 36px 30px;
    border-top: 1px solid var(--adm-line);
    background: var(--adm-cream);
    text-align: left;
}

.hidayah-admission-page .hidayah-success-next h3 {
    margin-bottom: 14px;
    font-size: 17px;
}

.hidayah-next-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    counter-reset: next;
}

.hidayah-next-steps li {
    position: relative;
    padding-left: 42px;
    counter-increment: next;
    font-size: 14px;
    line-height: 1.55;
    color: var(--adm-text);
}

.hidayah-next-steps li::before {
    content: counter(next);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--adm-navy);
    color: var(--adm-gold);
    font-size: 13px;
    font-weight: 700;
}

.hidayah-next-steps strong {
    display: block;
    font-size: 15px;
    color: var(--adm-ink);
}

.hidayah-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hidayah-success-actions .hidayah-btn-primary {
    margin-left: 0;
}

.hidayah-help {
    margin: 22px 0 0 !important;
    font-size: 14px;
    text-align: center;
    color: var(--adm-muted);
}

.hidayah-help a {
    font-weight: 700;
    text-decoration: none;
}

.hidayah-help a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Loader (full-screen, shown on submit)
   -------------------------------------------------------------------------- */

#loader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(26, 43, 87, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

#loader::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    border: 4px solid rgba(255, 255, 255, .25);
    border-top-color: #faa619;
    border-radius: 50%;
    animation: hidayah-spin .8s linear infinite;
}

#loader::after {
    content: "Submitting your application\2026";
    position: absolute;
    top: calc(50% + 46px);
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
}

@keyframes hidayah-spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .hidayah-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .hidayah-aside {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* The live selection is already echoed inside the form on small screens. */
    .hidayah-aside-card--summary {
        display: none;
    }
}

@media (max-width: 760px) {
    #content.hidayah-admission-page {
        padding: 20px 0 48px;
    }

    .hidayah-admission {
        padding: 0 12px;
    }

    .hidayah-progress {
        padding: 16px 18px 14px;
    }

    .hidayah-progress ol {
        display: none;
    }

    .hidayah-progress-compact {
        display: block;
    }

    .hidayah-form-body {
        padding: 22px 18px 4px;
    }

    .hidayah-choice-grid,
    .hidayah-campus-grid,
    .hidayah-program-grid,
    .hidayah-closed-fold-grid,
    .hidayah-grid-2,
    .hidayah-summary-list,
    .hidayah-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .hidayah-choice-card {
        min-height: 0;
        padding: 20px 18px;
    }

    .hidayah-choice-icon {
        width: 46px;
        height: 46px;
    }

    .hidayah-choice-card .hidayah-eligibility-pill {
        margin-top: 8px;
        transform: none;
    }

    .hidayah-campus-card,
    .hidayah-program-card {
        padding: 15px 44px 14px 18px;
    }

    .hidayah-closed-fold-grid {
        padding: 0 10px 10px;
    }

    .hidayah-step-sub {
        margin-left: 0 !important;
    }

    /* Nav sticks to the bottom of the screen while the form is in view */
    .hidayah-nav {
        position: sticky;
        bottom: 0;
        z-index: 5;
        margin-top: 22px;
        padding: 12px 18px;
        box-shadow: 0 -6px 16px -12px rgba(28, 37, 65, .35);
    }

    .hidayah-admission-page .hidayah-btn {
        min-height: 48px;
        padding: 0 20px;
        font-size: 15px;
    }

    .hidayah-admission-page .hidayah-nav .hidayah-btn-primary {
        flex: 1 1 auto;
    }

    /* iOS Safari zooms the page in when a field under 16px gets focus, and
       once zoomed the page can be dragged sideways. 16px everywhere on phones. */
    .hidayah-admission-page .hidayah-field input[type="text"],
    .hidayah-admission-page .hidayah-field input[type="email"],
    .hidayah-admission-page .hidayah-field input[type="tel"],
    .hidayah-admission-page .hidayah-field input[type="date"],
    .hidayah-admission-page .hidayah-field select,
    .hidayah-admission-page .hidayah-field textarea {
        font-size: 16px;
    }

    .hidayah-admission-page .hidayah-phone-group select {
        width: 118px;
        padding-left: 10px;
        padding-right: 26px;
        background-position: right 8px center;
    }

    .hidayah-success-top {
        padding: 32px 20px 24px;
    }

    .hidayah-success-next {
        padding: 22px 20px 24px;
    }

    .hidayah-success-actions .hidayah-btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 360px) {
    .hidayah-admission-page .hidayah-phone-group select {
        width: 108px;
        padding-right: 22px;
        padding-left: 8px;
        background-position: right 6px center;
    }

    .hidayah-admission-page .hidayah-phone-group input {
        padding-left: 10px;
    }
}
