/* Login Box Container */
.application-login-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 32px 0;
    margin-top: 32px;
    background: #fff;
}

/* Expanding/Accordion Sections */
.application-section-body { display: none; }
.application-section-body-default { display: block; }
.scholarship-section-body { display: none; }

.application-section-body {
    box-sizing: border-box;
    padding: 20px 0 20px 20px;
    background: transparent;
    border: none;
    border-left: 3px solid #e5e7eb;
    margin: 0 0 20px 0;
}

.scholarship-expanding-header,
.application-expanding-header {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 40px 16px 0;
    box-sizing: border-box;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.scholarship-expanding-header:hover,
.application-expanding-header:hover {
    background-color: #f9fafb;
}

/* CSS Chevron icon */
.scholarship-expanding-header::after,
.application-expanding-header::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #004990;
    border-bottom: 2px solid #004990;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.3s ease;
}

/* Rotated chevron when expanded */
.scholarship-expanding-header.unexpander::after,
.application-expanding-header.unexpander::after {
    transform: translateY(-30%) rotate(-135deg);
}

.application-expanding-header {
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    display: block;
    color: #004990;
}

/* When section is expanded */
.application-expanding-header.unexpander {
    border-bottom: 1px solid #e5e7eb;
}

#content .application-accepted-period p {
    font-size: 12px !important;
    line-height: 18px !important;
    margin: 0 0 20px 0;
}

#content .scholarship-section-body strong { font-size: 14px; line-height: 20px; margin: 0 0 15px 0 !important; }
#content .scholarship-section-body { margin: 0 0 25px 0 !important; }

.available-scholarships {
    margin: 0 0 40px 0;
}

.application-columns {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
}

.application-columns .column-50 {
    flex: 1;
    margin: 0;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.application-columns .column-heading {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.application-columns .column-register {
    text-align: center;
    background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
    border-radius: 8px;
    margin: 16px;
    padding: 24px 32px;
}

.application-columns .column-register .column-heading::before {
    content: "✨ ";
}

.application-columns .register-description {
    margin: 0 0 20px 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.application-columns .column-register .application-button {
    display: inline-block;
    background-color: #004990;
    color: #fff !important;
    border-color: #004990;
}

.application-columns .column-register .application-button:hover {
    background-color: #003a73;
    border-color: #003a73;
    box-shadow: 0px 2px 4px rgba(0, 73, 144, 0.3);
}

.application-columns .column-register .application-button:active {
    background-color: #002d5c;
}

.application-columns .column-login .forgot-password-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.application-columns .column-login .forgot-password-link:hover {
    color: #004990;
    text-decoration: underline;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 768px) {
    .application-columns {
        flex-direction: column;
        gap: 0;
    }

    .application-columns .column-50 {
        padding: 24px 24px;
        width: 100%;
    }

    .application-columns .column-50:first-child {
        padding-bottom: 16px;
    }

    .application-columns .column-50:last-child {
        padding-top: 8px;
    }

    .application-columns .column-heading {
        text-align: center;
    }

    .application-columns .column-login {
        text-align: center;
    }

    .application-columns .column-login #loginform {
        max-width: 300px;
        margin: 0 auto;
    }

    .application-columns .column-register {
        margin: 16px 12px 0 12px;
        border-radius: 8px;
        padding: 20px 16px;
        box-sizing: border-box;
        width: calc(100% - 24px);
    }

    .application-columns #loginform input[type="text"],
    .application-columns #loginform input[type="password"] {
        font-size: 18px;
        padding: 14px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .application-columns #loginform .button {
        font-size: 18px;
        padding: 14px 32px;
        width: 100%;
    }
}

/* Secondary buttons (Save Section, etc.) */
.application-section-body > .acf-form-submit {
    margin-top: 24px;
    margin-left: 16px;
}

.acf-form-submit input[type="submit"].button {
    color: #1e40af;
    background-color: #eff6ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px 14px;
    padding: 10px 38px 10px 16px;
    text-decoration: none;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    box-shadow: 0px 1px 0px rgba(191, 219, 254, 0.5), 0 0 3px rgba(191, 219, 254, 0.3);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
}

.acf-form-submit input[type="submit"].button:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
}

