﻿/* =========================================
   GLOBAL / BASE
========================================= */
*, *::before, *::after{
    box-sizing:border-box;
}
/* Font */
html, body {
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    max-width: 100%;
    color:#1a1a1a;
}

/* Simple utilities */
.bold {
    font-weight: bold;
}

.text-red {
    color: #b30000;
    background-color: #ffffff;
}

.Required {
    color: #b30000;
}

.text-center {
    text-align: center;
}

/* Spacing helpers */
.container-padding {
    padding-left: 0px;
    padding-right: 0px;
}

.top-pad {
    padding-top: 10px;
}

.left-pad {
    padding-left: 5px;
}

.mt-20 {
    margin-top: 20px;
}

.top-spacing {
    margin-top: 30px;
}

.skip-link{
    position:absolute;
    top:-100px;
    left:0;
    background: #1a4a7a;
    color: white;
    padding: 10px 16px;
    z-index: 9999;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}

    .skip-link:focus{
        top:0;
    }

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
/* =========================================
   TYPOGRAPHY / HEADERS
========================================= */
.header-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 900;
    font-size: 16pt;
}

.divider-title {
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    font-size: 14pt;
    background-color: #d9f0f4;
    /*padding: 10px;*/
    text-align: center;
}

/* Page frame that respects container padding */
.page-frame {
    margin: 0 auto; 
    width: calc(100%-300px);
    max-width: 1200px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    padding: 18px 18px 24px;
    background: #fff;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Collapsible section header/button */
.section {
    margin-top: 22px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.collapse-toggle {
    border: 0;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;    
}

.section-content[hidden] {
    display: none !important;
}

/* =========================================
   FORM ELEMENTS
========================================= */

.form-section {
    margin-top: 30px;
}

/* Inputs / dropdowns */
.form-control,
.form-label,
.form-section,
.content-text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11pt;
    color: #1a1a1a;
}

.form-control {
    height: 2.143em !important;
    font-size: 11pt;
    padding: 4px 8px;
    box-sizing: border-box;
    max-height: 220px;
    overflow-y: auto !important;
    appearance: auto;    
}

    .form-control option {
        padding: 4px;
    }

.form-label {
    font-weight: bold;
    vertical-align: middle;
    /*padding-right: 10px;*/
    height: 2.143em;
    line-height: 2.143em;
    color: #1a1a1a;
}

select{
    appearance: auto;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11pt;
}

/* Validation message look */
.field-error {
    color: #b30000;
    font-size:10pt;
    margin-top: 4px;
    display: block;
    min-height:18px;
}

/* Buttons */
.fixed-button {
    width: 150px;    
    color: #ffffff;
    font-weight:bold;
}

.btn-space{
    margin-left: 30px !important;
}

/* =========================================
   TABLE LAYOUT (FORM ROWS)
========================================= */

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .table-wrap .form-table {
        min-width: 560px;
    }

.form-table {
    width: 100%;
    /*border-spacing: 10px 12px;*/
    border-collapse: separate !important;
    border-spacing: 0 5px !important;
    font-family: 'Segoe UI';
    font-size: 11pt;
}

/* Radio/checkbox column layout */
.radio-col {
    width: 33%;
}

/* =========================================
   WIDTH UTILITIES
========================================= */
.fixed-width {
    width: 400px;
}

.full-width {
    width: 100%;
}

.ninety-five {
    width: 95%;
}

.ninety-width {
    width: 90%;
}

.eighty-width {
    width: 80%;
}

.seventy-five {
    width: 75%;
}

.seventy-width {
    width: 70%;
}

.sixty-five {
    width: 65%;
}

.sixty-width {
    width: 60%;
}

.fifty-five {
    width: 55%;
}

.half-width {
    width: 50%;
}

.forty-five {
    width: 45%;
}

.forty-width {
    width: 40%;
}

.thirty-five {
    width: 35%;
}

.thirty-width {
    width: 30%;
}

/* =========================================
   NOTES / MESSAGES / DIVIDERS
========================================= */

.note-box {
    border: 1px solid #999;
    padding: 10px;
    background-color: #f1f1f1;
    color: black;
    font-size: 11pt;
}

.form-note {
    margin-bottom: 15px;
}

.or-separator {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #333;
    line-height: 0.1em;
    margin: 30px 0;
    color: #333;
    position: relative;
}

    .or-separator span {
        background: #fff;
        padding: 0 10px;
        position: relative;
        color: #b30000;
        font-weight: bold;
        font-family: 'Segoe UI';
        font-size: 11pt;
    }

/* =========================================
   IMAGES
========================================= */

.header-section img {
    height: 100px;
}

.internal-use-img {
    height: 80px;
}

/* =========================================
   LISTS
========================================= */

.custom-list ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.custom-list li {
    margin: 0 0 15px 0;
}

    .custom-list li::before {
        content: counter(item, upper-roman) ". ";
        counter-increment: item;
        font-weight: bold;
    }

.custom-list .list-title {
    font-weight: bold;
}

.custom-list p {
    margin-left: 10px;
    margin-bottom: 5px;
    margin-top: 1rem !important
}

/* =========================================
   ICONS / HELP BUBBLES
========================================= */

.question-icon,
.form-help {
    margin-left: 10px;
    cursor: pointer;
}

.info-icon {
    cursor: pointer;
    vertical-align: middle;
}

/* Bubble container */
.tip-bubble {
    position: absolute;
    display: none; /* hidden by default */
    max-width: 320px;
    background: #fff;
    border: 2px solid #7fb8cf;
    border-radius: 12px;
    padding: 12px 16px 14px 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    z-index: 9999;
    font-family: Segoe UI, Arial, sans-serif;
}

    .tip-bubble.show {
        display: block;
    }

    /* bubble tails */
    .tip-bubble::before {
        content: "";
        position: absolute;
        left: -18px;
        top: 18px;
        border-width: 10px 18px 10px 0;
        border-style: solid;
        border-color: transparent #7fb8cf transparent transparent;
    }

    .tip-bubble::after {
        content: "";
        position: absolute;
        left: -16px;
        top: 18px;
        border-width: 9px 17px 9px 0;
        border-style: solid;
        border-color: transparent #fff transparent transparent;
    }

.tip-content{
    background-color: #FFFFFF !important;
}

.tip-content a {
    word-break: break-all;
    text-decoration: none;
}

    .tip-content a:hover {
        text-decoration: underline;
    }

.tip-close {
    position: absolute;
    right: 6px;
    top: 4px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

#tipLicense {
    display: none;
}

/* =========================================
   SIGNATURE BOX
========================================= */

.signature-box {
    border: 1px solid #999;
    border-radius: 4px;
    background: #fff;
    width: 95%;
    max-width: 460px;
    height: 80px;
    position: relative;
}

    .signature-box canvas {
        width: 100%;
        height: 100%;
        display: block;
        touch-action: none;        
        border-radius: .25rem;
    }

.signature-actions {
    margin: 30px 0 0 0;
    text-align: left;
}

/* =========================================
   OVERFLOW / WIDTH FIX
========================================= */

/* Prevent page expanding when sections collapse */
.section-content {
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing:border-box;
}

.content-text p,
.content-text li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.custom-list p,
.custom-list li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Fix page-frame not exceeding viewport */
.page-frame {
    box-sizing: border-box;
}

/* Prevent body scroll when sections toggle */
body {
    overflow-x: hidden;
    width: 100%;
}

/* =========================================
   SECTION 4 AND 5 LOCKED STATE
========================================= */

.collapse-toggle:disabled {
    cursor: not-allowed !important;
    opacity: 0.4;
    pointer-events: none;
}

/* =========================================
   DIVIDER TITLE FIX
   Prevent text overflow in section headers
========================================= */

.divider-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 8px 12px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

    .divider-title span {
        flex: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

/* ── Confirm Modal ── */
#confirmModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

    #confirmModal .modal-box {
        background: white;
        border-radius: 8px;
        padding: 20px 20px;
        max-width: 500px;
        margin: 120px auto;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    #confirmModal .modal-actions {
        text-align: center;
    }

#confirmModalTitle {
    margin: 0 0 12px;
    color: #1A4A7A;
    font-size: 16px;
    text-align:center;
}

