/* ============================================
   APPLICATION PAGE STYLES
   ============================================ */

/* Application Hero Section */
.application-hero-section {
    position: relative;
    height: 450px;
    width: 100%;
    overflow: hidden;
}

.application-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    margin-top: 40px;
}

.application-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4.25rem);
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.application-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.375rem);
    font-weight: 300;
    color: var(--text-white);
    max-width: 600px;
    opacity: 0.9;
}

/* Grey Line */
.application-grey-line {
    background-color: #231F20;
    height: 50px;
}

/* ============================================
   APPLICATION FORM SECTION
   ============================================ */
.application-form-section {
    position: relative;
    overflow: hidden;
    background-color: var(--dark-bg);
}

.application-form-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.application-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(35, 31, 32, 0.92);
}

.application-form-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0 5rem;
}

/* Job Details Card */
.job-details-card {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    background: rgba(70, 130, 180, 0.15);
    border: 1px solid rgba(70, 130, 180, 0.3);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
}

.job-details-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.job-details-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.job-detail-item {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.job-detail-item i {
    color: var(--main-color);
    margin-right: 0.5rem;
}

/* Form Wrapper */
.application-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Application Header */
.application-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.application-company-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.application-company-info h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.application-company-info p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.equal-opportunity-notice {
    background: rgba(70, 130, 180, 0.15);
    border-left: 3px solid var(--main-color);
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.equal-opportunity-notice p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Application Notice Card */
.application-notice-card {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.application-notice-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.application-notice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.application-notice-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(70, 130, 180, 0.2);
    border-radius: 50%;
    color: var(--main-color);
}

.application-notice-icon i {
    font-size: 1.25rem;
}

.confidentiality-item .application-notice-icon {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.application-notice-text {
    flex: 1;
}

.application-notice-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.application-notice-text p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--main-color);
}

.subsection-heading {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.section-help-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Form Labels */
.application-form-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1.4;
}

/* Form Grid System */
.form-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: end;
}

.form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.form-grid-address {
    grid-template-columns: 3fr 1fr;
}

/* Education Table */
.education-table {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr 1fr 1fr 1.5fr 2fr;
    column-gap: 0.5rem;
    row-gap: 1rem;
    margin-bottom: 1.5rem;
}

.education-header {
    display: contents;
}

.education-header > div {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.education-row {
    display: contents;
}

.education-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    padding-top: 0.75rem;
}

.education-table input {
    margin-top: 0.3rem;
}

.standing-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.standing-checkboxes .form-check {
    margin-bottom: 0;
}

.form-check-label.standing-checkbox-label {
    margin-left: 0.3rem;
}

/* References Table */
.references-table {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr;
    gap: 0.5rem;
    row-gap: 1rem;
    margin-bottom: 1.5rem;
}

.references-header {
    display: contents;
}

.references-header > div {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.references-row {
    display: contents;
}

.references-table input {
    margin-top: 0.3rem;
}

@media (max-width: 767px) {
    .education-header {
        display: none;
    }

    .education-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 1.5rem;
    }

    .education-label {
        font-size: 1.125rem;
        padding-top: 0;
    }

    .references-header {
        display: none;
    }

    .references-table {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .references-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 1.5rem;
    }
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field .application-form-input {
    width: 100%;
    box-sizing: border-box;
}

/* Form Inputs */
.application-form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.application-form-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(70, 130, 180, 0.25);
    outline: 0;
    color: var(--text-white);
}

.application-form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea.application-form-input {
    resize: vertical;
    min-height: 80px;
}

.application-form-input:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

select.application-form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select.application-form-input option {
    background: #1a1a1a;
    color: white;
}

/* Form Checks */
.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.form-check-input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(70, 130, 180, 0.25);
}