.acf-form-submit input[type="submit"].button:active {
    background-color: #bfdbfe;
}

.acf-form-submit input[type="submit"].button:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
}

/* Action buttons container - inline layout */
.application-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

/* Flow indicator arrow between Save and Submit */
.application-actions .acf-form-submit::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Hide arrow when Submit button isn't shown */
.application-actions .acf-form-submit:last-child::after {
    display: none;
}

/* Save Application button - larger blue button matching Save Section style */
.application-actions .acf-form-submit {
    margin: 0;
    display: flex;
    align-items: center;
}

.application-actions .acf-form-submit input[type="submit"].button {
    color: #1e40af;
    background-color: #eff6ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    padding: 14px 48px 14px 24px;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    box-shadow: 0px 1px 0px rgba(191, 219, 254, 0.5), 0 0 3px rgba(191, 219, 254, 0.3);
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
}

.application-actions .acf-form-submit input[type="submit"].button:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
    box-shadow: 0px 2px 0px rgba(191, 219, 254, 0.6), 0 0 5px rgba(191, 219, 254, 0.4);
}

.application-actions .acf-form-submit input[type="submit"].button:active {
    background-color: #bfdbfe;
    box-shadow: 0px 0px 0px rgba(191, 219, 254, 0.3), 0 0 2px rgba(191, 219, 254, 0.2);
    transform: translateY(1px);
}

.application-actions .acf-form-submit input[type="submit"].button:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
}

/* Submit Application Online button - green with arrow (final action) */
#submit-with-attachments {
    color: #166534 !important;
    background-color: #f0fdf4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    padding: 14px 44px 14px 24px;
    border: 1px solid #22c55e;
    box-shadow: 0px 1px 0px rgba(34, 197, 94, 0.4), 0 0 3px rgba(34, 197, 94, 0.2);
    text-transform: none;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 0;
}

#submit-with-attachments:hover {
    color: #166534 !important;
    background-color: #dcfce7;
    border-color: #16a34a;
    box-shadow: 0px 2px 0px rgba(34, 197, 94, 0.5), 0 0 5px rgba(34, 197, 94, 0.3);
}

#submit-with-attachments:active {
    background-color: #bbf7d0;
    box-shadow: 0px 0px 0px rgba(34, 197, 94, 0.3), 0 0 2px rgba(34, 197, 94, 0.2);
    transform: translateY(1px);
}

#submit-with-attachments:focus {
    outline: 4px solid #22c55e;
    outline-offset: 4px;
}

.application-button {
    background-color: #eff6ff;
    color: #004990 !important;
    border: 1px solid #004990;
    display: table;
    font-size: 18px;
    line-height: 24px;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 32px;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0px 1px 2px rgba(0, 73, 144, 0.15);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.application-button[href] {
    color: #004990;
}

.application-button:hover {
    background-color: #dbeafe;
    border-color: #003a73;
    box-shadow: 0px 2px 4px rgba(0, 73, 144, 0.25);
    text-decoration: none;
}

.application-button:active {
    background-color: #bfdbfe;
    border-color: #002d5c;
    box-shadow: none;
    transform: translateY(1px);
}

.application-button:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
}

.application-button-large {
    padding: 14px 40px;
    font-size: 20px;
}

