/* Import a custom font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Define custom CSS variables for colors */
:root {
    /* Primary brand colors - can be customized for your brand */
    --primary-brand-color: #a2112a;
    --light-primary-brand-color: rgba(162, 17, 41, 0.1);
    --link-color: #1d2f5f;

    /* Default colors - not recommended to change */
    --grey-400: #D6D6D6;
    --full-page-background-color: #E8E8E8;
    --application-background-color: #FFFFFF;
    --footer-color: #D3D3D3;
    --main-text-color: #333333;
    --sub-header-color: #5C5C5C;
    --field-border-color: #C1C1C1;
}

/* Set the background color and font for the entire page */
body {
    /* background-color: var(--full-page-background-color); */
    font-family: "Poppins", 'sans-serif';
}

/* BEGIN CUSTOM CHANGES */
body #wrapper {
    background-color: var(--application-background-color);
    padding: 0;
    max-width: none;
}

body #embedded_job_board_wrapper {
    padding: 0 !important;
}

#logo, .logo-container, h1 {
    display: none;
}

h1 + #content {
    display: none;
}

#main section h4 {
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    color: var(--link-color);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--grey-400);
}
#main section h3 {
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 0;
    color: var(--primary-brand-color);
}
#main section .opening {
    padding: 15px 0;
    margin: 0;
    border-bottom: 2px solid var(--grey-400);
}
.child {
    margin-left: 0;
}
div#app_body #header .company-name {
    display: none;
}
div#app_body #header .app-title {
    display: block;
}
div#application div.field {
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
}
.select-one {
    display: block;
}
div#submit_buttons input#submit_app {
    background: var(--primary-brand-color);
    font-family: "Poppins", 'sans-serif';
    border-radius: 10px;
    padding: 10.5px 24px;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.27px;  
}
/* END CUSTOM CHANGES */

/* Style the select boxes */
#main .select2-choice {
    height: 35px;
}

#main .select2-chosen {
    line-height: 35px;
}

#main .select2-arrow {
    padding-top: 4px;
    padding-right: 4px;
}

/* Style the filter labels */
#main .filter-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-text-color);
}


/* Style the job locations */
#main .location {
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    color: var(--sub-header-color);
    margin-top: -0 !important;
}

/* Style the job board page */
#main > h1:not(.app-title) {
    /* Hide the company name in favor of a Logo that includes it */
    display: none;
}

/* Style the board title */
#board_title {
    margin: 0 0 16px 0;
    font-size: 50px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    display: none;
}

/* Add margin for sections */
section {
    margin-top: 16px;
}

/* Add margin for section headings */
section > h3 {
    margin-top: 32px;
}

/* Style the main content container */
body #content {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

/* Style the main section job locations */
#main section .location {
    display: block;
    margin-top: -24px;
}

/* Style the clickable area and background area of the job opening links */
section .opening {
    position: relative;
}
section .opening a {
    font-size: 24px;
    font-weight: 600;
    line-height: normal;
    color: var(--main-text-color);
    display: block;
    height: 64px;
    padding-right: 100px;
    margin-bottom: -60px;
    padding-bottom: 20px;
    margin-left: 0;
    padding-left: 0;
    padding-top: 12px;
    margin-top: -12px;
    position: relative;
    z-index: 1;
}

section .opening a::after {
    content: 'View Job';
    display: block;
    width: 83px;
    height: 27px;
    position: absolute;
    top: 16px;
    right: 40%;
    color: var(--primary-brand-color);
    font-size: 18px;
}

@media (max-width: 1200px) {
    section .opening a {
        height: 96px;
    }
    section .opening a::after {
        right: 0;
    }
    #main section .location {
        position: absolute;
        right: 0;
        bottom: 20px;
    }
}

/* Style the job opening links when hovered */
section .opening a:hover {
    background-color: var(--light-primary-brand-color);
    color: var(--main-text-color);
    text-decoration: none;
}

/* Style the footer of the page */
body #footer {
    border: none;
    background-color: var(--footer-color);
    height: 60px;
    margin-top: -80px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Style the privacy policy text in the footer */
body #footer .privacy-policy {
    line-height: 19px;
}

/* Style the image in the footer */
body #footer img {
    width: 90px;
}