.form-check-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Special Notices */
.affirmative-action-notice,
.consent-notice {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.affirmative-action-notice p,
.consent-notice p {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.affirmative-action-notice p:last-child,
.consent-notice p:last-child {
    margin-bottom: 0;
}

/* Form Actions */
.application-form-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
}

.btn-application-submit {
    padding: 1.25rem 3.5rem;
    font-size: 1.375rem;
    transition: transform 0.3s ease;
}

.btn-application-submit:hover {
    transform: scale(1.03);
}

.form-footer-note {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Decorative Lines */
.application-decorative-line-left {
    position: absolute;
    top: 50px;
    left: 100px;
    width: 2px;
    height: calc(100% - 100px);
    background-color: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.application-decorative-line-right {
    position: absolute;
    top: 50px;
    right: 100px;
    width: 2px;
    height: calc(100% - 100px);
    background-color: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

/* ============================================
   APPLICATION FINAL CTA
   ============================================ */
.application-final-cta .final-cta-content {
    min-height: 450px;
}

/* ============================================
   PRINT STYLESHEET
   ============================================ */
@media print {
    /* Reset page */
    @page {
        margin: 0.5in;
        size: letter;
    }

    /* Hide non-essential elements */
    nav,
    .application-hero-section,
    .application-grey-line,
    .final-cta-section,
    footer,
    .btn-application-submit,
    .application-decorative-line-left,
    .application-decorative-line-right,
    .application-form-bg-image,
    .application-form-overlay,
    .job-details-card,
    .form-footer-note {
        display: none !important;
    }

    /* Application Notice Card - Print Styles */
    .application-notice-card {
        background: white !important;
        border: 1px solid black !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        page-break-inside: avoid;
    }

    .application-notice-content {
        gap: 1rem !important;
    }

    .application-notice-item {
        page-break-inside: avoid;
    }

    .application-notice-icon {
        background: white !important;
        border: 1px solid black !important;
        color: black !important;
        width: 30px !important;
        height: 30px !important;
    }

    .application-notice-icon i {
        font-size: 1rem !important;
    }

    .application-notice-title {
        color: black !important;
        font-size: 10pt !important;
        margin-bottom: 0.25rem !important;
    }

    .application-notice-text p {
        color: black !important;
        font-size: 9pt !important;
    }

    /* Reset body and main container */
    body {
        background: white !important;
        color: black !important;
        font-size: 10pt !important;
    }

    main {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Form Section */
    .application-form-section {
        background: white !important;
        padding: 0 !important;
        position: static !important;
    }

    .application-form-content {
        padding: 0 !important;
        position: static !important;
    }

    /* Form Wrapper */
    .application-form-wrapper {
        background: white !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    /* Application Header */
    .application-header {
        border-bottom: 2px solid black !important;
        page-break-after: avoid;
    }

    .application-company-info h3,
    .application-company-info p {
        color: black !important;
    }

    .equal-opportunity-notice {
        background: white !important;
        border: 1px solid black !important;
        page-break-inside: avoid;
    }

    .equal-opportunity-notice p {
        color: black !important;
        font-size: 8pt !important;
    }

    /* Form Sections */
    .form-section {
        page-break-inside: avoid;
        border-bottom: 1px solid #ccc !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1rem !important;
    }

    .section-heading {
        color: black !important;
        border-bottom: 2px solid black !important;
        font-size: 14pt !important;
        page-break-after: avoid;
    }

    .subsection-heading {
        color: black !important;
        font-size: 11pt !important;
        page-break-after: avoid;
    }

    /* Form Labels and Inputs */
    .application-form-label {
        color: black !important;
        font-size: 9pt !important;
        page-break-after: avoid;
    }

    .application-form-input,
    .form-select {
        background: white !important;
        border: 1px solid black !important;
        color: black !important;
        padding: 4px 8px !important;
        min-height: 24px !important;
    }

    textarea.application-form-input {
        min-height: 60px !important;
    }

    /* Form Checks */
    .form-check {
        page-break-inside: avoid;
    }

    .form-check-input {
        border: 1px solid black !important;
        background: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .form-check-input:checked {
        background-color: black !important;
        border-color: black !important;
    }

    .form-check-label {
        color: black !important;
        font-size: 9pt !important;
    }

    /* Special Notices */
    .affirmative-action-notice,
    .consent-notice {
        background: white !important;
        border: 1px solid black !important;
        page-break-inside: avoid;
    }

    .affirmative-action-notice p,
    .consent-notice p {
        color: black !important;
        font-size: 8pt !important;
        line-height: 1.4 !important;
    }

    /* Bootstrap Grid Adjustments */
    .row {
        page-break-inside: avoid;
    }

    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-8,
    .col-md-9 {
        float: left;
        page-break-inside: avoid;
    }

    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.33%; }
    .col-md-5 { width: 41.66%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.66%; }
    .col-md-9 { width: 75%; }

    /* Spacing */
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    /* Remove hover effects */
    .hover-in-effect {
        transform: none !important;
        opacity: 1 !important;
    }

    /* Ensure readable text */
    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Page breaks */
    h4, h5 {
        page-break-after: avoid;
    }

    /* Remove animations and transitions */
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   RESPONSIVE - APPLICATION PAGE
   ============================================ */
@media (max-width: 991px) {
    .application-hero-section {
        height: 380px;
    }

    .application-form-content {
        padding: 3rem 2rem 4rem;
    }

    .application-form-wrapper {
        padding: 2.5rem;
    }

    .job-details-card {
        padding: 1.5rem;
    }

    .job-details-meta {
        gap: 1rem;
    }

    .application-decorative-line-left,
    .application-decorative-line-right {
        display: none;
    }

    .application-notice-card {
        padding: 1.5rem;
    }
}

@media (max-width: 767px) {
    .application-hero-section {
        height: 350px;
    }

    .application-hero-title {
        font-size: 2.25rem;
    }

    .application-form-content {
        padding: 2rem 1.5rem 3rem;
    }

    .application-form-wrapper {
        padding: 2rem;
    }

    .application-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .application-company-info h3 {
        font-size: 1.5rem;
    }

    .section-heading {
        font-size: 1.25rem;
    }

    .subsection-heading {
        font-size: 1rem;
    }

    .btn-application-submit {
        padding: 1rem 2.5rem;
        font-size: 1.125rem;
        width: 100%;
    }

    .job-details-card {
        padding: 1.25rem;
    }

    .job-details-title {
        font-size: 1.375rem;
    }

    .job-details-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .application-notice-card {
        padding: 1.25rem;
    }

    .application-notice-content {
        gap: 1.25rem;
    }

    .application-notice-icon {
        width: 36px;
        height: 36px;
    }

    .application-notice-icon i {
        font-size: 1.125rem;
    }

    /* Stack form grids on mobile */
    .form-grid-2,
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .application-hero-section {
        height: auto;
        min-height: 250px;
        padding: 150px 0 40px 0;
    }

    .application-hero-content {
        margin-top: 0;
        padding: 0 2rem;
    }

    .application-hero-title {
        margin-top: 0;
    }

    .application-hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    .application-form-content {
        padding: 1.5rem 1rem 2.5rem;
    }

    .application-form-wrapper {
        padding: 1.5rem;
    }

    .application-company-info h3 {
        font-size: 1.25rem;
    }

    .equal-opportunity-notice {
        padding: 0.75rem 1rem;
    }

    .section-heading {
        font-size: 1.125rem;
    }

    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .job-details-card {
        padding: 1rem;
    }

    .job-details-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .job-detail-item {
        font-size: 0.875rem;
    }

    .application-notice-card {
        padding: 1rem;
    }

    .application-notice-content {
        gap: 1rem;
    }

    .application-notice-icon {
        width: 32px;
        height: 32px;
    }

    .application-notice-icon i {
        font-size: 1rem;
    }

    .application-notice-title {
        font-size: 0.875rem;
    }

    .application-notice-text p {
        font-size: 0.875rem;
    }
}

/* ============================================
   INLINE STYLE REPLACEMENTS
   ============================================ */

/* Section instruction text (light body copy) */
.form-section-instruction {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-section-instruction-last {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Military active service label row */
.form-grid-mb-sm {
    margin-bottom: 0.5rem;
}

.form-grid-col-span-2 {
    grid-column: span 2;
}

.application-form-label-tight {
    margin-bottom: 0.25rem;
}

/* Application channel label sub-text */
.application-channel-sublabel {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* "Through what channel" and "Business / Personal References" paragraphs */
.form-channel-intro {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.form-references-heading {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Consent notice italic paragraph */
.consent-notice-italic {
    font-style: italic;
}

/* Voluntary data section body copy */
.form-voluntary-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-voluntary-text-spaced {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Referral "Other" text input width */
.referral-other-input {
    width: 250px;
}