/* Promotional CTA card - modern centered style */
.application-promotion {
	background: #fff;
	border: 1px solid #e2e8f0;
	padding: 32px;
	box-sizing: border-box;
	margin: 24px 0 30px 0;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.application-promotion p {
	font-size: 16px;
	line-height: 1.6;
	color: #374151;
	margin: 0 0 24px 0;
	font-family: inherit;
	font-weight: normal;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.application-promotion-cta {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.application-promotion-cta a {
	display: inline-block;
	box-sizing: border-box;
	background: #fff;
	color: #1e40af;
	font-size: 14px;
	line-height: 1;
	font-family: inherit;
	font-weight: 500;
	text-transform: none;
	text-decoration: none;
	padding: 12px 24px;
	cursor: pointer;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.application-promotion-cta a:hover {
	background: #eff6ff;
	border-color: #60a5fa;
	color: #1e40af;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.application-promotion-cta a:active {
	background: #dbeafe;
}

.application-promotion-cta a:focus {
	outline: 4px solid #0964b0;
	outline-offset: 4px;
}

.applicant-notification {
    padding: 16px 20px;
    box-sizing: border-box;
    margin: 0 0 24px 0;
    border-radius: 8px;
    border: none;
    border-left: 4px solid #ccc;
    text-align: left;
    font-size: 15px;
    line-height: 1.5;
}

.applicant-notification.status-not-qualified {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 24px 24px 24px 56px;
    position: relative;
}

.applicant-notification.status-not-qualified::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 24px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.applicant-notification.status-not-qualified p {
    margin: 0 0 12px 0;
    color: #92400e;
}

.applicant-notification.status-not-qualified p:last-child {
    margin-bottom: 0;
    font-weight: normal;
}

.applicant-notification.status-not-qualified strong {
    color: #78350f;
}

#content form.acf-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#content .acf-fields > .acf-field {
	border-top: none;
	border-bottom: none;
}

.acf-fields > .acf-field {
	border: none !important;
}

/* Pre-qualification form styling */
.application-pre-qualification {
    padding: 0;
    margin: 0;
}

.application-pre-qualification .acf-form {
    padding: 0;
    margin: 0;
}

.application-pre-qualification .acf-fields {
    padding: 0;
    margin: 0;
}

.application-pre-qualification .acf-fields > .acf-field {
    padding: 0 0 16px 0;
    margin: 0;
}

.application-pre-qualification .acf-form-submit {
    margin: 24px 0 0 0;
    padding: 0;
}

.application-pre-qualification .acf-form-submit input[type="submit"].button {
    background-color: #004990;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    color: #fff;
    border: 1px solid #004990;
    padding: 14px 48px 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.application-pre-qualification .acf-form-submit input[type="submit"].button:hover {
    background-color: #003a73;
    border-color: #003a73;
    box-shadow: 0px 2px 4px rgba(0, 73, 144, 0.3);
}

.application-pre-qualification .acf-form-submit input[type="submit"].button:active {
    background-color: #002d5c;
    transform: translateY(1px);
}

.application-pre-qualification .acf-form-submit input[type="submit"].button:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
}

/* Form inputs - modern styling */
.acf-field .acf-input select {
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    height: auto;
    width: 100%;
    padding: 10px 12px;
    color: #1e272e;
    font-size: 16px;
    line-height: 22px;
    border: 1px solid #aaa;
    box-shadow: 0 1px 0 #cdcdcd, 0 0 3px #dedede;
    background: #fff;
    display: block;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acf-field .acf-input select:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
    border-color: #0964b0;
}

#content form.acf-form input[type="text"] {
    height: auto;
    resize: none;
}

#content form.acf-form input[type="submit"] {
    height: auto;
    width: auto;
    margin-top: 25px;
}

ul.acf-radio-list {
    list-style-type: none;
    padding: 0;
}

ul.acf-radio-list li {
    display: inline-block;
    margin: 0 15px 0 0 !important;
    padding: 0;
}

.acf-field {
    margin: 0 0 20px 0;
}

.acf-fields > .acf-field {
    /*padding: 15px 0 !important;*/
}

.acf-checkbox-list .button {
    border-radius: 4px;
    display: inline-block;
    margin: 12px 0;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    box-sizing: border-box;
    padding: 8px 12px;
    color: #1e40af;
    background: #eff6ff;
    text-decoration: none;
    border: 1px solid #bfdbfe;
    box-shadow: 0px 1px 0px rgba(191, 219, 254, 0.5), 0 0 3px rgba(191, 219, 254, 0.3);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.acf-checkbox-list .button:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
}

.acf-checkbox-list .button:active {
    background-color: #bfdbfe;
}

.acf-checkbox-list .button:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
}

