/**
 * Pre-hire profile form — rules from profile_update_template.php + ee_profile_edit shortcode.
 * Base Bootstrap/Foley UI comes from wp-bootstrap.css and mystyle.css.
 */

body.prehire-body {
    background-color: #000;
    min-height: 100vh;
    margin: 0;
}

.prehire-page {
    min-height: 100vh;
}

.prehire-site-header {
    padding: 2rem 0 0;
}

.prehire-site-header__inner {
    padding-bottom: 1rem;
    border-bottom: 4px solid #ffc61e;
}

.prehire-logo {
    display: block;
    width: 175px;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

.prehire-shell {
    padding: 0.75rem 15px 3rem;
}

.prehire-content {
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.prehire-page-header {
    margin-bottom: 1.25rem;
}

.prehire-page-title {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 46px;
    line-height: 1em;
    color: #000;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #dcdcdc;
}

@media screen and (max-width: 767px) {
    .prehire-page-title {
        font-size: 34px;
    }

    .prehire-site-header {
        padding-top: 1.25rem;
    }

    .prehire-site-header__inner {
        padding-bottom: 0.75rem;
        border-bottom-width: 3px;
    }

    .prehire-logo {
        width: 130px;
    }

    .prehire-shell {
        padding: 1rem 10px 2rem;
    }
}

.wp-bootstrap .container .employee-section-title {
    margin-bottom: 10px;
}

.wp-bootstrap .container label {
    color: #000;
}

.wp-bootstrap .btn-success,
.wp-bootstrap .btn-danger,
.wp-bootstrap .btn-light {
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Open Sans Condensed', sans-serif;
    color: #fff !important;
}

.wp-bootstrap .btn-light {
    color: #000 !important;
}

.wp-bootstrap .photo-block .image-block {
    position: relative;
    padding-top: 255px;
}

.wp-bootstrap .photo-block .image-block:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: #e9ecef;
}

.wp-bootstrap .photo-block .image-block img.emp-photo {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 250px;
    position: absolute;
    top: 125px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wp-bootstrap .changed {
    border-bottom: 3px solid orange !important;
}

.wp-bootstrap .profile-form--new-record #profileEditForm .changed {
    border-bottom: 1px solid #ccc !important;
}

.wp-bootstrap span.asterisk {
    color: #dc3545;
}

.wp-bootstrap .err-msg {
    display: none;
    margin-top: 5px;
    font-size: 85%;
    color: #FB4D42;
}

.wp-bootstrap .missing .err-msg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.wp-bootstrap .missing input,
.wp-bootstrap .missing select,
.wp-bootstrap .missing textarea {
    border-color: #FB4D42;
}

.wp-bootstrap .missing .radio-group {
    border: 1px solid #FB4D42;
    border-radius: 4px;
    padding: 0.5rem;
}

.wp-bootstrap .missing .image-block {
    border: 1px solid #FB4D42;
    border-radius: 4px;
    padding: 0.5rem;
}

.wp-bootstrap .photo-block {
    overflow: visible;
}

.wp-bootstrap .photo-field-group.missing,
.wp-bootstrap .caption-field-group.missing {
    scroll-margin-top: 1.25rem;
}

.wp-bootstrap .caption-field-group .err-msg {
    clear: both;
}

.wp-bootstrap img.emp-photo[src=""] {
    display: none !important;
}

.wp-bootstrap .form-buttons-block .row .col-sm-3 {
    display: flex;
    align-items: flex-end;
}

.wp-bootstrap .accordion {
    margin-bottom: 1rem;
    position: relative;
}

.wp-bootstrap .accordion-label {
    display: inline-block;
    cursor: pointer;
    user-select: none;
    padding-right: 26px;
    position: relative;
}

.wp-bootstrap .accordion-label::after {
    content: "▼";
    font-size: 0.8rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.wp-bootstrap .accordion.open .accordion-label::after {
    transform: translateY(-50%) rotate(180deg);
}

.wp-bootstrap .accordion-content {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    display: none;
}

.wp-bootstrap .accordion.open .accordion-content {
    max-height: 800px;
    opacity: 1;
    display: block;
}


.wp-bootstrap .radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    /* margin: 0.85rem 0; */
    cursor: pointer;
    line-height: 1.4;
}

.wp-bootstrap .radio-option input[type="radio"] {
    flex-shrink: 0;
    margin: 0;
}

.wp-bootstrap .original-profile .profile-content {
    max-width: 90%;
    overflow: hidden;
    height: 0;
    background: #e9ecef;
}

.wp-bootstrap .original-profile .profile-content.open {
    height: auto;
    padding: 0 1em;
    border: 5px groove;
}
