/* واجهات التسجيل: مطابقة هوية منصة أكاديميات أبناء المرجعية */
body:has(.academy-portal) {
    background: #f8fbf8 !important;
}

body:has(.academy-portal) .top-bar-style2,
body:has(.academy-portal) .main-header,
body:has(.academy-portal) footer:not(.academy-actions),
body:has(.academy-portal) .donnte {
    display: none !important;
}

.academy-portal {
    --academy-green: #7fc23b;
    --academy-green-dark: #66a72c;
    --academy-green-soft: #f1f8e9;
    --academy-orange: #f8ae25;
    --academy-orange-soft: #fff8e9;
    --academy-blue: #14a9e1;
    --academy-blue-soft: #edf9fd;
    --academy-ink: #19394b;
    --academy-muted: #6e7e84;
    --academy-line: #dfe8df;
    --academy-bg: #f9fbf9;
    color: var(--academy-ink);
    background: var(--academy-bg);
    font-family: "Cairo", "Almarai", Arial, sans-serif;
    min-height: calc(100vh - 1px);
    padding: 0 0 110px;
}

.academy-portal *, .academy-portal *::before, .academy-portal *::after { box-sizing: border-box; }

/* عقد اتجاه النص: المحتوى العربي RTL، والقيم الرقمية المعزولة فقط LTR. */
.academy-portal,
.academy-portal main,
.academy-portal form,
.academy-portal .academy-step,
.academy-portal .academy-step-heading,
.academy-portal .academy-field,
.academy-portal .academy-choice-card,
.academy-portal .academy-package-card,
.academy-portal .academy-payment-plan,
.academy-portal .academy-transport-option,
.academy-portal .academy-reference-information-card,
.academy-portal .academy-reference-consent,
.academy-portal .academy-review,
.academy-portal .academy-alert,
.academy-portal .academy-form-journey,
.academy-portal .academy-form-journey span,
.academy-portal select,
.academy-portal option,
.academy-portal textarea,
.academy-portal input:not([type="tel"]):not([type="number"]):not([type="date"]):not([inputmode="numeric"]) {
    direction: rtl;
    text-align: right;
}