ul.acf-checkbox-list li label {
    margin: 0 0 12px 0;
    font-weight: 600;
}

/* File upload area - modern drop zone */
.acf-file-uploader {
    position: relative;
    padding: 24px;
    background: #f0f7ff;
    border: 2px dashed #93c5fd;
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.acf-file-uploader:hover {
    border-color: #60a5fa;
    background: #e8f2ff;
}

/* Drag-over state when file is being dragged onto the drop zone */
.acf-file-uploader.drag-over {
    border-color: #3b82f6;
    background: #dbeafe;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Upload cloud icon */
.acf-file-uploader .hide-if-value::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    margin: 8px auto 12px auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Drop zone helper text */
.acf-file-uploader .hide-if-value::after {
    content: "Drag & drop your file here, or";
    display: block;
    color: #1e40af;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Style the label as a button */
.acf-file-uploader .acf-basic-uploader {
    display: inline-block;
    position: relative;
    color: #1e40af;
    background: #fff;
    padding: 10px 20px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.acf-file-uploader .acf-basic-uploader:hover {
    background: #eff6ff;
    border-color: #60a5fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Button text */
.acf-file-uploader .acf-basic-uploader::before {
    content: "Browse Files";
}

/* Hide file input but keep it clickable within the label/button */
.acf-file-uploader .acf-basic-uploader input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File info display when file is selected */
.acf-file-uploader .show-if-value.file-wrap {
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.acf-file-uploader .file-info {
    flex: 1;
}

.acf-file-uploader .file-info p {
    margin: 0 0 4px 0;
    font-size: 13px;
    line-height: 1.4;
}

.acf-file-uploader .file-info p:last-child {
    margin-bottom: 0;
}

/* Remove button */
.acf-file-uploader .acf-actions {
    opacity: 1;
}

.acf-file-uploader .acf-icon.-cancel {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Create a visible X using pseudo-elements */
.acf-file-uploader .acf-icon.-cancel::before,
.acf-file-uploader .acf-icon.-cancel::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 2px;
    background-color: #b91c1c;
    border-radius: 1px;
    transition: background-color 0.2s ease;
}

.acf-file-uploader .acf-icon.-cancel::before {
    transform: rotate(45deg);
}

.acf-file-uploader .acf-icon.-cancel::after {
    transform: rotate(-45deg);
}

.acf-file-uploader .acf-icon.-cancel:hover {
    background-color: #fee2e2;
    border-color: #f87171;
}

.acf-file-uploader .acf-icon.-cancel:hover::before,
.acf-file-uploader .acf-icon.-cancel:hover::after {
    background-color: #dc2626;
}

/* Legacy button styling (if used) */
.acf-file-uploader .acf-button.button {
    color: #1e40af;
    background: #fff;
    padding: 10px 20px;
    text-decoration: none;
    margin: 0;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.acf-file-uploader .acf-button.button:hover {
    background-color: #eff6ff;
    border-color: #93c5fd;
}

.acf-file-uploader .acf-button.button:active {
    background-color: #dbeafe;
}

.acf-file-uploader .acf-button.button:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
}

.application-welcome-message {
    margin: 0 0 30px 0;
}

.application-section-body-section {
    margin: 0 0 20px 0;
}

.application-submission-complete,
.status-qualified {
	background: #f0fdf4;
	border-left-color: #22c55e;
	color: #166534;
	padding: 24px 24px 24px 56px;
	position: relative;
}

.application-submission-complete::before,
.status-qualified::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 24px;
	width: 24px;
	height: 24px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.application-submission-complete p,
.status-qualified p {
	margin: 0 0 8px 0;
}

.application-submission-complete p:last-child,
.status-qualified p:last-child {
	margin: 0;
}

.application-submission-complete p strong,
.status-qualified p strong {
	color: #166534;
	font-family: inherit;
	font-weight: 600;
}

/* Application confirmation - persistent positive info (blue) */
.application-confirmation {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.application-confirmation p {
    margin: 0 0 8px 0;
}

.application-confirmation p:last-child {
    margin: 0;
}

.application-confirmation p strong {
    color: #1e40af;
    font-family: inherit;
    font-weight: 600;
}

.application-submission-incomplete,
.status-incomplete {
	background: #fefce8;
	border-left-color: #eab308;
	color: #854d0e;
}

.application-submission-incomplete p,
.status-incomplete p {
	line-height: 1.5;
}

.application-submission-incomplete p strong,
.status-incomplete p strong {
	color: #854d0e;
	font-weight: 600;
	font-family: inherit;
}

.application-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.application-error p strong {
    color: #991b1b;
    font-weight: 600;
}

/* Ready to submit notification - green positive state with inline submit button */
.status-ready-to-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

.status-ready-to-submit p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.status-ready-to-submit p strong {
    color: #166534;
    font-weight: 600;
    font-family: inherit;
}

/* Prominent submit button inside notification - solid green with outer glow ring */
.submit-inline {
    background-color: #22c55e !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    padding: 14px 56px 14px 24px !important;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    /* Outer glow ring (spread shadow) + drop shadow for lift */
    box-shadow:
        0 0 0 5px rgba(34, 197, 94, 0.2),
        0 4px 8px rgba(34, 197, 94, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 20px 20px !important;
    transition: all 0.15s ease;
}

.submit-inline:hover {
    background-color: #16a34a !important;
    box-shadow:
        0 0 0 6px rgba(34, 197, 94, 0.25),
        0 6px 12px rgba(34, 197, 94, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.submit-inline:active {
    transform: translateY(0);
    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.2),
        0 2px 4px rgba(34, 197, 94, 0.3);
}

/* Attachment disclaimer - optional/caution styling */
.application-attachment-disclaimer {
    margin-top: 40px;
    padding: 20px 20px 20px 56px;
    background: #fefce8;
    border: 1px solid #fde047;
    border-left: 4px solid #eab308;
    border-radius: 8px;
    position: relative;
}

.application-attachment-disclaimer::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 20px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ca8a04' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.application-attachment-disclaimer .acf-label label {
    font-size: 14px;
    line-height: 1.6;
    color: #854d0e;
    font-weight: normal;
}

.application-attachment-disclaimer .acf-true-false {
    margin-top: 12px;
}

.application-attachment-disclaimer .acf-true-false label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #854d0e;
    font-weight: 600;
    cursor: pointer;
}

.application-attachment-disclaimer input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #eab308;
}

/* Side-by-side layout: ID banner + content */
.application-header-row {
    display: flex;
    gap: 24px;
    margin: 0 0 24px 0;
    align-items: stretch;
}

/* 60/40 split (content 60%, sidebar 40%) */
.application-header-row .application-header-content {
    flex: 6;
    min-width: 0;
}

.application-header-row .application-header-sidebar {
    flex: 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.application-header-row .application-header-sidebar .application-id-banner {
    margin: 0;
}

/* Logout bar - subtle, top right of sidebar */
.application-logout-bar {
    font-size: 14px;
    color: #64748b;
    text-align: right;
    padding: 0 4px;
}

.application-logout-bar .separator {
    color: #cbd5e1;
    margin: 0 4px;
}

.application-logout-bar a {
    color: #64748b;
    text-decoration: none;
}

.application-logout-bar a:hover {
    color: #475569;
    text-decoration: underline;
}

/* Alternative: 50/50 split - add class to .application-header-row */
.application-header-row.split-50-50 .application-header-content {
    flex: 1;
}

.application-header-row.split-50-50 .application-id-banner {
    flex: 1;
}

/* Stack on mobile */
@media (max-width: 768px) {
    .application-header-row {
        flex-direction: column;
        gap: 16px;
    }

    .application-header-row .application-header-content,
    .application-header-row .application-header-sidebar,
    .application-header-row .application-id-banner,
    .application-header-row.split-50-50 .application-header-content,
    .application-header-row.split-50-50 .application-id-banner {
        flex: none;
        width: 100%;
    }

    .application-logout-bar {
        text-align: center;
    }
}

/* Application ID banner - prominent, copy-friendly */
.application-id-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 24px 0;
    text-align: center;
}

.application-id-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.application-id-value {
    font-size: 28px;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    color: #1e293b;
    letter-spacing: 1px;
    user-select: all;
}

.application-id-hint {
    font-size: 13px;
    color: #94a3b8;
}

/* Application Deadline banner - matches ID banner style, purple themed */
.application-deadline-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
}

.application-deadline-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7c3aed;
}

.application-deadline-value {
    font-size: 18px;
    font-weight: 700;
    color: #5b21b6;
}

/* Deadline notice - purple with calendar icon */
.application-deadline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-left: 3px solid #a855f7;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 8px 0 16px 0;
}

/* Calendar icon */
.application-deadline::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239333ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.application-deadline strong {
    color: #7e22ce;
    font-size: 15px;
    font-weight: 600;
}

/* Required fields indicator */
.app-required .acf-label label::after {
    display: inline-block;
    content: "*";
    color: #dc2626;
    margin-left: 2px;
}

/* Required statement - softer, informational */
.app-required-statement {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    font-style: italic;
}

/* Updates for new site */
.application-columns #loginform label {
    display: inline-block;
    line-height: 1.5;
    clear: both;
    font-weight: normal;
    font-size: 14px;
    color: #1e272e;
    box-sizing: border-box;
    text-align: left;
    margin-bottom: 8px;
}

/* ACF field labels */
#content form.acf-form .acf-label label {
    font-size: 14px;
    line-height: 24px;
    font-weight: normal;
    color: #1e272e;
}

/* ACF sub-labels and instructions */
#content form.acf-form .acf-input-wrap + label,
#content form.acf-form .acf-instructions {
    font-size: 12px;
    line-height: 20px;
    color: #555;
}