#confirmModalMessage {
    color: #555;
    font-size: 14px;
    margin: 0 0 24px;
}

#confirmModal .modal-actions {
    text-align: center;
}

#confirmModalOk {
    padding: 8px 24px;
    background: #1A4A7A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

    #confirmModalOk:hover {
        background: #2E75B6;
    }

#confirmModalCancel {
    padding: 8px 24px;
    margin-left: 10px;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

    #confirmModalCancel:hover {
        background: #f5f5f5;
    }

/* ═══════════════════════════════════════════
   APPROVAL / CONFIRMATION / ERROR VIEWS
   ═══════════════════════════════════════════ */

/* Email-style container */
.email-container {
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

/* Email blue header */
.email-header {
    background: #1A4A7A;
    padding: 10px;
    text-align: center;
}

    .email-header h2 {
        color: white;
        margin: 0;
    }

    .email-header p {
        color: #BDC3C7;
        margin: 4px 0 0;
    }

/* Email body padding */
.email-body {
    padding: 24px;
}

/* Action banner — approve */
.action-banner-approve {
    background: #D5F5E3;
    border: 1px solid #27AE60;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #1A5C32;
    font-size: 12pt;
    font-weight: bold;
    text-align: center;
}

/* Action banner — reject */
.action-banner-reject {
    background: #FADBD8;
    border: 1px solid #E74C3C;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #7B241C;
    font-size: 12pt;
    font-weight: bold;
    text-align: center;
}

    .action-banner-approve p,
    .action-banner-reject p {
        font-size: 9pt;
        font-weight: normal;
        margin: 4px 0 0;
    }

/* Details table */
.details-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 16px;
    font-size: 9pt;
    border-color: #ddd;
}

    .details-table .table-header-blue td {
        background: #1A4A7A;
        color: white;
        font-weight: bold;
        padding: 8px 12px;
        font-size: 10pt;
    }

    .details-table .table-header-teal td {
        background: #2E75B6;
        color: white;
        font-weight: bold;
        padding: 8px 12px;
        font-size: 10pt;
    }

    .details-table .table-header-red td {
        background: #C0392B;
        color: white;
        font-weight: bold;
        padding: 8px 12px;
        font-size: 10pt;
    }

    .details-table .row-alt {
        background: #EBF3FB;
    }

    .details-table td {
        padding: 6px;
    }

    .details-table .label-col {
        width: 35%;
        font-weight: bold;
    }