.academy-portal input[type="tel"],
.academy-portal input[type="number"],
.academy-portal input[type="date"],
.academy-portal input[inputmode="numeric"] {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

.academy-portal [data-summary-package],
.academy-portal [data-summary-transport],
.academy-portal [data-summary-total],
.academy-portal .academy-installment-details strong,
.academy-portal .academy-package-card > strong,
.academy-portal .academy-request-number {
    direction: ltr;
    unicode-bidi: isolate;
}

.academy-portal .academy-price-summary > div,
.academy-portal .academy-installment-details > div,
.academy-portal .academy-review > div { text-align: right; }

.academy-portal .academy-form-journey span { justify-content: flex-start; }
.academy-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.academy-shell.academy-narrow { width: min(760px, calc(100% - 32px)); }

.academy-reference-header {
    min-height: 90px;
    padding: 16px max(16px, calc((100% - 1335px) / 2));
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(90deg, #f2f5ee 0%, #fcfbf1 52%, #eff8e9 100%);
    border-bottom: 1px solid #dce8d7;
}

.academy-reference-brand { display: flex; align-items: center; gap: 13px; text-align: right; }
.academy-reference-brand-icon {
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--academy-orange);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 8px 14px rgba(181, 128, 20, .20);
}
.academy-reference-brand-icon i { color: #fff; font-size: 22px; }

.academy-reference-brand h1 {
    margin: 0 0 3px;
    color: var(--academy-green-dark);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.academy-reference-brand p { margin: 0; color: #758086; font-size: 12px; }
.academy-reference-track {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    padding: 8px 16px;
    border: 1px solid #f2c664;
    border-radius: 10px;
    background: #fffdfa;
    color: #e19b1a !important;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}
.academy-reference-track i { margin-left: 7px; font-size: 13px; }

.academy-reference-track:hover { color: #bd7d08 !important; background: #fff8e8; }
.academy-reference-header-actions { display: flex; align-items: center; gap: 9px; }
.academy-reference-pay { border-color: #d7e4da; color: #405b57 !important; }
.academy-reference-breadcrumb { display: none; }
.academy-reference-breadcrumb .active { padding: 7px 13px; border: 1px solid #9acd68; border-radius: 999px; color: var(--academy-green-dark); background: #f5faef; font-weight: 800; }
.academy-package-picker { width: min(506px, 100%); margin: 0 auto 20px; }
.academy-package-empty { display: grid; min-height: 170px; place-items: center; align-content: center; gap: 11px; width: min(1024px, 100%); margin: 0 auto 20px; border: 2px dashed #e0eee0; border-radius: 17px; color: var(--academy-green); font-size: 28px; }
.academy-package-empty span { color: var(--academy-muted); font-size: 14px; }
.academy-package-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 18px; width: min(1080px, 100%); margin: 0 auto 28px; padding-bottom: 10px; }
.academy-package-card { position: relative; display: flex; min-height: 430px; height: 100%; flex-direction: column; padding: 20px 21px 22px; overflow: hidden; border: 1px solid #dce8d9; border-top: 7px solid #9bd35f; border-radius: 17px; background: linear-gradient(180deg, #fbfff9, #fff 42%); color: var(--academy-ink); text-align: right; cursor: pointer; font: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, outline-color .18s ease; }
.academy-package-card[data-package-tone="0"] { border-color: #dce8d9; border-top-color: #9bd35f; background: linear-gradient(180deg, #fbfff9, #fff 42%); }
.academy-package-card[data-package-tone="1"] { border-color: #ffc345; border-top-color: #fbb42d; background: linear-gradient(180deg, #fffaf0, #fff 42%); }
.academy-package-card[data-package-tone="2"] { border-color: #54c8ef; border-top-color: #3fc1eb; background: linear-gradient(180deg, #f4fcff, #fff 42%); }
.academy-package-card:hover, .academy-package-card.selected { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(50, 91, 55, .14); }
.academy-package-card.selected { outline: 3px solid rgba(141, 201, 74, .25); }.academy-package-card[data-package-tone="1"].selected { outline-color: rgba(248, 174, 37, .30); }.academy-package-card[data-package-tone="2"].selected { outline-color: rgba(20, 169, 225, .28); }
.academy-package-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; margin-left: 34px; }
.academy-package-badge { display: inline-block; max-width: calc(100% - 60px); overflow: hidden; padding: 4px 10px; border-radius: 999px; color: var(--academy-green-dark); background: #f0f7e9; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.academy-package-icon { display: grid; flex: 0 0 51px; width: 51px; height: 51px; place-items: center; border-radius: 50%; background: #78bd37; color: #fff; font-size: 23px; box-shadow: 0 8px 16px rgba(96, 165, 46, .20); }.academy-package-card[data-package-tone="1"] .academy-package-badge { color: #b8750a; background: #fff2d7; }.academy-package-card[data-package-tone="1"] .academy-package-icon { background: #dda317; }.academy-package-card[data-package-tone="2"] .academy-package-badge { color: #087eaa; background: #e5f8ff; }.academy-package-card[data-package-tone="2"] .academy-package-icon { background: #18a8de; }
.academy-package-card h3 { margin: 15px 0 7px; color: var(--academy-ink); font-size: 19px; font-weight: 900; }.academy-package-card p { min-height: 44px; margin: 0; color: var(--academy-muted); font-size: 12px; line-height: 1.8; }
.academy-package-card > strong { display: block; margin: 17px 0 14px; padding: 12px 0; border-top: 1px solid #e7eee4; border-bottom: 1px solid #e7eee4; color: #37973f; font-size: 25px; direction: ltr; text-align: center; }.academy-package-card[data-package-tone="1"] > strong { color: #c7880e; }.academy-package-card[data-package-tone="2"] > strong { color: #0c8abb; }.academy-package-card > strong em { color: var(--academy-muted); font-size: 11px; font-style: normal; font-weight: 500; }
.academy-package-card ul { display: grid; flex: 1; align-content: start; gap: 7px; margin: 0; padding: 2px 0 0; list-style: none; font-size: 12px; line-height: 1.55; }.academy-package-benefit { position: relative; padding-right: 21px; color: #425d62; }.academy-package-benefit::before { content: "✓"; position: absolute; right: 0; top: 0; color: #67ad31; font-weight: 900; }.academy-package-card[data-package-tone="1"] .academy-package-benefit::before { color: #db9d16; }.academy-package-card[data-package-tone="2"] .academy-package-benefit::before { color: #0c9bd1; }
.academy-package-radio { position: absolute; top: 20px; left: 20px; width: 25px; height: 25px; border: 2px solid #dce9df; border-radius: 50%; background: #fff; }.academy-package-card.selected .academy-package-radio { border-color: var(--academy-green); box-shadow: inset 0 0 0 5px #fff; background: var(--academy-green); }.academy-package-card[data-package-tone="1"].selected .academy-package-radio { border-color: #dfa41a; background: #dfa41a; }.academy-package-card[data-package-tone="2"].selected .academy-package-radio { border-color: #16a5dd; background: #16a5dd; }
.academy-price-summary { display: grid; grid-template-columns: repeat(3, 1fr); width: min(1024px, 100%); margin: 18px auto; overflow: hidden; border: 1px solid #ffd678; border-radius: 16px; background: #fffefa; }.academy-price-summary > div { display: grid; gap: 5px; padding: 13px 22px; border-left: 1px solid #f0ead8; text-align: center; }.academy-price-summary > div:last-child { border-left: 0; }.academy-price-summary span { color: #778077; font-size: 12px; }.academy-price-summary strong { color: #d38b10; font-size: 17px; }
.academy-step[data-step="3"]:has(#academy-payment-details:not([hidden])) > .academy-price-summary { display: none; }
.academy-payment-card { width: min(1024px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid #dcebd8; border-radius: 18px; background: #fff; }.academy-transport-option { display: flex; align-items: center; gap: 13px; padding: 18px 23px; border-bottom: 1px solid #e5efe3; cursor: pointer; }.academy-transport-option input { width: 41px; height: 22px; accent-color: var(--academy-green); }.academy-transport-option > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #fff2d9; color: #e19b1a; }.academy-transport-option strong, .academy-transport-option small { display: block; }.academy-transport-option small { margin-top: 3px; color: var(--academy-muted); font-size: 12px; }
.academy-payment-plans { padding: 20px 23px; }.academy-payment-plans h3 { margin: 0 0 15px; color: var(--academy-green-dark); font-size: 17px; }.academy-payment-plan-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.academy-payment-plan { position: relative; display: grid; grid-template-columns: 45px 1fr 28px; align-items: center; gap: 11px; min-height: 94px; padding: 15px 16px; border: 2px solid #dce8dc; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }.academy-payment-plan:has(input:checked) { border-color: var(--academy-green); background: #f6fbf1; box-shadow: 0 7px 16px rgba(85, 143, 50, .10); }.academy-payment-plan input { position: absolute; opacity: 0; }.academy-payment-plan-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; background: #eff8e8; color: var(--academy-green-dark); font-size: 19px; }.academy-payment-plan-copy { display: grid; gap: 4px; min-width: 0; }.academy-payment-plan strong { color: var(--academy-ink); font-size: 14px; }.academy-payment-plan-copy small { color: var(--academy-muted); font-size: 11px; line-height: 1.55; }.academy-payment-plan-check { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #d7e4d4; border-radius: 50%; color: transparent; background: #fff; font-size: 11px; }.academy-payment-plan:has(input:checked) .academy-payment-plan-check { border-color: var(--academy-green); color: #fff; background: var(--academy-green); }
.academy-installment-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 14px; overflow: hidden; border: 1px solid #e2eadf; border-radius: 11px; background: #fcfefc; }.academy-installment-row { display: grid; gap: 4px; padding: 11px 14px; border-left: 1px solid #e6eee3; }.academy-installment-row:last-child { border-left: 0; }.academy-installment-details span { color: var(--academy-muted); font-size: 12px; }.academy-installment-details strong { color: var(--academy-ink); font-size: 14px; direction: ltr; text-align: right; }
.academy-student-form-shell { width: min(1024px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid #cce9b2; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(54, 87, 46, .08); }.academy-student-form-shell > header { display: flex; align-items: center; justify-content: space-between; padding: 17px 25px; background: linear-gradient(90deg, #fffdf8, #f5fbee); }.academy-student-form-shell h2 { margin: 0; color: var(--academy-green-dark); font-size: 22px; font-weight: 900; }.academy-student-form-shell header p { margin: 3px 0 0; color: #88928a; font-size: 12px; }.academy-student-form-shell > header > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--academy-orange); }.academy-form-sections { display: flex; justify-content: space-around; gap: 10px; padding: 18px 14px; border-top: 1px solid #e5f0dc; border-bottom: 1px solid #e5f0dc; color: #7b8a81; font-size: 12px; }.academy-form-sections .active { color: var(--academy-green-dark); font-weight: 900; }
.academy-field output { display: block; min-height: 45px; padding: 12px 13px; border: 1px solid #d9e4d5; border-radius: 10px; color: #405d68; background: #f9fcf8; font-weight: 500; }
.academy-reference-main { padding-top: 38px; }

.academy-hero { display: none; }
.academy-progress {
    display: flex;
    width: min(760px, 100%);
    align-items: center;
    justify-content: center;
    gap: 29px;
    margin: 0 auto 31px;
    padding: 0;
    list-style: none;
    overflow: visible;
    border: 0;
    background: transparent;
}

/* الصفحة الأولى في المرجع تبدأ مباشرة ببطاقات الفروع دون شريط مراحل. */
.academy-portal:has(.academy-step[data-step="1"].active) .academy-progress { display: none; }
.academy-portal:has(.academy-step[data-step="1"].active) .academy-reference-main { padding-top: 38px; }
.academy-portal:has(.academy-step[data-step="1"].active) .academy-actions { display: none; }

.academy-progress li {
    position: relative;
    flex: 0 0 auto;
    padding: 7px 13px;
    border: 1px solid #dce7df;
    border-radius: 999px;
    color: #7d8b84;
    background: rgba(255, 255, 255, .72);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.academy-progress li::after {
    content: "←";
    position: absolute;
    left: -21px;
    top: 50%;
    color: #91a097;
    font-size: 15px;
    transform: translateY(-52%);
}
.academy-progress li:last-child::after { display: none; }
.academy-progress li.active { border-color: #b8d99b; color: var(--academy-green-dark); background: var(--academy-green-soft); }
.academy-progress li.active:has(+ li:not(.active)), .academy-progress li.active:last-child { border-color: #8dc957; box-shadow: 0 3px 10px rgba(103, 166, 45, .10); }
.academy-step { display: none; }
.academy-step.active { display: block; }

.academy-step-heading { max-width: 810px; margin: 0 auto 25px; text-align: center; }
.academy-step-heading h1, .academy-step-heading h2, .academy-result h1, .academy-result h2 {
    margin: 0 0 9px;
    color: var(--academy-ink);
    font-size: clamp(23px, 2.4vw, 29px);
    line-height: 1.42;
    font-weight: 900;
}

.academy-step-heading p, .academy-result p { margin: 0; color: var(--academy-muted); font-size: 14px; line-height: 1.8; }
.academy-step-heading > span, .academy-kicker { display: inline-block; margin-bottom: 8px; color: var(--academy-green-dark); font-size: 13px; font-weight: 800; }
.academy-reference-intro { margin-top: 1px; margin-bottom: 27px; }

.academy-branch-grid, .academy-category-grid { display: grid; gap: 20px; }
.academy-reference-branch-grid { width: min(896px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; }
.academy-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(980px, 100%); margin: 0 auto; }

.academy-branch-card, .academy-choice-card {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.academy-branch-card > input, .academy-choice-card > input { position: absolute; opacity: 0; pointer-events: none; }

/* The action bar styles use flex display, which otherwise overrides the native
   hidden attribute and exposes the submit action before the final review step. */
#academy-submit[hidden], #academy-prev[hidden], #academy-next[hidden], #academy-package-empty[hidden] { display: none !important; }
.academy-reference-branch-card {
    min-height: 208px;
    padding: 24px 24px 22px;
    border: 2px solid;
    border-radius: 17px;
    text-align: center;
}

.academy-reference-branch-card.academy-boys { border-color: #b7df8f; background: linear-gradient(135deg, #f8fcf4, #edf8e7); }
.academy-reference-branch-card.academy-girls { border-color: #ffd078; background: linear-gradient(135deg, #fffdf8, #fff7e7); }
.academy-reference-branch-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(73, 106, 57, .11); }
.academy-reference-branch-card:has(input:checked) { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(140, 201, 74, .16), 0 12px 24px rgba(73, 106, 57, .12); }
.academy-reference-branch-card.academy-girls:has(input:checked) { box-shadow: 0 0 0 4px rgba(255, 180, 49, .18), 0 12px 24px rgba(127, 101, 42, .12); }

.academy-reference-branch-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 13px;
    font-size: 25px;
    box-shadow: 0 7px 15px rgba(60, 87, 48, .15);
}
.academy-reference-branch-icon i { color: #fff; font-size: 23px; }

.academy-boys .academy-reference-branch-icon { background: #a5d46c; }
.academy-girls .academy-reference-branch-icon { background: var(--academy-orange); }
.academy-branch-body { display: grid; gap: 7px; }
.academy-reference-branch-body strong { color: var(--academy-green-dark); font-size: 18px; font-weight: 900; }
.academy-girls .academy-reference-branch-body strong { color: #ed9e1b; }
.academy-reference-branch-body span { color: #718086; font-size: 12px; }
.academy-reference-branch-body em { margin-top: 5px; color: var(--academy-green-dark); font-size: 13px; font-style: normal; font-weight: 800; }
.academy-girls .academy-reference-branch-body em { color: #ef9f1b; }
.academy-reference-branch-body em b { font-size: 18px; vertical-align: -1px; }

.academy-choice-card {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 22px 20px 15px;
    border: 1px solid #dfe9da;
    border-radius: 22px;
    background: linear-gradient(135deg, #fbfef9, #f4faef);
    box-shadow: 0 10px 25px rgba(55, 87, 52, .035);
}

.academy-choice-card:nth-child(2) { border-color: #f0e2bc; background: linear-gradient(135deg, #fffdf7, #fbf7eb); }
.academy-choice-card:nth-child(3) { border-color: #d8eaf0; background: linear-gradient(135deg, #fbfeff, #f0f9fb); }
.academy-choice-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--academy-green); opacity: 0; transition: opacity .18s ease; }
.academy-choice-card:nth-child(2)::before { background: #e2a91f; }
.academy-choice-card:nth-child(3)::before { background: var(--academy-blue); }
.academy-choice-card:hover { border-color: #a9d47e; transform: translateY(-3px); box-shadow: 0 13px 28px rgba(65, 95, 55, .09); }
.academy-choice-card:nth-child(2):hover { border-color: #e5ba55; }
.academy-choice-card:nth-child(3):hover { border-color: #72c9e7; }
.academy-choice-card:has(input:checked) { border: 2px solid var(--academy-green); background: #f8fcf4; box-shadow: 0 11px 25px rgba(110, 168, 53, .14); }
.academy-choice-card:nth-child(2):has(input:checked) { border-color: #e2a91f; background: #fffdf7; box-shadow: 0 11px 25px rgba(190, 139, 20, .13); }
.academy-choice-card:nth-child(3):has(input:checked) { border-color: var(--academy-blue); background: #f7fdff; box-shadow: 0 11px 25px rgba(20, 169, 225, .13); }
.academy-choice-card:has(input:checked)::before { opacity: 1; }
.academy-choice-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.academy-choice-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; color: #fff !important; background: var(--academy-green); box-shadow: 0 8px 18px rgba(106, 174, 50, .19); }
.academy-choice-card:nth-child(2) .academy-choice-icon { background: #e4a91d; box-shadow: 0 8px 18px rgba(196, 140, 17, .18); }
.academy-choice-card:nth-child(3) .academy-choice-icon { background: var(--academy-blue); box-shadow: 0 8px 18px rgba(20, 151, 205, .18); }
.academy-choice-icon i { color: #fff; font-size: 25px; }
.academy-choice-radio { width: 27px; height: 27px; border: 2px solid #dbe6dd; border-radius: 50%; background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 6px transparent; }
.academy-choice-card:has(input:checked) .academy-choice-radio { border-color: var(--academy-green); background: var(--academy-green); box-shadow: inset 0 0 0 6px #fff; }
.academy-choice-card:nth-child(2):has(input:checked) .academy-choice-radio { border-color: #e2a91f; background: #e2a91f; }
.academy-choice-card:nth-child(3):has(input:checked) .academy-choice-radio { border-color: var(--academy-blue); background: var(--academy-blue); }
.academy-choice-content { display: grid; gap: 7px; text-align: right; }
.academy-choice-content strong { color: #4e8f24; font-size: 18px; font-weight: 900; }
.academy-choice-card:nth-child(2) .academy-choice-content strong { color: #b88208; }
.academy-choice-card:nth-child(3) .academy-choice-content strong { color: #087faf; }
.academy-choice-content > span { min-height: 44px; color: var(--academy-muted); font-size: 12px; line-height: 1.85; }
.academy-choice-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(207, 222, 207, .72); }
.academy-choice-meta small, .academy-choice-meta em { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 3px 9px; border: 1px solid #dbe6dc; border-radius: 999px; color: #536861; background: rgba(255, 255, 255, .74); font-size: 10px; font-style: normal; font-weight: 700; }
.academy-choice-meta em { margin-right: auto; border-color: transparent; color: #fff; background: var(--academy-green); }
.academy-choice-card:nth-child(2) .academy-choice-meta em { background: #db9f16; }
.academy-choice-card:nth-child(3) .academy-choice-meta em { background: var(--academy-blue); }
.academy-package-note { width: min(980px, 100%); margin: 20px auto 0; padding: 15px 18px; border: 1px solid #f6d28d; border-radius: 13px; background: #fff9eb; color: #8a621e; }

.academy-reference-information-grid {
    display: grid;
    width: min(970px, 100%);
    grid-template-columns: 1fr 1fr;
    gap: 17px;
    margin: 19px auto;
}

.academy-reference-information-card { overflow: hidden; border: 1px solid; border-radius: 16px; background: #fff; }
.academy-reference-information-card header { display: flex; align-items: center; gap: 10px; padding: 12px 17px; border-bottom: 1px solid; }
.academy-reference-information-card header span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-weight: 900; }
.academy-reference-information-card h3 { margin: 0; font-size: 16px; font-weight: 900; }
.academy-reference-information-card > div { padding: 18px 20px; text-align: right; }
.academy-reference-information-card > div strong { display: block; color: var(--academy-ink); font-size: 13px; }
.academy-reference-information-card > div p { margin: 4px 0 0; color: var(--academy-muted); font-size: 12px; }
.academy-reference-conditions { border-color: #bfe29e; }
.academy-reference-conditions header { border-bottom-color: #dceece; color: var(--academy-green-dark); }
.academy-reference-conditions header span { background: var(--academy-green); }
.academy-reference-documents { border-color: #ffd17f; }
.academy-reference-documents header { border-bottom-color: #ffe4b3; color: #eea020; }
.academy-reference-documents header span { background: var(--academy-orange); }
.academy-reference-documents ul { display: grid; gap: 9px; margin: 0; padding: 17px 25px; list-style: none; }
.academy-reference-documents li { color: var(--academy-ink); font-size: 13px; }
.academy-reference-documents li b { float: left; color: #f4aa27; font-size: 18px; }
.academy-reference-documents li em { color: var(--academy-muted); font-size: 11px; font-style: normal; }
.academy-reference-consent {
    display: flex;
    width: min(970px, 100%);
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 15px 20px;
    border: 1px solid #d7e6d8;
    border-radius: 12px;
    background: #fcfefc;
    color: var(--academy-ink);
    font-size: 13px;
    font-weight: 800;
}
.academy-reference-consent input { width: 17px; height: 17px; accent-color: var(--academy-green); }
.academy-reference-consent > span { margin-right: auto; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--academy-green); color: #fff; font-size: 12px; }

.academy-form-grid, .academy-review, .academy-tracking-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.academy-form-grid { width: min(930px, 100%); margin: 0 auto; padding: 27px; border: 1px solid #e4ece0; border-radius: 18px; background: #fff; box-shadow: 0 9px 24px rgba(36, 76, 45, .05); }
.academy-form-step { width: min(1024px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid #cfe5bd; border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(54, 87, 46, .08); }
.academy-form-step > .academy-step-heading { position: relative; max-width: none; margin: 0; padding: 22px 90px 20px 28px; background: linear-gradient(90deg, #fffdf8, #f4faee); text-align: right; }
.academy-form-step > .academy-step-heading::before { position: absolute; right: 25px; top: 24px; display: grid; width: 49px; height: 49px; place-items: center; border-radius: 15px; color: #fff; background: var(--academy-orange); font: normal normal normal 20px/1 FontAwesome; box-shadow: 0 8px 17px rgba(211, 150, 31, .19); content: "\f007"; }
.academy-form-step--guardian > .academy-step-heading::before { content: "\f0c0"; }
.academy-form-step--wellbeing > .academy-step-heading::before { content: "\f21e"; }
.academy-form-step--review > .academy-step-heading::before { content: "\f058"; }
.academy-form-step > .academy-step-heading h2 { color: var(--academy-green-dark); font-size: 22px; }
.academy-form-step > .academy-step-heading > span { margin-bottom: 3px; color: #d59214; font-size: 11px; }
.academy-form-step > .academy-step-heading p { font-size: 12px; }
.academy-form-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 16px 22px; border-top: 1px solid #e9f1e3; border-bottom: 1px solid #e2edda; background: #fcfefb; }
.academy-form-journey span { display: inline-flex; min-height: 35px; align-items: center; justify-content: center; gap: 7px; border-radius: 9px; color: #849087; font-size: 11px; font-weight: 700; }
.academy-form-journey span.active { color: var(--academy-green-dark); background: var(--academy-green-soft); font-weight: 900; }
.academy-form-journey span.complete { color: #5c8f35; }
.academy-form-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }.academy-form-tabs button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 6px; padding: 7px 9px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #849087; font: inherit; font-size: 11px; font-weight: 800; line-height: 1.45; text-align: center; cursor: pointer; transition: color .16s ease, border-color .16s ease, background .16s ease; }.academy-form-tabs button:hover { border-color: #d9e8d2; color: var(--academy-green-dark); background: #f7fbf3; }.academy-form-tabs button.active { border-color: #b5d997; color: var(--academy-green-dark); background: var(--academy-green-soft); box-shadow: 0 4px 10px rgba(92, 143, 53, .08); }.academy-form-tabs button.complete { color: #5c8f35; }.academy-form-tabs button.complete::before { color: #5c8f35; content: "✓"; font-size: 12px; }.academy-form-tabs button:disabled { cursor: default; opacity: .7; }
.academy-form-step > .academy-form-grid { width: 100%; margin: 0; padding: 28px; border: 0; border-radius: 0; box-shadow: none; }
.academy-form-step > .academy-review { width: 100%; margin: 0; padding: 28px; }
.academy-form-step > .academy-review > div { min-height: 78px; align-content: center; padding: 17px 19px; border-color: #dfe9da; background: #fbfdf9; }
.academy-field { display: grid; gap: 8px; margin: 0; color: var(--academy-ink); font-size: 13px; font-weight: 800; }
.academy-field.wide { grid-column: 1 / -1; }
.academy-field input, .academy-field select, .academy-field textarea, .academy-lookup input {
    width: 100%;
    min-height: 45px;
    border: 1px solid #d9e4d5;
    border-radius: 10px;
    background: #fcfefc;
    color: #294256;
    padding: 11px 13px;
    font: inherit;
    font-weight: 500;
    text-align: right;
}

.academy-field textarea { min-height: 94px; resize: vertical; }
.academy-field input:hover, .academy-field select:hover, .academy-field textarea:hover { border-color: #b8d39f; }
.academy-field input:focus, .academy-field select:focus, .academy-field textarea:focus { outline: 3px solid rgba(141, 201, 74, .15); border-color: var(--academy-green); background: #fff; }
.academy-field.invalid input, .academy-field.invalid select, .academy-field.invalid textarea { border-color: #d75c5c; }
.academy-field legend { margin-bottom: 8px; font-weight: 800; }
.academy-field .inline { display: inline-flex; align-items: center; gap: 7px; margin-left: 24px; }
.academy-field .inline input, .academy-check-grid input { width: auto; min-height: 0; }
.academy-check-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.academy-check-grid label { padding: 8px 12px; border: 1px solid #e2ebdc; border-radius: 999px; font-size: 12px; font-weight: 700; }
.academy-registration-data-grid, .academy-wellbeing-layout { grid-template-columns: 1fr; gap: 18px; }
.academy-guardian-layout, .academy-attachments-layout, .academy-review-layout { grid-template-columns: 1fr; gap: 18px; }
.academy-registration-section { display: grid; gap: 17px; padding: 21px; border: 1px solid #e1ebdc; border-radius: 16px; background: linear-gradient(180deg, #fefffd, #fbfdf9); }
.academy-registration-section > header { display: flex; align-items: center; gap: 12px; }.academy-registration-section > header > span { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: #fff; background: var(--academy-green); font-size: 18px; }.academy-registration-section > header h3 { margin: 0; color: var(--academy-green-dark); font-size: 16px; }.academy-registration-section > header p, .academy-section-help { margin: 3px 0 0; color: var(--academy-muted); font-size: 12px; font-weight: 500; line-height: 1.7; }
.academy-section-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }.academy-section-fields .academy-field.wide { grid-column: 1 / -1; }.academy-study-data-grid > header > span { background: #d99b1c; }.academy-student-data-grid > header > span { background: #27a9d2; }
.academy-attendance-options { display: flex; flex-wrap: wrap; gap: 10px; }.academy-attendance-section .academy-field .inline { flex: 1 1 210px; min-height: 47px; margin: 0; padding: 10px 13px; border: 1px solid #e0eadc; border-radius: 11px; background: #fff; }.academy-attendance-section .academy-field .inline:has(input:checked) { border-color: var(--academy-green); color: var(--academy-green-dark); background: #f4faef; }
.academy-hobby-picker .academy-check-grid label, .academy-health-selection .academy-check-grid label { color: #4c6255; background: #fff; cursor: pointer; }.academy-hobby-picker .academy-check-grid label:has(input:checked), .academy-health-selection .academy-check-grid label:has(input:checked) { border-color: var(--academy-green); color: var(--academy-green-dark); background: #f2f9eb; }
.academy-health-section { border-color: #e7ddd6; }.academy-health-section > header > span { background: #db7158; }.academy-health-status-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.academy-health-status-card { display: grid; grid-template-columns: 42px 1fr; gap: 2px 11px; align-items: center; min-height: 91px; padding: 14px; border: 2px solid #e2e9df; border-radius: 14px; background: #fff; color: var(--academy-ink); text-align: right; font: inherit; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }.academy-health-status-card > span { display: grid; grid-row: 1 / span 2; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: #6bad40; font-size: 18px; }.academy-health-status-card small { color: var(--academy-muted); font-size: 11px; line-height: 1.5; }.academy-health-status-card[data-health-state="unhealthy"] > span { background: #d96d5e; }.academy-health-status-card.selected[data-health-state="healthy"] { border-color: #84bd5c; background: #f5fbf1; box-shadow: 0 7px 16px rgba(91, 145, 57, .10); }.academy-health-status-card.selected[data-health-state="unhealthy"] { border-color: #d9796b; background: #fff7f4; box-shadow: 0 7px 16px rgba(176, 91, 75, .10); }.academy-health-selection, .academy-health-details { margin-top: -3px; }.academy-health-details { padding-top: 5px; }.academy-health-section[data-health-state="healthy"] .academy-health-selection, .academy-health-section[data-health-state="healthy"] .academy-health-details { display: none; }
.academy-attachments-section { border-style: dashed; border-color: #bcd7aa; }
.academy-form-step--attachments > .academy-step-heading::before { content: "\f0c6"; }.academy-attachments-section > header > span { background: #7587c6; }.academy-attachment-groups { display: grid; gap: 18px; }.academy-attachment-group { display: grid; gap: 10px; padding: 15px; border: 1px solid #e1ebdc; border-radius: 13px; background: #fff; }.academy-attachment-group h3 { margin: 0; color: var(--academy-green-dark); font-size: 14px; }.academy-attachment-group--optional { border-style: dashed; background: #fcfefb; }.academy-attachment-group--optional h3 { color: #74867b; }.academy-attachments-status { margin: -3px 0 0; padding: 10px 13px; border: 1px solid #d8e9cd; border-radius: 10px; color: #597755; background: #f5fbf1; font-size: 12px; font-weight: 700; }.academy-review-fees > header > span { background: #d99b1c; }.academy-review-summary { width: 100%; margin: 0; }.academy-review-section .academy-review { width: 100%; }.academy-wellbeing-notes > header > span { background: #7587c6; }.academy-housing-details > header > span { background: #d99b1c; }
.academy-documents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 9px; }
.academy-documents label { display: grid; gap: 8px; padding: 13px; border: 1px dashed #b7d29d; border-radius: 11px; background: #fcfefb; }
.academy-file-input-shell { position: relative; display: block; min-width: 0; overflow: hidden; border: 1px solid #d8e5d3; border-radius: 10px; background: #fff; cursor: pointer; }
.academy-file-input-shell:focus-within { border-color: var(--academy-green); outline: 3px solid rgba(141, 201, 74, .15); }
.academy-file-input-shell > input[type="file"] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; }
.academy-file-input-ui { display: flex; min-height: 47px; align-items: center; gap: 12px; padding: 7px; direction: rtl; text-align: right; }
.academy-file-action { display: inline-flex; min-height: 33px; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; color: #fff; background: var(--academy-green); font-size: 11px; font-weight: 800; white-space: nowrap; }
.academy-file-input-ui small { min-width: 0; overflow: hidden; color: var(--academy-muted); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.academy-review { width: min(780px, 100%); margin: 0 auto; }
.academy-review > div, .academy-tracking-card > div { display: grid; gap: 5px; padding: 15px; border: 1px solid #e2eadf; border-radius: 12px; background: #fff; }
.academy-review span, .academy-tracking-card span { color: var(--academy-muted); font-size: 12px; }
.academy-consent { display: flex; width: min(780px, 100%); gap: 10px; align-items: flex-start; margin: 21px auto 0; color: var(--academy-ink); font-size: 13px; font-weight: 700; }

.academy-actions { display: flex; width: min(1024px, 100%); align-items: center; justify-content: space-between; gap: 14px; margin: 18px auto 0; padding: 15px 0; }
.academy-actions > span { color: #65766e; font-size: 13px; }
.academy-btn { display: inline-flex; min-width: 118px; min-height: 45px; align-items: center; justify-content: center; padding: 10px 23px; border: 1px solid var(--academy-green); border-radius: 11px; background: var(--academy-green); color: #fff !important; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 7px 16px rgba(101, 167, 49, .18); transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.academy-btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(101, 167, 49, .22); }
.academy-btn:hover { background: var(--academy-green-dark); border-color: var(--academy-green-dark); }
.academy-btn:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.academy-btn.ghost { background: #fff; color: var(--academy-green-dark) !important; }
.academy-btn.submit { background: var(--academy-orange); border-color: var(--academy-orange); box-shadow: 0 6px 13px rgba(226, 158, 28, .16); }
.academy-btn.submit:hover { background: #ed9f1d; border-color: #ed9f1d; }
.academy-alert { width: min(930px, 100%); margin: 0 auto 18px; padding: 14px 17px; border-radius: 12px; }
.academy-alert-error { border: 1px solid #f0baba; background: #fff1f1; color: #a52c2c; }
.academy-alert-success { border: 1px solid #c9e6ae; background: #f2faea; color: #47742b; }

.academy-result { padding: 38px 30px; border: 1px solid #dce8d4; border-radius: 19px; background: #fff; text-align: center; box-shadow: 0 12px 30px rgba(40, 77, 45, .07); }
.academy-result-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: var(--academy-green); color: #fff; font-size: 36px; }
.academy-request-number { direction: ltr; display: inline-block; margin: 21px 0; padding: 14px 20px; border-radius: 11px; background: #f0f8e9; color: var(--academy-green-dark); font-size: 23px; font-weight: 900; letter-spacing: 1px; }
.academy-result-actions { display: flex; justify-content: center; gap: 11px; flex-wrap: wrap; }

.academy-lookup { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 13px; padding: 22px; border: 1px solid #dfe9da; border-radius: 17px; background: #fff; box-shadow: 0 9px 24px rgba(36, 76, 45, .05); }
.academy-lookup .academy-field { font-size: 13px; }
.academy-otp-hint { margin: 0 0 14px; color: #617369; line-height: 1.8; }
.academy-otp-resend { margin-top: 12px; text-align: center; }
.academy-otp-resend button { border: 0; background: transparent; color: #6b9b2f; font: inherit; cursor: pointer; text-decoration: underline; }
.academy-tracking-card { margin-top: 18px; }
.academy-timeline { grid-column: 1 / -1; margin: 8px 0 0; padding: 0 25px 0 0; border-right: 3px solid #d7eac8; list-style: none; }
.academy-timeline li { position: relative; display: grid; gap: 4px; margin-bottom: 18px; }
.academy-timeline li::before { content: ""; position: absolute; right: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--academy-green); }
.academy-timeline time { color: #89968d; font-size: 12px; }

@media (max-width: 820px) {
    .academy-reference-header { padding: 14px 16px; }
    .academy-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .academy-reference-information-grid { grid-template-columns: 1fr; }
    .academy-lookup { grid-template-columns: 1fr; }
    .academy-progress { justify-content: flex-start; gap: 26px; overflow-x: auto; padding: 3px 4px 10px; }
    .academy-progress li { min-width: max-content; }
    .academy-package-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .academy-package-card { min-height: 400px; }
    .academy-form-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .academy-form-tabs { grid-template-columns: repeat(5, minmax(122px, 1fr)); overflow-x: auto; padding-bottom: 12px; }
}

/* Native controls and location map: public registration only. */
.academy-lovable-rebuild .academy-attendance-compact select { display: block; width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #d8e7da; border-radius: 9px; color: #26465d; background: #f9fcfa; font: inherit; }
.academy-lovable-rebuild .academy-hobby-combobox select[multiple] { display: block; flex: 1 1 auto; width: 100%; min-width: 0; min-height: 40px; padding: 0 8px; border: 0; outline: 0; color: #26465d; background: transparent; font: inherit; }
.academy-lovable-rebuild .academy-hobby-combobox:focus-within { border-color: #7ba584; box-shadow: 0 0 0 3px rgba(83, 125, 89, .11); }
.academy-lovable-rebuild button.academy-hobby-add { cursor: pointer; }
.academy-lovable-rebuild .academy-map-field { grid-column: 1 / -1; margin: 2px 0 0; }
.academy-lovable-rebuild .academy-map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.academy-lovable-rebuild .academy-map-toolbar strong { display: block; color: #26465d; font-size: 12px; font-weight: 700; }
.academy-lovable-rebuild .academy-map-toolbar p { margin: 3px 0 0; color: #80909b; font-size: 10px; }
.academy-lovable-rebuild .academy-map-location-button { flex: 0 0 auto; min-height: 34px; padding: 0 11px; border: 1px solid #d1e2d3; border-radius: 8px; color: #426f4b; background: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.academy-lovable-rebuild .academy-map-location-button i { margin-left: 5px; }
.academy-lovable-rebuild .academy-map-location-button:hover, .academy-lovable-rebuild .academy-map-location-button:focus { border-color: #709b78; background: #f2f8f2; }
.academy-lovable-rebuild .academy-location-map { position: relative; z-index: 0; min-height: 260px; overflow: hidden; border: 1px solid #d8e7da; border-radius: 11px; background: #edf4ee; direction: ltr; }
.academy-lovable-rebuild .academy-location-map .leaflet-control-attribution { font-size: 9px; direction: ltr; }
.academy-lovable-rebuild .academy-location-map.academy-map-fallback { display: grid; place-items: center; padding: 20px; color: #647783; text-align: center; font-size: 12px; line-height: 1.8; direction: rtl; }
.academy-lovable-rebuild .academy-location-map-status { min-height: 18px; margin: 7px 1px 0; color: #70838d; font-size: 10px; line-height: 1.6; }
@media (max-width: 760px) {
    .academy-lovable-rebuild .academy-map-toolbar { align-items: flex-start; }
    .academy-lovable-rebuild .academy-location-map { min-height: 230px; }
}
@media (max-width: 480px) {
    .academy-lovable-rebuild .academy-map-toolbar { display: block; }
    .academy-lovable-rebuild .academy-map-location-button { margin-top: 9px; }
    .academy-lovable-rebuild .academy-location-map { min-height: 210px; }
}

/* Lovable identity, guardian, and attachment hierarchy. */
.academy-lovable-rebuild .academy-study-data-grid .academy-study-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.academy-lovable-rebuild .academy-study-data-grid .academy-study-term { order: 0; grid-column: auto; max-width: none; }
.academy-lovable-rebuild .academy-student-data-grid .academy-student-identity-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.academy-lovable-rebuild .academy-student-identity-fields .academy-student-name-field { grid-column: span 2; }
.academy-lovable-rebuild .academy-student-identity-fields [name="card_number"], .academy-lovable-rebuild .academy-student-identity-fields [name="student_mobile"], .academy-lovable-rebuild .academy-student-identity-fields [name="student_birth_date"] { direction: ltr; text-align: right; }
.academy-lovable-rebuild .academy-guardian-layout .academy-guardian-contact-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.academy-lovable-rebuild .academy-guardian-contact-fields .academy-field:nth-child(5), .academy-lovable-rebuild .academy-guardian-contact-fields .academy-field:nth-child(6) { grid-column: span 2; }
.academy-lovable-rebuild .academy-housing-details .academy-housing-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.academy-lovable-rebuild .academy-housing-fields .academy-field.wide { grid-column: span 2; }
.academy-lovable-rebuild .academy-attachments-section { border-style: solid; border-color: #dce9d5; background: #fff; }
.academy-lovable-rebuild .academy-attachments-section > header { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 14px; }
.academy-lovable-rebuild .academy-attachments-section > header > div h3 { margin: 0; font-size: 14px; }
.academy-lovable-rebuild .academy-attachments-section > header > div p { margin: 3px 0 0; color: #81908a; font-size: 10px; }
.academy-lovable-rebuild .academy-attachments-counter { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 10px; border: 1px solid #f1d0d3; border-radius: 999px; color: #a9434c; background: #fff6f6; font-size: 10px; font-weight: 700; white-space: nowrap; }
.academy-lovable-rebuild .academy-attachments-counter strong { direction: ltr; font-size: 11px; }
.academy-lovable-rebuild .academy-attachment-groups { gap: 20px; }
.academy-lovable-rebuild .academy-attachment-group { gap: 11px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.academy-lovable-rebuild .academy-attachment-group h3 { color: #486050; font-size: 12px; font-weight: 700; }
.academy-lovable-rebuild .academy-attachment-group--optional h3 { color: #738179; }
.academy-lovable-rebuild .academy-documents { grid-template-columns: 1fr; gap: 10px; margin: 0; }
.academy-lovable-rebuild .academy-documents .academy-attachment-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 76px; padding: 13px 15px; border: 1px solid #e1e9de; border-radius: 10px; background: #fff; }
.academy-lovable-rebuild .academy-attachment-group--required .academy-attachment-card { border-color: #efcfd2; }
.academy-lovable-rebuild .academy-documents .academy-attachment-card > span:first-child { color: #2d4a3e; font-size: 13px; font-weight: 700; }
.academy-lovable-rebuild .academy-documents .academy-attachment-card > span:first-child::after { display: block; margin-top: 4px; color: #8a9890; content: 'مستند ' attr(data-required); font-size: 10px; font-weight: 500; }
.academy-lovable-rebuild .academy-attachment-group--required .academy-attachment-card > span:first-child::after { content: 'مستند ضروري لإتمام الطلب'; }
.academy-lovable-rebuild .academy-attachment-group--optional .academy-attachment-card > span:first-child::after { content: 'مستند اختياري'; }
.academy-lovable-rebuild .academy-documents .academy-file-input-shell { min-width: 108px; border: 0; border-radius: 8px; background: transparent; }
.academy-lovable-rebuild .academy-documents .academy-file-input-ui { min-height: 38px; justify-content: center; padding: 0; }
.academy-lovable-rebuild .academy-documents .academy-file-action { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 13px; border-radius: 8px; color: #fff; background: #91c941; font-size: 11px; white-space: nowrap; }
.academy-lovable-rebuild .academy-documents .academy-file-input-ui small { display: none; }
.academy-lovable-rebuild .academy-payment-attachment-note { margin: 1px 0 0; padding: 10px 12px; border: 1px solid #f0d9a4; border-radius: 9px; color: #8b6b2b; background: #fff9eb; font-size: 11px; line-height: 1.7; }
.academy-lovable-rebuild .academy-payment-attachment-note i { margin-left: 6px; color: #c89021; }
@media (max-width: 760px) {
    .academy-lovable-rebuild .academy-study-data-grid .academy-study-fields, .academy-lovable-rebuild .academy-student-data-grid .academy-student-identity-fields, .academy-lovable-rebuild .academy-guardian-layout .academy-guardian-contact-fields, .academy-lovable-rebuild .academy-housing-details .academy-housing-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .academy-lovable-rebuild .academy-attachments-section > header { grid-template-columns: 42px minmax(0, 1fr); }
    .academy-lovable-rebuild .academy-attachments-counter { grid-column: 2; justify-self: start; }
}
/* Complete public Lovable visual system. */
.academy-lovable-full-rebuild { min-height: 100vh; background: #f8faf8; }
.academy-lovable-full-rebuild .academy-reference-header { position: relative; z-index: 2; min-height: 86px; border-bottom: 1px solid #e8eddc; box-shadow: 0 1px 0 rgba(55, 83, 52, .03); }
.academy-lovable-full-rebuild .academy-reference-brand { gap: 11px; }
.academy-lovable-full-rebuild .academy-reference-brand h1 { color: #80bd35; font-size: clamp(18px, 2vw, 27px); font-weight: 900; letter-spacing: -.3px; }
.academy-lovable-full-rebuild .academy-reference-brand p { color: #718177; font-size: 11px; }
.academy-lovable-full-rebuild .academy-reference-brand-icon { width: 48px; height: 48px; border-radius: 14px; color: #fff; background: #f6ad28; box-shadow: 0 7px 14px rgba(225, 161, 35, .25); }
.academy-lovable-full-rebuild .academy-reference-track { min-height: 34px; padding: 0 12px; border-color: #dce6dc; border-radius: 8px; color: #4c6254; background: #fff; font-size: 12px; font-weight: 700; }
.academy-lovable-full-rebuild .academy-reference-pay { border-color: #f2d293; color: #ce8d20; background: #fffdf8; }
.academy-lovable-full-rebuild .academy-shell { width: min(100% - 32px, 1024px); padding-top: 26px; }
.academy-lovable-full-rebuild .academy-reference-crumbs { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; width: min(790px, 100%); max-width: 100%; margin: 0 auto 28px; padding: 0; overflow: visible; border: 0; background: transparent; box-shadow: none; }
.academy-lovable-full-rebuild .academy-reference-crumbs li { position: relative; display: grid; grid-template-columns: 39px minmax(0, 1fr) 24px; align-items: center; gap: 9px; min-height: 68px; padding: 9px 11px; border: 1px solid #dfe8dc; border-radius: 14px; color: #728078; background: #fff; font-size: 11px; font-weight: 700; white-space: normal; box-shadow: 0 4px 12px rgba(56, 79, 52, .04); }
.academy-lovable-full-rebuild .academy-reference-crumbs li::after { content: ""; position: absolute; z-index: -1; top: 50%; right: -20px; left: auto; width: 39px; height: 2px; border: 0; background: #dce7d7; transform: translateY(-50%); }
.academy-lovable-full-rebuild .academy-reference-crumbs li:last-child::after { display: none; }
.academy-lovable-full-rebuild .academy-progress-step-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; color: #719b42; background: #f0f8e9; font-size: 17px; }
.academy-lovable-full-rebuild .academy-progress-step-copy { display: grid; min-width: 0; gap: 2px; text-align: right; }
.academy-lovable-full-rebuild .academy-progress-step-copy small { color: #9aa59c; font-size: 10px; font-weight: 700; }
.academy-lovable-full-rebuild .academy-progress-step-copy strong { overflow: hidden; color: #5e6c64; font-size: 12px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.academy-lovable-full-rebuild .academy-progress-step-number { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid #dbe5d7; border-radius: 50%; color: #8a978e; background: #fff; font-size: 10px; font-weight: 900; }
.academy-lovable-full-rebuild .academy-reference-crumbs li.active { border-color: #a9d47d; color: #5c9131; background: linear-gradient(135deg, #fbfff8, #f2faeb); box-shadow: 0 7px 18px rgba(100, 153, 58, .12); }
.academy-lovable-full-rebuild .academy-reference-crumbs li.active .academy-progress-step-icon { color: #fff; background: #84c43e; box-shadow: 0 5px 11px rgba(100, 163, 51, .24); }
.academy-lovable-full-rebuild .academy-reference-crumbs li.active .academy-progress-step-copy strong { color: #4e7e29; }
.academy-lovable-full-rebuild .academy-reference-crumbs li.active .academy-progress-step-number { border-color: #84c43e; color: #fff; background: #84c43e; }
.academy-lovable-full-rebuild .academy-reference-crumbs li.active::after { background: #b7dd91; }
.academy-lovable-full-rebuild:has(.academy-step[data-step="1"].active) .academy-reference-crumbs { display: flex; }
.academy-lovable-full-rebuild:has(.academy-step[data-step="1"].active) .academy-reference-crumbs li:nth-child(3) { display: none; }
.academy-lovable-full-rebuild:has(.academy-step[data-step="1"].active) .academy-reference-crumbs li:nth-child(4) { order: 3; }
.academy-lovable-full-rebuild .academy-reference-intro { max-width: 720px; margin: 0 auto 20px; padding: 0; border: 0; background: transparent; text-align: center; box-shadow: none; }
.academy-lovable-full-rebuild .academy-reference-step-badge { display: inline-flex; min-height: 27px; align-items: center; padding: 0 11px; border: 1px solid #d6eac9; border-radius: 999px; color: #80af4c; background: #f8fcf5; font-size: 10px; font-weight: 800; }
.academy-lovable-full-rebuild .academy-reference-intro h2 { margin: 10px 0 5px; color: #1f342a; font-size: clamp(23px, 2.3vw, 32px); font-weight: 900; }
.academy-lovable-full-rebuild .academy-reference-intro p { color: #78897c; font-size: 13px; }
.academy-lovable-full-rebuild .academy-reference-branch-grid { width: min(100%, 1024px); gap: 20px; }
.academy-lovable-full-rebuild .academy-reference-branch-card { display: block; min-height: 455px; padding: 0; overflow: hidden; border: 2px solid #c9e5ae; border-radius: 22px; background: #fff; box-shadow: none; }
.academy-lovable-full-rebuild .academy-reference-branch-card.academy-girls { border-color: #ffd57e; background: #fff; }
.academy-lovable-full-rebuild .academy-reference-branch-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(48, 77, 43, .12); }
.academy-lovable-full-rebuild .academy-reference-branch-media { position: relative; display: block; height: 285px; overflow: hidden; background: #36483a; }
.academy-lovable-full-rebuild .academy-reference-branch-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.academy-lovable-full-rebuild .academy-reference-branch-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 22, 15, .05) 30%, rgba(5, 12, 8, .79) 100%); }
.academy-lovable-full-rebuild .academy-reference-availability { position: absolute; top: 15px; right: 15px; display: inline-flex; min-height: 29px; align-items: center; gap: 6px; padding: 0 11px; border-radius: 999px; color: #fff; background: #8bc63f; font-size: 11px; font-weight: 800; }
.academy-lovable-full-rebuild .academy-girls .academy-reference-availability { background: #f0ae22; }
.academy-lovable-full-rebuild .academy-reference-availability i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(255,255,255,.22); }
.academy-lovable-full-rebuild .academy-reference-branch-title { position: absolute; right: 22px; bottom: 17px; left: 22px; color: #fff; text-align: right; }
.academy-lovable-full-rebuild .academy-reference-branch-title strong { display: block; font-size: 22px; font-weight: 900; }
.academy-lovable-full-rebuild .academy-reference-branch-title small { display: block; margin-top: 3px; overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.academy-lovable-full-rebuild .academy-reference-branch-icon { position: absolute; z-index: 1; top: 246px; right: 28px; display: grid; width: 67px; height: 67px; place-items: center; border: 4px solid #fff; border-radius: 50%; background: #8bc63f; box-shadow: 0 6px 17px rgba(52, 81, 40, .2); }
.academy-lovable-full-rebuild .academy-girls .academy-reference-branch-icon { background: #efa91c; }
.academy-lovable-full-rebuild .academy-reference-branch-icon i { color: #1e2e24; font-size: 25px; }
.academy-lovable-full-rebuild .academy-reference-branch-body { display: block; min-height: 168px; padding: 76px 22px 18px; background: #fff; text-align: center; }
.academy-lovable-full-rebuild .academy-reference-branch-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.academy-lovable-full-rebuild .academy-reference-branch-meta small { display: inline-flex; min-height: 27px; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid #e7ece5; border-radius: 999px; color: #718176; background: #fbfdfb; font-size: 10px; font-weight: 700; }
.academy-lovable-full-rebuild .academy-reference-branch-action { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; margin-top: 15px; padding: 0 16px; border-radius: 9px; color: #fff; background: #8bc63f; font-size: 12px; font-style: normal; font-weight: 800; }
.academy-lovable-full-rebuild .academy-girls .academy-reference-branch-action { background: #efa91c; }
.academy-lovable-full-rebuild .academy-girls .academy-reference-branch-body .academy-reference-branch-action,
.academy-lovable-full-rebuild .academy-girls .academy-reference-branch-body .academy-reference-branch-action b { color: #fff; }
.academy-lovable-full-rebuild .academy-reference-branch-action b { font-size: 17px; line-height: 1; }
.academy-lovable-full-rebuild .academy-reference-branch-card:has(input:checked) { transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(139,198,63,.18), 0 14px 28px rgba(48,77,43,.13); }
.academy-lovable-full-rebuild .academy-form-step { overflow: hidden; border: 1px solid #d7e8cf; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(50,77,43,.07); }
.academy-lovable-full-rebuild .academy-form-step > .academy-step-heading { border-bottom: 1px solid #e5eddf; background: linear-gradient(90deg, #fffdf7, #f7fced); }
.academy-lovable-full-rebuild .academy-form-tabs { border-bottom: 1px solid #e1e9de; background: #fff; }
.academy-lovable-full-rebuild .academy-registration-section, .academy-lovable-full-rebuild .academy-package-stage-card, .academy-lovable-full-rebuild .academy-payment-details { border-color: #e0e9dc; border-radius: 11px; box-shadow: none; }
@media (max-width: 760px) {
    .academy-lovable-full-rebuild .academy-reference-branch-media { height: 240px; }
    .academy-lovable-full-rebuild .academy-reference-branch-icon { top: 201px; }
    .academy-lovable-full-rebuild .academy-reference-branch-card { min-height: 405px; }
    .academy-lovable-full-rebuild .academy-reference-branch-body { min-height: 150px; padding-top: 63px; }
}
.academy-lovable-full-rebuild .academy-step[data-step="2"] > .academy-step-heading { position: relative; }
.academy-lovable-full-rebuild .academy-category-change-branch { position: absolute; top: 15px; left: 16px; display: inline-flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 9px; color: #668e37; background: #edf7df; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.academy-lovable-full-rebuild .academy-category-change-branch:hover, .academy-lovable-full-rebuild .academy-category-change-branch:focus { color: #fff; background: #8bc63f; }
.academy-lovable-full-rebuild .academy-reference-consent { justify-content: flex-start; text-align: right; }
.academy-lovable-full-rebuild .academy-reference-consent input[name="confirmation"] { order: -1; flex: 0 0 auto; margin: 0 0 0 11px; }
.academy-lovable-rebuild .academy-health-condition-select { display: block; width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid #d8e7da; border-radius: 9px; color: #26465d; background: #f9fcfa; font: inherit; }

@media (max-width: 600px) {
    .academy-lovable-full-rebuild .academy-category-change-branch { top: 12px; left: 12px; min-height: 31px; padding: 0 9px; font-size: 10px; }
}

@media (max-width: 600px) {
    .academy-lovable-full-rebuild .academy-shell { width: min(100% - 20px, 1024px); padding-top: 16px; }
    .academy-lovable-full-rebuild .academy-reference-header { min-height: 0; }
    .academy-lovable-full-rebuild .academy-reference-crumbs { grid-auto-columns: minmax(150px, 1fr); margin-bottom: 15px; overflow-x: auto; padding: 2px 2px 10px; }
    .academy-lovable-full-rebuild .academy-reference-crumbs li { min-width: 150px; }
    .academy-lovable-full-rebuild .academy-reference-branch-grid { gap: 14px; }
    .academy-lovable-full-rebuild .academy-reference-branch-card { min-height: 0; border-radius: 17px; }
    .academy-lovable-full-rebuild .academy-reference-branch-media { height: 195px; }
    .academy-lovable-full-rebuild .academy-reference-branch-icon { top: 161px; right: 19px; width: 58px; height: 58px; }
    .academy-lovable-full-rebuild .academy-reference-branch-title { right: 15px; bottom: 13px; left: 15px; }.academy-lovable-full-rebuild .academy-reference-branch-title strong { font-size: 18px; }
    .academy-lovable-full-rebuild .academy-reference-branch-body { min-height: 136px; padding: 49px 12px 14px; }.academy-lovable-full-rebuild .academy-reference-branch-meta small { font-size: 9px; }
}

@media (max-width: 600px) {
    .academy-lovable-rebuild .academy-study-data-grid .academy-study-fields, .academy-lovable-rebuild .academy-student-data-grid .academy-student-identity-fields, .academy-lovable-rebuild .academy-guardian-layout .academy-guardian-contact-fields, .academy-lovable-rebuild .academy-housing-details .academy-housing-fields { grid-template-columns: 1fr; }
    .academy-lovable-rebuild .academy-student-identity-fields .academy-student-name-field, .academy-lovable-rebuild .academy-guardian-contact-fields .academy-field:nth-child(5), .academy-lovable-rebuild .academy-guardian-contact-fields .academy-field:nth-child(6), .academy-lovable-rebuild .academy-housing-fields .academy-field.wide { grid-column: auto; }
    .academy-lovable-rebuild .academy-attachments-section > header { grid-template-columns: 36px minmax(0, 1fr); gap: 9px; }
    .academy-lovable-rebuild .academy-attachments-section > header > span { width: 36px; height: 36px; }
    .academy-lovable-rebuild .academy-documents .academy-attachment-card { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding: 13px; }
    .academy-lovable-rebuild .academy-documents .academy-file-input-shell { width: 100%; }
    .academy-lovable-rebuild .academy-documents .academy-file-action { width: 100%; }
}

@media (max-width: 600px) {
    .academy-reference-header { align-items: flex-start; flex-direction: column; gap: 11px; }
    .academy-reference-brand h1 { font-size: 15px; }
    .academy-reference-brand-icon { width: 42px; height: 42px; flex-basis: 42px; font-size: 20px; border-radius: 12px; }
    .academy-reference-header-actions { width: 100%; }
    .academy-reference-track { flex: 1; padding-inline: 10px; }
    .academy-reference-main { padding-top: 26px; }
    .academy-progress { flex-wrap: wrap; justify-content: center; gap: 8px; overflow: visible; padding-bottom: 0; }
    .academy-progress li { min-width: 0; }
    .academy-progress li::after { display: none; }
    .academy-step-heading h2, .academy-result h1 { font-size: 22px; }
    .academy-reference-branch-grid, .academy-category-grid, .academy-package-list, .academy-form-grid, .academy-section-fields, .academy-documents, .academy-review, .academy-tracking-card { grid-template-columns: 1fr; }
    .academy-reference-branch-card { min-height: 180px; }
    .academy-choice-card { min-height: 225px; }
    .academy-choice-content > span { min-height: 0; }
    .academy-form-step { border-radius: 16px; }
    .academy-form-step > .academy-step-heading { padding: 19px 73px 18px 18px; }
    .academy-form-step > .academy-step-heading::before { right: 17px; top: 21px; width: 43px; height: 43px; border-radius: 13px; font-size: 18px; }
    .academy-form-step > .academy-form-grid, .academy-form-step > .academy-review { padding: 17px; }
    .academy-form-journey { padding: 12px; }
    .academy-form-journey span { justify-content: flex-start; padding: 0 8px; font-size: 10px; }
    .academy-form-tabs { grid-template-columns: repeat(5, minmax(118px, 1fr)); gap: 6px; padding: 10px 12px 14px; }
    .academy-form-tabs button { min-height: 39px; padding: 6px 8px; font-size: 10px; }
    .academy-form-grid { padding: 17px; border-radius: 14px; }
    .academy-registration-section { padding: 16px; border-radius: 13px; }
    .academy-registration-section > header { align-items: flex-start; }
    .academy-health-status-options { grid-template-columns: 1fr; }
    .academy-package-list { padding-bottom: 28px; }
    .academy-package-card { min-height: 0; }
    .academy-field.wide { grid-column: auto; }
    .academy-actions { flex-wrap: wrap; }
    .academy-actions span { order: -1; width: 100%; text-align: center; }
    .academy-btn { flex: 1; min-width: 0; }
    .academy-price-summary { grid-template-columns: 1fr; }
    .academy-price-summary > div { border-left: 0; border-bottom: 1px solid #f0ead8; }
    .academy-price-summary > div:last-child { border-bottom: 0; }
    .academy-payment-plan-list { grid-template-columns: 1fr; }
    .academy-installment-details { grid-template-columns: 1fr; }
    .academy-installment-row { border-left: 0; border-bottom: 1px solid #e6eee3; }
    .academy-installment-row:last-child { border-bottom: 0; }
}

/* إعادة بناء مرئي مطابق لهيكل Lovable: سطح هادئ، بطاقة نموذج كثيفة، وتبويبات دائرية متصلة. */
.academy-lovable-rebuild {
    --academy-green: #8dc63f;
    --academy-green-dark: #80bd35;
    --academy-green-soft: #f3f9e9;
    --academy-ink: #173c55;
    --academy-muted: #7d9395;
    background: #fbfcfb;
    font-family: "Cairo", "Almarai", Arial, sans-serif;
    font-weight: 500;
}
.academy-lovable-rebuild .academy-reference-header { min-height: 88px; padding: 13px max(18px, calc((100% - 1310px) / 2)); background: linear-gradient(90deg, #faf8ee 0%, #fffdf7 52%, #eff8e8 100%); }
.academy-lovable-rebuild .academy-reference-brand { gap: 11px; }.academy-lovable-rebuild .academy-reference-brand-icon { width: 47px; height: 47px; flex-basis: 47px; border-radius: 14px; box-shadow: 0 7px 15px rgba(202, 151, 35, .16); }.academy-lovable-rebuild .academy-reference-brand h1 { color: #86c33d; font-size: 19px; font-weight: 800; }.academy-lovable-rebuild .academy-reference-brand p { color: #93a19c; font-weight: 500; }.academy-lovable-rebuild .academy-reference-track { min-height: 35px; border-radius: 9px; font-weight: 600; }
.academy-lovable-rebuild .academy-shell { width: min(1024px, calc(100% - 32px)); }.academy-lovable-rebuild .academy-reference-main { padding-top: 28px; }
.academy-lovable-rebuild .academy-form-step { overflow: hidden; border: 1px solid #dcebd7; border-radius: 3px; box-shadow: none; background: #fff; }.academy-lovable-rebuild .academy-form-step > .academy-step-heading { min-height: 70px; padding: 16px 76px 13px 24px; background: linear-gradient(90deg, #fffefa, #fbfcf8); }.academy-lovable-rebuild .academy-form-step > .academy-step-heading::before { right: 25px; top: 15px; width: 43px; height: 43px; border-radius: 13px; background: #ffb52c; box-shadow: 0 6px 13px rgba(203, 143, 26, .17); }.academy-lovable-rebuild .academy-form-step > .academy-step-heading h2 { margin: 0; color: #8bc53d; font-size: 18px; font-weight: 800; }.academy-lovable-rebuild .academy-form-step > .academy-step-heading p { margin: 2px 0 0; color: #92a09a; font-size: 11px; font-weight: 500; }.academy-lovable-rebuild .academy-form-step > .academy-step-heading > span { color: #a7b08e; font-weight: 600; }
.academy-lovable-rebuild .academy-form-tabs { position: relative; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 11px 25px 13px; overflow: visible; border-color: #e6eee1; background: #fff; }.academy-lovable-rebuild .academy-form-tabs button { position: relative; display: grid; grid-template-rows: 34px auto; justify-items: center; gap: 4px; min-height: 57px; padding: 0 4px; border: 0; border-radius: 0; color: #9aac9d; background: transparent; font-size: 10px; font-weight: 600; line-height: 1.25; text-align: center; overflow: visible; }.academy-lovable-rebuild .academy-form-tabs button:hover { border: 0; color: #81ba35; background: transparent; }.academy-lovable-rebuild .academy-form-tabs button i { position: relative; z-index: 2; display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid #d8e7da; border-radius: 50%; color: #8ca495; background: #fff; font-size: 12px; }.academy-lovable-rebuild .academy-form-tabs button:not(:last-child)::after { position: absolute; z-index: 1; top: 15px; left: calc(-50% + 15px); width: calc(100% - 30px); height: 1px; background: #dbe8dc; content: ""; }.academy-lovable-rebuild .academy-form-tabs button.active { border: 0; color: #80bd35; background: transparent; box-shadow: none; }.academy-lovable-rebuild .academy-form-tabs button.active i { border-color: #8dc63f; color: #fff; background: #8dc63f; box-shadow: 0 4px 8px rgba(110, 168, 54, .18); }.academy-lovable-rebuild .academy-form-tabs button.complete { color: #8ca495; }.academy-lovable-rebuild .academy-form-tabs button.complete::before { display: none; }.academy-lovable-rebuild .academy-form-tabs button.complete i { border-color: #8dc63f; color: #8dc63f; background: #f4faed; }.academy-lovable-rebuild .academy-form-tabs button.complete i::before { content: "✓"; font-family: Arial, sans-serif; font-size: 12px; font-weight: 800; }.academy-lovable-rebuild .academy-form-tabs button.complete i { font-size: 0; }
.academy-lovable-rebuild .academy-form-step > .academy-form-grid { padding: 25px 25px 27px; background: #fff; }.academy-lovable-rebuild .academy-registration-section { gap: 14px; padding: 0; border: 0; border-radius: 0; background: transparent; }.academy-lovable-rebuild .academy-registration-section > header { gap: 8px; min-height: 27px; padding-bottom: 10px; border-bottom: 1px solid #dce9da; }.academy-lovable-rebuild .academy-registration-section > header > span { width: auto; height: auto; flex-basis: auto; color: #8dc63f; background: transparent !important; font-size: 16px; }.academy-lovable-rebuild .academy-registration-section > header h3 { color: #87c239; font-size: 15px; font-weight: 700; }.academy-lovable-rebuild .academy-registration-section > header p, .academy-lovable-rebuild .academy-section-help { color: #95a39d; font-size: 10px; font-weight: 500; }
.academy-lovable-rebuild .academy-section-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }.academy-lovable-rebuild .academy-study-data-grid .academy-section-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }.academy-lovable-rebuild .academy-study-term { order: 10; grid-column: 1 / -1; max-width: 260px; }.academy-lovable-rebuild .academy-student-data-grid .academy-section-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }.academy-lovable-rebuild .academy-student-data-grid .academy-field.wide { grid-column: auto; }
.academy-lovable-rebuild .academy-field { gap: 5px; color: #26465d; font-size: 11px; font-weight: 700; }.academy-lovable-rebuild .academy-field input, .academy-lovable-rebuild .academy-field select, .academy-lovable-rebuild .academy-field textarea { min-height: 41px; border-color: #d8e7da; border-radius: 10px; background: #f9fcfa; color: #365267; padding: 8px 12px; font-size: 12px; font-weight: 500; }.academy-lovable-rebuild .academy-field output { min-height: 41px; padding: 10px 12px; border-color: #d8e7da; border-radius: 10px; background: #f9fcfa; color: #365267; font-size: 12px; font-weight: 500; }.academy-lovable-rebuild .academy-field textarea { min-height: 104px; }.academy-lovable-rebuild .academy-field input:focus, .academy-lovable-rebuild .academy-field select:focus, .academy-lovable-rebuild .academy-field textarea:focus { outline-width: 2px; }
.academy-lovable-rebuild .academy-guardian-layout .academy-section-fields, .academy-lovable-rebuild .academy-housing-details .academy-section-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }.academy-lovable-rebuild .academy-guardian-layout { gap: 27px; }.academy-lovable-rebuild .academy-housing-details .academy-field.wide { grid-column: 1 / -1; }
.academy-lovable-rebuild .academy-wellbeing-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; row-gap: 25px; }.academy-lovable-rebuild .academy-health-section, .academy-lovable-rebuild .academy-wellbeing-notes { grid-column: 1 / -1; }.academy-lovable-rebuild .academy-attendance-options { gap: 8px; }.academy-lovable-rebuild .academy-attendance-section .academy-field .inline { min-height: 39px; flex-basis: 0; padding: 8px 10px; border-color: #d8e7da; border-radius: 9px; font-size: 11px; font-weight: 600; }.academy-lovable-rebuild .academy-hobby-picker .academy-check-grid { gap: 7px; }.academy-lovable-rebuild .academy-hobby-picker .academy-check-grid label, .academy-lovable-rebuild .academy-health-selection .academy-check-grid label { padding: 7px 10px; border-color: #d8e7da; border-radius: 9px; font-size: 11px; font-weight: 600; }.academy-lovable-rebuild .academy-health-status-options { gap: 12px; }.academy-lovable-rebuild .academy-health-status-card { min-height: 124px; grid-template-columns: 1fr; justify-items: center; gap: 6px; padding: 18px; border-width: 2px; border-radius: 12px; text-align: center; }.academy-lovable-rebuild .academy-health-status-card > span { grid-row: auto; width: 35px; height: 35px; background: transparent; color: #8dc63f; font-size: 25px; }.academy-lovable-rebuild .academy-health-status-card[data-health-state="unhealthy"] > span { color: #ef3434; background: transparent; }.academy-lovable-rebuild .academy-health-status-card small { font-size: 10px; }.academy-lovable-rebuild .academy-health-status-card.selected[data-health-state="healthy"] { border-color: #d8e7da; background: #fff; box-shadow: none; }.academy-lovable-rebuild .academy-health-status-card.selected[data-health-state="unhealthy"] { border-color: #ef3434; background: #fff0f0; box-shadow: none; }
.academy-lovable-rebuild .academy-attachments-layout, .academy-lovable-rebuild .academy-review-layout { max-width: 920px; margin: 0 auto; }.academy-lovable-rebuild .academy-attachment-group { border-color: #dbe8dd; border-radius: 11px; }.academy-lovable-rebuild .academy-price-summary { border-color: #e1ead7; border-radius: 10px; background: #fbfdf9; }.academy-lovable-rebuild .academy-price-summary > div { padding: 12px 17px; border-color: #e5eee1; }.academy-lovable-rebuild .academy-price-summary span { font-size: 11px; }.academy-lovable-rebuild .academy-price-summary strong { color: #80bd35; font-size: 16px; }.academy-lovable-rebuild .academy-package-list { width: min(100%, 1000px); gap: 14px; }.academy-lovable-rebuild .academy-package-card { min-height: 360px; padding: 17px; border-width: 1px; border-top-width: 5px; border-radius: 12px; }.academy-lovable-rebuild .academy-package-card h3 { margin-top: 11px; font-size: 17px; font-weight: 800; }.academy-lovable-rebuild .academy-package-card p { min-height: 35px; font-size: 11px; }.academy-lovable-rebuild .academy-package-card > strong { margin: 12px 0; padding: 9px 0; font-size: 21px; }.academy-lovable-rebuild .academy-package-card ul { font-size: 11px; }.academy-lovable-rebuild .academy-actions { width: min(1024px, calc(100% - 32px)); margin-top: 12px; padding-bottom: 0; }.academy-lovable-rebuild .academy-btn { min-height: 42px; border-radius: 9px; font-size: 12px; box-shadow: none; }
.academy-lovable-rebuild .academy-health-status-card.selected[data-health-state="healthy"] { border-color: #8dc63f; background: #f4faed; box-shadow: 0 4px 12px rgba(111, 169, 53, .10); }
.academy-lovable-rebuild .academy-attendance-compact .academy-attendance-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.academy-lovable-rebuild .academy-attendance-compact .inline { min-height: 40px; min-width: 0; margin: 0; padding: 7px 10px; border-radius: 9px; font-size: 10px; white-space: nowrap; }.academy-lovable-rebuild .academy-hobby-compact .academy-check-grid { gap: 6px; align-items: center; }.academy-lovable-rebuild .academy-hobby-compact .academy-check-grid label { min-height: 31px; padding: 5px 9px; border-radius: 999px; font-size: 10px; line-height: 1.2; }.academy-lovable-rebuild .academy-health-status-card { min-height: 112px; padding: 14px 16px; }
.academy-lovable-rebuild .academy-health-control-row { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 20px; }.academy-lovable-rebuild .academy-health-control-row > section { min-width: 0; }.academy-lovable-rebuild .academy-attendance-section fieldset, .academy-lovable-rebuild .academy-hobby-picker fieldset { margin: 0; padding: 0; border: 0; }.academy-lovable-rebuild .academy-attendance-compact legend, .academy-lovable-rebuild .academy-hobby-compact legend { margin: 0 0 6px; color: #26465d; font-size: 12px; font-weight: 700; }.academy-lovable-rebuild .academy-hobby-compact .academy-section-help { display: none; }.academy-lovable-rebuild .academy-hobby-combobox { display: flex; min-height: 40px; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border: 1px solid #d8e7da; border-radius: 9px; background: #f9fcfa; }.academy-lovable-rebuild .academy-hobby-combobox .academy-check-grid { min-width: 0; flex: 1; max-height: 30px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }.academy-lovable-rebuild .academy-hobby-combobox .academy-check-grid::-webkit-scrollbar { display: none; }.academy-lovable-rebuild .academy-hobby-combobox .academy-check-grid label { flex: 0 0 auto; min-height: 28px; padding: 4px 8px; border: 0; border-radius: 999px; background: #fff; font-size: 10px; white-space: nowrap; }.academy-lovable-rebuild .academy-hobby-add { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border: 1px solid #d1e2d3; border-radius: 8px; color: #52765f; background: #fff; font-size: 21px; font-weight: 400; line-height: 1; }.academy-lovable-rebuild .academy-health-section { margin-top: -1px; }.academy-lovable-rebuild .academy-health-section > header { margin-bottom: 1px; }.academy-lovable-rebuild .academy-health-status-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.academy-lovable-rebuild .academy-health-status-card { min-height: 112px; max-height: 112px; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; justify-items: start; align-content: center; column-gap: 11px; row-gap: 3px; padding: 14px 17px; text-align: right; }.academy-lovable-rebuild .academy-health-status-card > span { grid-row: 1 / span 2; width: 38px; height: 38px; font-size: 22px; }.academy-lovable-rebuild .academy-health-status-card strong { font-size: 13px; }.academy-lovable-rebuild .academy-health-status-card small { font-size: 10px; }
@media (max-width: 760px) {
    .academy-lovable-rebuild .academy-health-control-row { grid-template-columns: 1fr; gap: 13px; }.academy-lovable-rebuild .academy-health-status-card { min-height: 108px; max-height: none; }
}
@media (max-width: 760px) {
    .academy-lovable-rebuild .academy-form-tabs { grid-template-columns: repeat(5, minmax(106px, 1fr)); padding-inline: 14px; overflow-x: auto; }.academy-lovable-rebuild .academy-form-tabs button { font-size: 9px; }.academy-lovable-rebuild .academy-form-step > .academy-form-grid { padding: 19px 16px 22px; }.academy-lovable-rebuild .academy-section-fields, .academy-lovable-rebuild .academy-study-data-grid .academy-section-fields, .academy-lovable-rebuild .academy-student-data-grid .academy-section-fields, .academy-lovable-rebuild .academy-guardian-layout .academy-section-fields, .academy-lovable-rebuild .academy-housing-details .academy-section-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }.academy-lovable-rebuild .academy-student-data-grid .academy-section-fields { grid-template-columns: 1fr 1fr; }.academy-lovable-rebuild .academy-wellbeing-layout { grid-template-columns: 1fr; gap: 21px; }.academy-lovable-rebuild .academy-health-section, .academy-lovable-rebuild .academy-wellbeing-notes { grid-column: auto; }
}
@media (max-width: 600px) {
    .academy-lovable-rebuild .academy-reference-header { min-height: 0; padding: 12px 15px; }.academy-lovable-rebuild .academy-reference-brand h1 { font-size: 15px; }.academy-lovable-rebuild .academy-reference-header-actions { order: 2; }.academy-lovable-rebuild .academy-shell { width: min(100% - 18px, 1024px); }.academy-lovable-rebuild .academy-form-step > .academy-step-heading { padding: 15px 61px 13px 13px; }.academy-lovable-rebuild .academy-form-step > .academy-step-heading::before { right: 14px; top: 14px; width: 36px; height: 36px; font-size: 16px; }.academy-lovable-rebuild .academy-form-step > .academy-step-heading h2 { font-size: 15px; }.academy-lovable-rebuild .academy-form-tabs { margin: 0 -1px; }.academy-lovable-rebuild .academy-section-fields, .academy-lovable-rebuild .academy-study-data-grid .academy-section-fields, .academy-lovable-rebuild .academy-student-data-grid .academy-section-fields, .academy-lovable-rebuild .academy-guardian-layout .academy-section-fields, .academy-lovable-rebuild .academy-housing-details .academy-section-fields { grid-template-columns: 1fr; }.academy-lovable-rebuild .academy-study-term { max-width: none; }.academy-lovable-rebuild .academy-health-status-options { grid-template-columns: 1fr 1fr; }.academy-lovable-rebuild .academy-health-status-card { min-height: 112px; padding: 13px 8px; }.academy-lovable-rebuild .academy-package-list { gap: 12px; }.academy-lovable-rebuild .academy-package-card { min-height: 0; }.academy-lovable-rebuild .academy-price-summary { grid-template-columns: 1fr; }
}
/* Open registration-period notification on the registration start page only. */
.academy-registration-period-announcement { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; margin:18px auto 24px; padding:16px 20px; max-width:896px; border:1px solid #cfeab5; border-radius:13px; background:#f5fbef; color:#67ad32; text-align:center; font-family:Cairo,Tahoma,Arial,sans-serif; font-size:15px; }
.academy-registration-period-announcement strong { font-weight:900; }.academy-registration-period-announcement span { color:#5f7e70; font-weight:700; }
@media(max-width:560px){.academy-registration-period-announcement{margin:12px 0 18px;padding:13px;font-size:13px}}

/* Public registration: add a school and show selected hobbies inside the multi-select. */
.academy-lovable-rebuild .academy-school-combobox { display:flex; align-items:center; gap:8px; }
.academy-lovable-rebuild .academy-school-combobox .select2-container { min-width:0; flex:1 1 auto; }
.academy-lovable-rebuild .academy-school-add { display:grid; width:38px; height:38px; flex:0 0 38px; place-items:center; border:1px solid #cfe2c8; border-radius:10px; color:#5d9831; background:#f4faee; cursor:pointer; }
.academy-lovable-rebuild .academy-school-add:hover { border-color:#8dc63f; color:#fff; background:#8dc63f; }
.academy-lovable-rebuild .academy-hobby-combobox .select2-container { min-width:0; flex:1 1 auto; }
.academy-lovable-rebuild .academy-hobby-combobox .select2-container--default .select2-selection--multiple { min-height:31px; border:0; border-radius:7px; background:transparent; }
.academy-lovable-rebuild .academy-hobby-combobox .select2-container--default .select2-selection--multiple .select2-selection__rendered { display:flex; min-height:31px; align-items:center; gap:4px; padding:0 2px; }
.academy-lovable-rebuild .academy-hobby-combobox .select2-container--default .select2-selection--multiple .select2-selection__choice { float:none; margin:0; padding:3px 8px; border:1px solid #cfe5bc; border-radius:999px; color:#54872d; background:#f2faeb; font-size:10px; }
.academy-lovable-rebuild .academy-hobby-combobox .select2-container--default .select2-selection--multiple .select2-selection__choice__remove { margin-left:4px; color:#83a76d; }
.academy-modal[hidden] { display:none; }
.academy-modal { position:fixed; z-index:9999; inset:0; display:grid; place-items:center; padding:18px; }
.academy-modal-backdrop { position:absolute; inset:0; background:rgba(24,42,32,.46); }
.academy-modal-card { position:relative; z-index:1; width:min(100%, 430px); padding:20px; border:1px solid #d9ead1; border-radius:16px; background:#fff; box-shadow:0 18px 46px rgba(18,45,31,.24); }
.academy-modal-card > header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }.academy-modal-card h3 { margin:0; color:#5b9c28; font-size:17px; }.academy-modal-close { width:30px; height:30px; border:0; border-radius:8px; color:#6f8375; background:#f3f8ef; font-size:24px; line-height:1; cursor:pointer; }.academy-modal-card footer { display:flex; justify-content:flex-start; gap:8px; margin-top:16px; }.academy-modal-card footer .academy-btn { min-width:110px; }.academy-modal-error { margin:9px 0 0; color:#bd3a32; font-size:12px; font-weight:600; }