/* Form inputs - using direct ACF selectors */
.acf-field .acf-input-wrap input[type="text"],
.acf-field .acf-input-wrap input[type="password"],
.acf-field .acf-input-wrap input[type="email"],
.acf-field .acf-input-wrap input[type="tel"],
.acf-field .acf-input-wrap input[type="number"],
.acf-field .acf-input-wrap input[type="search"],
.acf-field .acf-input-wrap input[type="url"],
.acf-field .acf-input-wrap input[type="date"],
.acf-field .acf-input-wrap input[type="datetime-local"],
.acf-field .acf-input-wrap input[type="month"],
.acf-field .acf-input-wrap input[type="week"],
.acf-field .acf-input-wrap input[type="time"],
.application-columns #loginform input[type="text"],
.application-columns #loginform input[type="password"] {
    font-size: 16px;
    line-height: 22px;
    border-radius: 4px;
    border: 1px solid #aaa;
    box-shadow: 0 1px 0 #cdcdcd, 0 0 3px #dedede;
    background: #fff;
    padding: 10px 12px;
    box-sizing: border-box;
    display: block;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acf-field .acf-input-wrap input[type="text"]:focus,
.acf-field .acf-input-wrap input[type="password"]:focus,
.acf-field .acf-input-wrap input[type="email"]:focus,
.acf-field .acf-input-wrap input[type="tel"]:focus,
.acf-field .acf-input-wrap input[type="number"]:focus,
.acf-field .acf-input-wrap input[type="search"]:focus,
.acf-field .acf-input-wrap input[type="url"]:focus,
.acf-field .acf-input-wrap input[type="date"]:focus,
.acf-field .acf-input-wrap input[type="datetime-local"]:focus,
.acf-field .acf-input-wrap input[type="month"]:focus,
.acf-field .acf-input-wrap input[type="week"]:focus,
.acf-field .acf-input-wrap input[type="time"]:focus,
.application-columns #loginform input[type="text"]:focus,
.application-columns #loginform input[type="password"]:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
    border-color: #0964b0;
}

