html,
body {
    background-color: #f0f8ff;
}

body.page-app .uk-container {
    background-color: #ffffff;
    width: auto;
}

.uk-heading-line {
    margin-top:10px;
}

.uk-button-primary {
    background-color: #004d8f !important;
    border-color: #004d8f !important;
}

.uk-button-primary:hover {
    background-color: #00569a !important;
    border-color: #00569a !important;
}

/* This deployment does not use the resume parser's work-experience rating.
   parse_rsm.js injects those rows after a resume is parsed. Use the DIRECT-child
   combinator (> .rate) so this only matches the rating's own wrapper — NOT the
   outer .uk-container.uk-margin-small, which merely contains .rate deep inside
   and would otherwise collapse the whole page. Remove to re-enable the rating. */
   
body.page-app .uk-margin-small:has(> .rate) {
    display: none;
}

/* "Attach" action buttons (resume upload, camera). Their own class instead of
   uk-button-primary so the brand-blue !important rule above doesn't override them. */
.btn-attach {
    background-color: #004d8f;
    border-color: #004d8f;
    color: #fff;
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
}

/* The resume button lives inside uk-form-custom, where the real <input type="file">
   overlays the button — so the button never receives :hover directly. Drive the
   hover from the container (and focus-within for keyboard), plus the plain camera
   button's own :hover/:focus. */
.btn-attach:hover,
.btn-attach:focus,
[data-uk-form-custom]:hover .btn-attach,
[data-uk-form-custom]:focus-within .btn-attach {
    background-color: #00569a;
    border-color: #00569a;
    color: #fff;
}

/* Make the overlaying file input show the pointer cursor too. */
[data-uk-form-custom],
[data-uk-form-custom] input[type="file"] {
    cursor: pointer;
}

.uk-radio:checked,
.uk-checkbox:checked {
    background-color: #00569a;
    /* your brand color */
    border-color: transparent;
}

.uk-input,
.uk-select,
.uk-textarea {
    border-color: #004d8f !important;
}

.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
    border-color: #004d8f !important;
    box-shadow: 0 0 5px rgba(0, 79, 163, 0.5);
}

.uk-form-label.checks {
    white-space: nowrap;
}


.progress-fill {
    background-color: #004d8f !important;
}

.uk-subnav-pill>.uk-active>a {
    background-color: #004d8f !important;
    color: white !important;
    border-radius: 6px;
}

.uk-subnav-pill>li>a:hover {
    background-color: #004d8f !important;
    color: rgb(211, 211, 211) !important;
    border-radius: 6px;
}

#switchermenu {
    position: sticky;
    top: 10px;
    z-index: 980;
    padding: 6px 0;
    /* Near-opaque so step content scrolling underneath doesn't show through */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
}

.highlight-container {
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.highlight-field {
    border: 2px solid #ffcc00;
    /* Initial highlight */
    padding: 10px;
    border-radius: 5px;
    background-color: #fffbe6;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.uk-checkbox {
    height: 25px;
    width: 25px;
    margin: .5rem;
    vertical-align: middle;
}

/* Fade out highlight without affecting layout */
.no-highlight {
    border: 2px solid transparent !important;
    /* Keeps space occupied */
    background-color: transparent !important;
}

#required-questions-container {
    transition: max-height 0.5s ease, opacity 0.5s ease;
    overflow: hidden;
    max-height: 400px;
    /* Adjust this based on content size */
    opacity: 1;
}

.easing-out {
    transition: background-color 0.8s ease-out;
}

#required-questions-container.collapsed {
    max-height: 0;
    opacity: 0;
}

/*Drop Zone for Resume */
.drop-zone {
    border: 2px dashed #4CAF50;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    color: #4CAF50;
    background-color: #f8fff8;
    transition: 0.3s ease-in-out;
}

.drop-zone.disabled {
    border: 2px dashed #9ab59b;
    color: #a5b9a5;
    background-color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.6;
    /* Dimmed effect */
}

.drop-zone:hover {
    background-color: #e8f8e8;
}

.drop-zone p {
    margin: 0;
    font-weight: bold;
}

.hidden-input {
    display: none;
}

/* General rounded corners for UIkit elements */
.uk-card,
.uk-textarea,
.uk-select,
.uk-button {
    border-radius: 6px;
    /* Adjust this value for more/less rounding */
}

/* Default spacing (for larger screens) */
.uk-card {
    padding: 1rem;
    margin: 1rem auto;
    /* Normal spacing */
}

.yn-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.yn-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    min-width: 90px;
}

.yn-option input {
    margin: 0;
}

/* Reduce margins on small screens */
@media (max-width: 640px) {
    .uk-card {
        margin: 0.15rem;
        /* Less wasted space */
        padding: 0.45rem;
        /* Reduce internal padding */
    }

    body.page-app .uk-container {
        margin: 0.25rem auto;
        padding: .25rem .5rem;
    }
}

.uk-input {
    border-radius: 4px;
    /* Adjust this value for more/less rounding */
}