/* Style the filter count element */
h3#filter-count {
    margin-top: 30px;
    margin-bottom: 0;
}

/* Job Post Page */

/* Style the main app body container */
div#main div#app_body {
    padding-left: 0 !important;
    padding-right: 0;
}

/* Style the header section within the main app body */
div#app_body #header {
    display: flex;
    flex-direction: column;
}

/* Style the apply button within the header */
div#app_body #header #apply_button {
    order: 3;
    margin-top: 37px
}

/* Style the header elements, defining their display order */
div#app_body #header > a {
    order: 1;
}

/* Set the order of the location element within the header and add a top margin */
div#app_body #header .location {
    order: 4;
    margin-top: 2px;
}

/* Style the heading element in the application form */
div#main #application_form h2.heading {
    color: var(--main-text-color);
    font-weight: 400;
}

/* Style the app title within the main app body */
div#app_body .app-title {
    font-weight: 400;
    font-size: 28px;
}

/* Style the apply button within the header */
div#app_body div#header #apply_button {
    top: auto;
    background-color: var(--primary-brand-color);
    padding-top: 8px;
    padding-bottom: 8px;
    font-weight: 600;
}

/* Style the main app body container */
div#app_body {
    max-width: none;
    padding-right: 20px;
}

/* Add padding to the bottom of the content container */
div#content {
    padding-bottom: 16px;
}

/* Hide the last horizontal rule in the application container */
div#application hr:nth-last-of-type(1) {
    display: none;
}

/* Style the application container */
div#application {
    background-color: var(--application-background-color);
    border-top: 1px solid #DADADA;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

/* Style the main and custom fields in the application form */
div#main_fields, div#custom_fields {
    font-weight: 400;
    line-height: normal;
}

/* Style the field labels in the application form */
div#application div.field label {
    display: block;
    float: none;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    line-height: 1;
}

/* Style the asterisk symbol in the field labels */
div#application div.field label span.asterisk {
    font-size: 14px;
}

/* Remove left margin from textarea elements in main fields */
div#application #main_fields div.field textarea {
    margin-left: 0;
}

/* Style text input fields in the application form */
div#application div.field input[type=text] {
    border: solid 1px var(--field-border-color);
    height: 25px;
    padding-left: 12px;
    width: 455px;
}

/* Adjust the width of text input fields on smaller screens */
@media (max-width: 640px) {
    div#application div.field input[type=text] {
        width: 100%;
    }
}

/* Style the input fields with "MM" and "YYYY" placeholders */
div#application div.field input[placeholder="MM"] {
    padding-left: 10px;
}

div#application div.field input[placeholder="YYYY"] {
    padding-left: 7px;
}

/* Remove the float property from legend elements */
div#application legend {
    float: none;
}

/* Style the links within the link-container */
div.link-container a {
    color: var(--link-color);
    font-size: 14px;
}

/* Remove left margin from the "add education" link in the application */
div#application a#add_education {
    margin-left: 0;
}

/* Add bottom margin to the field container */
div#field {
    margin-bottom: 10px;
}

/* Remove left padding from the field error message */
#main_fields div.field div.field-error-msg {
    padding-left: 0;
}

/* Add top padding to the message container */
div.field div.msg-container {
    padding-top: 5px;
}

/* Display the "locate me" link as a block element */
div#application div.field a.locate-me {
    display: block;
}

/* Style the textarea fields in the application form */
div#application div.field textarea {
    border-color: var(--field-border-color);
    width: 455px;
}

/* Adjust the width of textarea fields on smaller screens */
@media (max-width: 640px) {
    div#application div.field textarea {
        width: 100%;
    }
}

/* Set the width of the select2-container in the application form */
div#application div.field div.select2-container {
    width: 455px !important;
}

/* Adjust the width of the select2-container on smaller screens */
@media (max-width: 640px) {
    div#application div.field div.select2-container {
        width: 100% !important;
    }
}

/* Hide the S3 upload form */
div.s3-upload-form {
    display: none;
}

/* Style the "view more" element on the confirmation page */
#main #view-more {
    text-align: left;
    padding-top: 0;
}

/* Style the links within strong elements on the main container */
#main strong > a {
    color: var(--link-color);
    font-weight: 400;
}