.acf-field .acf-input textarea {
    font-size: 16px;
    line-height: 22px;
    border-radius: 4px;
    border: 1px solid #aaa;
    box-shadow: 0 1px 0 #cdcdcd, 0 0 3px #dedede;
    background: #fff;
    padding: 10px 12px;
    box-sizing: border-box;
    font-family: inherit;
    font-weight: normal;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acf-field .acf-input textarea:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
    border-color: #0964b0;
}

.application-columns #loginform .button,
#content form.acf-form input[type="submit"] {
    background-color: #eff6ff;
    color: #004990;
    border: 1px solid #004990;
    display: table;
    font-size: 18px;
    line-height: 24px;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 32px;
    cursor: pointer;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0px 1px 2px rgba(0, 73, 144, 0.15);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.application-columns #loginform .button:hover,
#content form.acf-form input[type="submit"]:hover {
    background-color: #dbeafe;
    border-color: #003a73;
    box-shadow: 0px 2px 4px rgba(0, 73, 144, 0.25);
}

.application-columns #loginform .button:active,
#content form.acf-form input[type="submit"]:active {
    background-color: #bfdbfe;
    border-color: #002d5c;
    box-shadow: none;
    transform: translateY(1px);
}

.application-columns #loginform .button:focus,
#content form.acf-form input[type="submit"]:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
}