/* Adjust UIkit modals, alerts, or other components */
.uk-modal-dialog,
.uk-alert {
    border-radius: 8px;
}

/* Progress Bar (if needed) */
.progress-fill {
    border-radius: 3px;
}



.app-logo {
    height: 76px;
    width: auto;
}

.section-heading {
    border-bottom: 2px solid #ddd;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.25rem;
}

.progress-bar {
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

/* Highlight automatically filled fields */
.filled-field {
    background-color: #e0ffe0;
    /* Light green background */
    border: 1px solid #00b300;
    /* Green border */
}

/* Highlight missed required fields */
.missed-field {
    background-color: #ffe0e0;
    /* Light red background */
    border: 1px solid #ff4d4d;
    /* Red border */
}

footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}


/* ============================================================
           Thank-you page (applicationJRPthanks.php)
           Merged from assets/applicationJRP.css. Scoped under
           body.page-thanks so none of it affects the application form.
           ============================================================ */
body.page-thanks #top-head {
    z-index: 9;
    top: 0;
    left: 0;
    right: 0;
}

body.page-thanks .rads {
    white-space: nowrap;
}

body.page-thanks .checks {
    white-space: nowrap;
    display: inline-block;
}

body.page-thanks .uk-form-label2 {
    color: rgb(170, 0, 0);
    font-size: 0.875rem;
}

body.page-thanks .uk-form-stacked .uk-form-label2 {
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 959px) {
    body.page-thanks .uk-form-horizontal .uk-form-label2 {
        display: block;
        margin-bottom: 5px;
    }
}

body.page-thanks input[type="checkbox"] {
    vertical-align: -8px;
    margin-top: 5px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

@media (min-width: 960px) {
    body.page-thanks .uk-form-horizontal .uk-form-label2 {
        width: 200px;
        margin-top: 7px;
        float: left;
    }

    body.page-thanks .uk-form-horizontal .uk-form-controls {
        margin-left: 215px;
    }

    body.page-thanks .uk-form-horizontal .uk-form-controls-text {
        padding-top: 7px;
    }
}

body.page-thanks .autocomplete-results {
    border: 1px solid #ddd;
    position: absolute;
    z-index: 1000;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 100%;
    max-height: 450px;
    overflow-y: auto;
}

body.page-thanks .autocomplete-results li {
    padding: 5px 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

body.page-thanks .autocomplete-results li:last-child {
    border-bottom: none;
}

body.page-thanks .autocomplete-results li:hover {
    background-color: #eee;
}

body.page-thanks .uk-navbar-nav>li>a,
body.page-thanks .uk-navbar-item,
body.page-thanks .uk-navbar-toggle {
    min-height: 52px;
    padding: 0 8px;
    font-size: 0.85rem;
}

body.page-thanks .navbar-logo {
    background-color: #222A30;
    margin-left: -12px;
}

body.page-thanks .text-light {
    font-weight: 200;
    font-size: 1.25rem;
}

body.page-thanks .bar-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 15px 0;
    background-color: #222A30;
    position: fixed;
    left: 0;
    right: 0;
    z-index: 3;
    bottom: 0;
    width: 240px;
}

body.page-thanks .custom-logo {
    height: 32px;
}

body.page-thanks .profile-img {
    width: 60px;
    margin: 0 auto 10px auto;
    display: block;
}

body.page-thanks .panel-icons {
    margin: 0 4px;
}

body.page-thanks .uk-tooltip {
    background-color: white;
    color: #242C33;
    box-shadow: 0 2px 12px rgba(50, 50, 50, 0.1);
}

body.page-thanks #top-head [class*="uk-navbar-dropdown-bottom"] {
    margin-top: 0;
}

body.page-thanks .uk-heading-primary {
    letter-spacing: -0.032em;
    font-weight: 300;
}

body.page-thanks .rate {
    display: inline-block;
    font-size: 30px;
}

body.page-thanks .rate input {
    display: none;
}

body.page-thanks .rate label {
    padding: 1px;
    cursor: pointer;
    opacity: 0.5;
}

body.page-thanks .rate label:hover,
body.page-thanks .rate input:checked~label {
    opacity: 1;
}

/* #content: applicationJRP.css base + the page's tidy overrides, merged */
body.page-thanks #content {
    margin-top: 52px;
    padding: 30px 16px 40px;
    background-color: #f7f7f7;
    margin-left: 0;
    transition: margin 0.2s cubic-bezier(.4, 0, .2, 1);
}

/* Cards flat by default (as applicationJRP.css had), main card keeps a soft shadow */
body.page-thanks .uk-card {
    box-shadow: none;
    transition: box-shadow 0.55s cubic-bezier(.4, 0, .2, 1);
}

body.page-thanks .thankyou-card {
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.page-thanks .thankyou-card .uk-card-title {
    margin-bottom: 0.5rem;
}

body.page-thanks .contact-card {
    background: #fafafa;
}

body.page-thanks #contactQr {
    margin-top: 0.5rem;
}