/* myfees-modern additions to the public site's stylesheets. */

body.locale-si { font-family: 'Noto Sans Sinhala', 'Open Sans', sans-serif; }
body.locale-ta { font-family: 'Noto Sans Tamil', 'Open Sans', sans-serif; }

.site-link-button { background: none; border: 0; padding: 0; width: 100%; text-align: left; cursor: pointer; }
/* The account menu's Sign Out button, laid out like the link above it (revamp.css styles only links). */
.rv-dropdown form { margin: 0; }
.rv-dropdown form::before, .rv-dropdown form::after { content: none; }
.rv-dropdown .site-link-button { display: flex; align-items: center; gap: 16px; height: auto; padding: 3px 15px; font-weight: 400; white-space: nowrap; }
.rv-dropdown .site-link-button:hover, .rv-dropdown .site-link-button:focus { background-color: #f5f5f5; }
.rv-dropdown .site-dropdown-divider { padding: 4px 0; line-height: 0; }

.site-languages-mobile { list-style: none; margin: 8px 0 0; padding: 0 20px; text-align: right; }
.site-languages-mobile li { display: inline-block; margin-left: 12px; }
.site-languages-mobile a.active { font-weight: 700; text-decoration: underline; }

.site-form-page { display: block; margin-top: 30px; margin-bottom: 30px; }
.site-form-page .form-group { margin-bottom: 18px; }
.site-form-page .inp { width: 100%; }
.site-form-page .help-block { color: #a94442; margin: 6px 0 0; }
.site-form-page .site-links, .school-page .site-links { margin-top: 18px; }

/* Button widths from revamp.css, since the theme makes submit buttons full width. */
.site-form-page button.btn.btn-rounded[type="submit"] { width: auto; padding-left: 10px; padding-right: 10px; margin-top: 10px; }

/* Sign out has to be a form; its button takes the place of the mobile menu's link. */
.slider-menu form button.login-window { display: block; width: calc(100% - 76px); cursor: pointer; }

/* The header's dropdowns are styled for the homepage's blue panel; on these white pages they need colour. */
.site-language-toggle { margin-right: 10px; }

/* The theme's mobile menu is 295px tall and parked just above the page; the language row makes it taller. */
.slider-menu { height: auto; min-height: 295px; top: -120vh; }

/* For Institutes pages. The theme makes .container a flex row; these pages stack their rows. */
.school-page { display: block; margin-top: 30px; margin-bottom: 30px; }
@media (min-width: 990px) { .school-page, .site-form-page { padding-top: 80px; } }
.school-eyebrow { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a8a; margin-bottom: 6px; }
.school-intro { color: #666; max-width: 720px; }
.school-cards { margin-top: 24px; display: flex; flex-wrap: wrap; }
.school-cards + .school-cards { margin-top: 0; }
.school-cards > [class*="col-"] { display: flex; }
.school-cards .school-card { width: 100%; }
.school-card { border: 1px solid #e5e5e5; border-radius: 10px; padding: 24px; margin-bottom: 24px; background: #fff; }
.school-card h3 { margin-bottom: 10px; }
/* custom.css zeroes every heading's top margin with !important. */
.school-card * + h3 { margin-top: 28px !important; }
.school-card p { margin-bottom: 12px; }
/* Not into a grid of cards, whose cards keep their spacing. */
.school-card > :last-child, .school-card > :last-child:not(.row) > :last-child, .school-card > :last-child:not(.row) > :last-child > :last-child { margin-bottom: 0; }
.school-package { display: flex; flex-direction: column; }
/* revamp.css gives .btn.btn-rounded.btn-blue a fixed top margin; other buttons have none. */
.school-card .btn.btn-rounded.school-button { margin-top: 8px; }
.school-card.school-package .btn.btn-rounded.school-button { margin-top: auto; }
.school-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a8a; font-weight: 700; margin: 6px 0 0; }
.school-rate { font-size: 44px; line-height: 1.1; font-weight: 700; color: #1766b0; margin: 4px 0 12px; overflow-wrap: anywhere; }
.school-features { list-style: none; padding: 0; margin: 12px 0 20px; }
.school-features li { position: relative; padding-left: 22px; margin-bottom: 8px; color: #555; }
.school-features li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; color: #1766b0; }
.school-button { display: inline-block; padding: 0 24px; line-height: 40px; height: 40px; }
.school-package .school-button { width: 100%; text-align: center; }
.school-table { margin-bottom: 10px; }
.school-table th { font-weight: 600; }
.school-facts { table-layout: fixed; }
.school-facts th { width: 45%; }
.school-table th, .school-table td { overflow-wrap: anywhere; }
/* Fixed columns, so words only break when one can't fit its column. */
.school-options { table-layout: fixed; }
.school-options th:first-child { width: 38%; }
.school-options th:nth-child(2) { width: 27%; }
.school-options th, .school-options td { overflow-wrap: break-word; }
@media (max-width: 767px) { .table.school-table tr th, .table.school-table tbody tr td { padding: 8px !important; } }
/* custom.css pads body cells, but not header cells, with !important. */
.table.school-table tr th, .table.school-table tbody tr td { padding: 10px 12px !important; }
.school-note { color: #8a8a8a; font-size: 13px; line-height: 1.6; }

/* Registration form. */
.school-steps { list-style: none; padding: 0; margin: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.school-steps li { color: #8a8a8a; font-size: 13px; }
.school-steps li span { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; border: 1px solid #ccc; margin-right: 4px; font-size: 12px; }
.school-steps li + li::before { content: "\2192"; margin-right: 8px; color: #ccc; }
@media (max-width: 767px) { .school-steps li + li::before { display: none; } }
.school-steps li.active { color: #1766b0; font-weight: 600; }
.school-steps li.active span, .school-steps li.done span { border-color: #1766b0; background: #1766b0; color: #fff; }
.school-steps a { color: inherit; }
/* login.css stops every label taking clicks and nudges it down; here labels are plain ones, and checkboxes inside them must work. */
label { pointer-events: auto; -webkit-transform: none; transform: none; left: auto; }

.school-form .form-group { margin-bottom: 16px; }
.school-form p.lbl { color: #9b9b9b; text-transform: uppercase; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 11px; margin-bottom: 6px; }
.school-form .req1 { margin: 0; padding-left: 4px; font-size: inherit; line-height: inherit; }
.school-choice .form-group { margin: 8px 0 0 22px; }
.school-after-button { margin-top: 10px; }
.school-form .inp, .school-form select.inp, .school-form textarea.inp { width: 100%; }
.school-choice label, .school-choice-line { display: block; font-weight: normal; margin: 4px 0; cursor: pointer; }
.school-agreements .school-choice-line { margin: 0 0 10px; }
/* Wrapped lines of a consent stay beside its checkbox. */
.school-form .school-choice-line { display: grid; grid-template-columns: auto 1fr; align-items: start; }
.school-form .school-choice-line input[type="checkbox"] { margin-top: 4px; }
.school-agreements .g-recaptcha { margin-top: 16px; }
.school-form input[type="checkbox"], .school-form input[type="radio"] { display: inline-block; width: auto; height: auto; margin: 0 6px 0 0; vertical-align: middle; }
.school-form textarea { height: auto; }
.school-types .school-type { display: block; cursor: pointer; font-weight: normal; }
.school-types .school-type input { position: absolute; opacity: 0; }
.school-types-title { margin-top: 8px; }
.school-types .school-type ul { list-style: disc; padding-left: 18px; margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #666; }
.school-types .school-type li { margin-bottom: 6px; }
.school-types .school-type.selected { border-color: #1766b0; box-shadow: inset 0 0 0 1px #1766b0; }
.school-type:focus-within { outline: 2px solid #1766b0; }
.school-files { list-style: none; padding: 0; margin: 0 0 12px; }
.school-logo-preview img { display: block; max-width: 240px; max-height: 120px; padding: 8px; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; }
.school-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.school-files form { display: inline; margin: 0; }
.school-files .school-link { width: auto; height: auto; line-height: inherit; margin: 0; padding: 0; }
.school-inline { display: inline; }
.school-link { background: none; border: 0; padding: 0 0 0 8px; color: #1766b0; text-decoration: underline; cursor: pointer; font-size: 13px; }
.school-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.school-upload::before, .school-upload::after { content: none; }
.school-drop { position: relative; flex: 1 1 280px; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 22px 16px; border: 2px dashed #c9d6e3; border-radius: 10px; background: #f8fbfd; color: #1766b0; font-weight: normal; text-align: center; cursor: pointer; }
.school-drop .fa { font-size: 26px; }
.school-drop:hover, .school-drop.is-over { border-color: #1766b0; background: #eef5fb; }
.school-drop:focus-within { outline: 2px solid #1766b0; outline-offset: 2px; }
.school-drop.is-busy { opacity: 0.6; cursor: progress; }
.school-drop-ready .school-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.school-drop-ready button[type="submit"] { display: none; }
.school-drop input[type="file"] { width: auto; height: auto; }
.school-done { color: #3c9a52; }
.school-person { border: 1px dashed #d2d2d2; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.school-person legend { font-size: 14px; font-weight: 600; width: auto; border: 0; padding: 0 6px; margin: 0; }
.school-change { font-size: 13px; margin-left: 8px; }
.school-warning { border-color: #e0a800; background: #fffaf0; }
.school-warning ul { list-style: disc; padding-left: 18px; margin: 0; }
.school-warning li { margin-bottom: 4px; }
.school-page .school-card.school-form button.btn.btn-rounded[type="submit"].school-button { margin-top: 14px; }
.school-contact { list-style: none; padding: 0; }
.school-contact li { margin-bottom: 6px; }
.school-socials a { margin-right: 12px; }

/* Sinhala and Tamil link text is longer than English: let the footer links wrap. */
.rv-footer .footer-menu { flex-wrap: wrap; justify-content: center; max-width: 100%; row-gap: 6px; }

/* Institute portal. */
.school-card-notice { border-color: #b6d7f2; background: #f2f8fd; }
.school-card-notice p { margin: 0; }
.school-invoice { border-top: 1px solid #eee; padding-top: 14px; margin-top: 14px; }
.school-invoice:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.school-invoice-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.school-status { font-size: 12px; padding: 2px 10px; border-radius: 12px; background: #f1f1f1; color: #555; }
.school-status-paid { background: #e6f4ea; color: #1a7f37; }
.school-status-due { background: #fdecea; color: #b3261e; }
.school-pay { max-width: 420px; margin-top: 10px; }
.school-status-open { background: #fff4e0; color: #8a5300; }
.school-status-in_progress { background: #e7f1fb; color: #1766b0; }
.school-status-resolved { background: #e6f4ea; color: #1a7f37; }
.school-feedback { border-top: 1px solid #eee; padding: 12px 0 2px; }
.school-feedback:first-child { border-top: 0; padding-top: 0; }
.school-message-staff { border-color: #b6d7f2; background: #f7fbfe; }
.school-message-body { white-space: normal; overflow-wrap: anywhere; }
.school-file { height: auto !important; border: 0 !important; padding: 0 !important; }
.school-short { color: #b3261e; }
.portal-void strong { color: #8a8a8a; text-decoration: line-through; }

/* Portal menu and pages. */
.portal-nav { border: 1px solid #e5e5e5; border-radius: 10px; padding: 16px 18px; margin-bottom: 24px; background: #fff; }
.portal-nav summary { cursor: pointer; font-weight: 600; color: #1766b0; }
.portal-nav[open] summary { margin-bottom: 10px; }
@media (min-width: 992px) {
    .portal-nav summary { display: none; }
}
.portal-school { font-weight: 600; margin-bottom: 8px; overflow-wrap: anywhere; }
.portal-nav-heading { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a8a8a; margin: 14px 0 4px; }
.portal-nav ul { list-style: none; padding: 0; margin: 0; }
.portal-nav li a { display: block; padding: 5px 10px; margin: 0 -10px; border-radius: 6px; color: #333; font-size: 14px; }
.portal-nav li a:hover { background: #f4f7fa; text-decoration: none; }
.portal-nav li.active a { background: #e7f1fb; color: #1766b0; font-weight: 600; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.portal-actions form, .portal-inline-form { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.school-page button.btn.btn-rounded[type="submit"].school-button { width: auto; padding: 0 24px; margin: 0; }
.portal-ranges { margin: 6px 0 0; font-size: 13px; }
.portal-ranges a { margin-right: 14px; }
.portal-grid th, .portal-grid td { overflow-wrap: normal; }
.portal-matrix th { width: 45%; }
.portal-matrix th, .portal-matrix td { vertical-align: middle !important; }
@media (max-width: 767px) {
    .portal-matrix th, .portal-matrix td { display: block; width: auto; border-top: 0 !important; }
    .portal-matrix tr { display: block; border-top: 1px solid #ddd; }
}
.portal-check { display: inline-block; font-weight: normal; margin: 2px 16px 2px 0; cursor: pointer; }
.portal-stat { font-size: 26px; font-weight: 300; margin: 0; }
.portal-stats { margin-bottom: 12px; }
.portal-address { white-space: pre-line; }
.portal-nowrap { white-space: nowrap; }
.portal-wrap { overflow-wrap: anywhere; }
.portal-raw { max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-all; font-size: 12px; }
.portal-secret { word-break: break-all; }
.portal-main .pagination { margin: 10px 0 0; }

/* The theme sets Montserrat, which has no Sinhala or Tamil, on most elements; give them the page's Noto font. */
body.locale-si *:not(.fa):not(.glyphicon):not(code):not(pre) { font-family: 'Noto Sans Sinhala', 'Open Sans', sans-serif; }
body.locale-ta *:not(.fa):not(.glyphicon):not(code):not(pre) { font-family: 'Noto Sans Tamil', 'Open Sans', sans-serif; }

/* Onboarding pages: larger text than the theme's 11-14px (inputs and buttons are forced to 12px). The portal keeps its denser sizes. */
.school-page:not(.portal-page) { font-size: 16px; }
.school-page:not(.portal-page) .school-note { font-size: 14px; }
.school-page:not(.portal-page) .school-eyebrow,
.school-page:not(.portal-page) .school-label,
.school-page:not(.portal-page) label.lbl,
.school-page:not(.portal-page) .school-form p.lbl { font-size: 13px; }
.school-page:not(.portal-page) .inp { font-size: 15px !important; height: 40px; }
.school-page:not(.portal-page) textarea.inp { height: auto; }
.school-page:not(.portal-page) .btn { font-size: 14px !important; }
.school-page:not(.portal-page) .table > tbody > tr,
.school-page:not(.portal-page) .table.school-table th { font-size: 15px; }
.school-page:not(.portal-page) .school-steps li { font-size: 14px; }
.school-page:not(.portal-page) .school-steps li span { width: 26px; height: 26px; line-height: 26px; font-size: 13px; }
.school-page:not(.portal-page) .school-type,
.school-page:not(.portal-page) .school-types .school-type ul,
.school-page:not(.portal-page) .school-drop,
.school-page:not(.portal-page) .school-change,
.school-page:not(.portal-page) .school-link { font-size: 14px; }
.school-page:not(.portal-page) .school-choice label,
.school-page:not(.portal-page) .school-choice-line { font-size: 15px; }

/* Error pages. */
.site-error { max-width: 640px; margin: 0 auto; text-align: center; }
.site-error-code { font-size: 64px; line-height: 1; font-weight: 700; color: #1766b0; margin-bottom: 8px; }
.site-error .school-note { margin-top: 18px; }