/* Custom Registration Form */
.scholarship-register-form {
    text-align: left;
    max-width: 450px;
    margin: 0 auto;
}

.scholarship-register-form .register-field {
    margin: 0 0 16px 0;
}

/* Side-by-side field rows */
.scholarship-register-form .register-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.scholarship-register-form .register-row .register-field {
    flex: 1;
    margin-bottom: 0;
}

.scholarship-register-form .register-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.scholarship-register-form .register-field input[type="text"],
.scholarship-register-form .register-field input[type="email"],
.scholarship-register-form .register-field input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 22px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.scholarship-register-form .register-field input[type="text"]:focus,
.scholarship-register-form .register-field input[type="email"]:focus,
.scholarship-register-form .register-field input[type="password"]:focus {
    outline: 4px solid #0964b0;
    outline-offset: 4px;
    border-color: #0964b0;
}

.scholarship-register-form .register-field .field-hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.scholarship-register-form .register-submit {
    margin: 20px 0 0 0;
    text-align: center;
}

.scholarship-register-form .register-submit .application-button {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
}

/* Registration success message */
.scholarship-register-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

.scholarship-register-success h4 {
    color: #065f46;
    margin: 0 0 12px 0;
    font-size: 16px;
}

.scholarship-register-success p {
    color: #047857;
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.scholarship-register-success p:last-child {
    margin-bottom: 0;
}

.scholarship-register-success a {
    color: #065f46;
    text-decoration: underline;
}

/* Registration error message */
.scholarship-register-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.scholarship-register-error p {
    color: #b91c1c;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.scholarship-register-error a {
    color: #991b1b;
    text-decoration: underline;
}

/* Responsive adjustments for registration form */
@media (max-width: 768px) {
    .scholarship-register-form {
        max-width: 100%;
    }

    /* Stack side-by-side rows on mobile */
    .scholarship-register-form .register-row {
        flex-direction: column;
        gap: 0;
    }

    .scholarship-register-form .register-row .register-field {
        margin-bottom: 16px;
    }

    .scholarship-register-form .register-field input[type="text"],
    .scholarship-register-form .register-field input[type="email"],
    .scholarship-register-form .register-field input[type="password"] {
        font-size: 18px;
        padding: 14px 16px;
    }

    .scholarship-register-form .register-submit .application-button {
        font-size: 18px;
        padding: 14px 32px;
    }
}

/* Single column layout for forgot/reset password */
.application-single-column {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.application-single-column .column-heading {
    margin-bottom: 12px;
}

.application-single-column .reset-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

.application-single-column .scholarship-register-form {
    max-width: 100%;
}

/* Back to login link */
.back-to-login {
    margin-top: 20px;
    text-align: center;
}

.back-to-login a {
    color: #0964b0;
    text-decoration: none;
    font-size: 14px;
}

.back-to-login a:hover {
    text-decoration: underline;
}