/* School info heading */
.school-info-heading {
    font-weight: bold;
    color: #1A4A7A;
    margin-bottom: 8px;
}

/* Action buttons table */
.action-btn-table {
    margin: 24px auto;
}

.action-btn-approve {
    background: #1A7A44;
    border-radius: 4px;
    padding: 12px 32px;
}

.action-btn-reject {
    background: #C0392B;
    border-radius: 4px;
    padding: 12px 32px;
}

.action-btn-neutral {
    background: #6c757d;
    border-radius: 4px;
    padding: 12px 32px;
}

    .action-btn-approve button,
    .action-btn-reject button,
    .action-btn-neutral button {
        background: none;
        border: none;
        color: white;
        font-weight: bold;
        font-size: 14px;
        font-family: Arial, sans-serif;
        cursor: pointer;
    }

/* Expiry notice */
.expiry-notice {
    color: #c0392b;
    font-size: 9pt;
}

/* Success confirmation box */
.confirmation-success {
    background: #D5F5E3;
    border: 1px solid #27AE60;
    border-radius: 6px;
    padding: 24px;
    margin-top: 24px;
    color: #1A5C32;
}

    .confirmation-success h4 {
        margin: 0 0 8px;
    }

    .confirmation-success .close-note {
        font-size: 9pt;
        margin-top: 12px;
        color: #555;
    }

/* Error box */
.confirmation-error {
    background: #FADBD8;
    border: 1px solid #E74C3C;
    border-radius: 6px;
    padding: 24px;
    margin-top: 24px;
    color: #922B21;
}

    .confirmation-error h4 {
        margin: 0 0 8px;
    }

    .confirmation-error a {
        color: #922B21;
    }


/* ═══════════════════════════════════════
   SELECT2 — AA 1.4.4 Resize Text Fix
   Match other inputs height (30px)
   Use relative units so text scales at 200%
   ═══════════════════════════════════════ */

.select2-container .select2-selection--single {
    height: 2.143em !important;
    min-height: 2.143em !important;
    display: flex !important;
    align-items: center !important;
}

    .select2-container .select2-selection--single
    .select2-selection__rendered {
        line-height: 2.143em !important;
        font-size: 1rem !important;
        padding: 0 2em 0 0.5em !important;
    }

.select2-container--default .select2-selection--single
.select2-selection__arrow {
    height: 2em !important;
    width: 1.5em !important;
    top: 0.07em !important;
}

.select2-container .select2-selection--multiple {
    min-height: 2.143em !important;
}

.select2-container--default.select2-container--disabled
.select2-selection--single {
    height: 2.143em !important;
    min-height: 2.143em !important;
}

.select2-results__option {
    padding: 0.4em 0.5em !important;
    font-size: 1rem !important;
}

.select2-search--dropdown .select2-search__field {
    font-size: 1rem !important;
    padding: 0.35em 0.25em !important;
}

.select2-container--default.select2-container--focus
.select2-selection--single,
.select2-container--default.select2-container--open
.select2-selection--single {
    outline: 2px solid #1A4A7A !important;
    outline-offset: 2px !important;
}

/* ═══════════════════════════════════════════
   ACCESSIBILITY — AA 2.1.1 Keyboard
   Replaces disabled with visually locked style
   ═══════════════════════════════════════════ */
.field-locked {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

select.field-locked {
    pointer-events: none !important;
    cursor: not-allowed !important;
    background-color: #e9ecef !important;
    color: #6c757d !important;
}

/* ════════════════════════════════════════════
   CAPTCHA
   ════════════════════════════════════════════ */

.captcha-box {
    display: inline-block;
    min-width: 320px;
    border: 1px solid #1a3a6b;
    border-radius: 10px;
    padding: 6px 8px;
    background-color: #ffffff;
}

.captcha-display-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-radius: 6px;
    overflow: hidden;
    /*background-image: radial-gradient(circle, #1a3a6b 1px, transparent 1.5px);*/
    background-color: #e9ecef !important;
    background-size: 14px 14px;
    background-position: 0 0;
}    
    /*.captcha-display-row::before {
        content: "";
        position: absolute;
        left: 6%;
        top: 15%;
        width: 55%;
        height: 2px;
        background: #1a3a6b;
        transform: rotate(-18deg);
        transform-origin: left center;
        opacity: 0.6;
        pointer-events: none;
    }*/

.captcha-code {
    position: relative;
    z-index: 1;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 2rem;
    letter-spacing: 6px;
    color: #1a3a6b;
    text-shadow: 1px 1px 0 rgba(26,58,107,0.15);
    user-select: none;
}

.captcha-refresh {
    position: relative;
    z-index: 1;
    background: #e8ecf3;
    border: 1px solid #1a3a6b;
    border-radius: 6px;
    color: #1a3a6b;
    font-size: 1.1rem;
    line-height: 1;
    padding: 8px 10px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 12px;
}

    .captcha-refresh:hover {
        background: #d7dfec;
    }

.captcha-input-row {
    margin-top: 10px;
}

.captcha-input {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================
   MOBILE (≤ 768px)
========================================= */

@media (max-width: 768px) {
    .container-padding {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* page frame edges match container on mobile */
    .page-frame {
        margin: 0 16px;
    }

    .form-table {
        width: 100% !important;
        border-spacing: 0;
    }

        .form-table tr {
            display: block;
            margin-bottom: 16px;
        }

        .form-table td {
            display: block;
            width: 100% !important;
            padding: 8px 0;
        }

    .radio-col {
        width: 100% !important;
    }

    .form-label {
        display: block;
        height: auto;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .form-control {
        width: 100% !important;
    }

    .fixed-button {
        width: 100% !important;
    }

    .field-error {
        display: block;
        margin-top: 6px;
    }

    /* override any inline widths you had on <td> */
    td[style*="width: 20%"], td[style*="width: 45%"] {
        width: 100% !important;
    }
}
