@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/*
 * Shared visual design for the legacy Bootstrap-3 form pages:
 * Employment Application, W-4, I-9. Restyles existing markup/classes only —
 * no structural HTML, IDs, names or JS hooks are affected by these rules.
 */

:root {
    --hp-primary: #1565c0;
    --hp-primary-dark: #1a237e;
    --hp-navy-gradient: linear-gradient(135deg, #1a237e 0%, #283593 40%, #1565c0 100%);
    --hp-card-shadow: 0 16px 40px rgba(21, 101, 192, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
    --hp-border: #dce6ef;
    --hp-text-muted: #546e7a;
    --hp-danger: #c62828;
    --hp-success: #2e7d32;
}

body {
    background: #f0f4f8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- shared branded header (application/w4/i9 pages) ---------- */
.header_block {
    padding: 14px 20px;
    margin-bottom: 0;
    background: #ffffff;
    border-bottom: 1px solid #e3ebf2;
    box-shadow: none;
}

.header_block .container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
}

.header_block span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    height: 80px;
    font-size: 0;
}

.header_block span img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 576px) {
    .header_block span {
        height: 64px;
    }
}

/* ---------- page shell ---------- */
.hp-legacy-shell.container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.main_heading {
    background: #ffffff;
    border: 1px solid rgba(220, 230, 240, .9);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--hp-card-shadow);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.main_heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--hp-navy-gradient);
}

.main_heading p {
    font-weight: 800;
    font-size: 19px;
    color: var(--hp-primary-dark);
    line-height: 1.3;
    letter-spacing: -.2px;
    margin: 0;
}

.main_heading p.gentxt {
    font-weight: 500;
    font-size: 12.5px;
    color: var(--hp-text-muted);
    margin: 6px 0 0;
    text-transform: uppercase;
    letter-spacing: .4px;
}

span.main_heading_right {
    position: static;
    display: block;
    margin-top: 10px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    color: var(--hp-text-muted);
}

/* ---------- content blocks ---------- */
.block_gen {
    margin-bottom: 16px;
}

.w4_subheading {
    font-weight: 700;
    font-size: 15px;
    color: var(--hp-primary-dark);
    margin-bottom: 4px;
}

.big_t {
    font-weight: 800;
    color: var(--hp-primary-dark);
}

.form_gen {
    background: #ffffff;
    border: 1px solid rgba(220, 230, 240, .9);
    border-radius: 16px;
    padding: 24px 22px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(21, 101, 192, .06);
}

.form_heading {
    font-weight: 700;
    font-size: 15px;
    color: var(--hp-primary-dark);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 4px;
}

.form_heading::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 13px;
    margin-right: 8px;
    border-radius: 2px;
    background: var(--hp-navy-gradient);
    vertical-align: middle;
}

.frm_heading_sm {
    display: inline-block;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--hp-text-muted);
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.txtblockgen {
    background: #f8fafc;
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    padding: 16px;
}

.section_relative_gen {
    position: relative;
}

.cont_blog_hide {
    background: #f8fafc;
    border: 1.5px solid var(--hp-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

span.info_sign i {
    color: var(--hp-primary);
    font-size: 20px;
}

/* ---------- form controls ---------- */
.form-group {
    margin-bottom: 18px;
}

.form-group label,
.form-group .form-label,
.form-group p.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--hp-text-muted);
    margin-bottom: 8px;
}

.form-group>span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--hp-text-muted);
}

.form-control {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #263238;
    background: #f8fafc;
    border: 1.5px solid var(--hp-border);
    border-radius: 10px;
    box-shadow: none;
    transition: all .2s ease;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, .12);
    outline: none;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2390a4ae' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

input[type=file].form-control {
    padding: 8px 12px;
    background: #ffffff;
}

textarea.form-control {
    min-height: 90px;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #eef3f8;
    border: 1.5px solid var(--hp-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--hp-text-muted);
    font-weight: 700;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}

/* radio / checkbox rows */
.form-check {
    position: relative;
    background: #f8fafc;
    border: 1.5px solid var(--hp-border);
    border-radius: 10px;
    padding: 12px 14px 12px 44px;
    margin-bottom: 10px;
    transition: border-color .15s ease, background .15s ease;
}

.form-check:has(.form-check-input:checked) {
    border-color: var(--hp-primary);
    background: rgba(21, 101, 192, .06);
}

.form-check-input {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 18px;
    height: 18px;
    accent-color: var(--hp-primary);
    margin: 0;
}

.form-check-label {
    display: block;
    font-size: 13.5px;
    color: #37474f;
    line-height: 1.5;
}

.d-flex {
    display: flex !important;
}

.align-items-center,
.items-center {
    align-items: center !important;
}

/* ---------- buttons ---------- */
.btn {
    border-radius: 10px;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: .2px;
    padding: 11px 22px;
    min-height: 46px;
    border: none;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--hp-navy-gradient);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(21, 101, 192, .3);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 101, 192, .4);
}

.btn-secondary {
    background: #eef3f8;
    color: var(--hp-primary-dark);
    border: 1.5px solid var(--hp-border);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #e3ebf2;
    color: var(--hp-primary-dark);
}

.btn-danger {
    background: #fff5f5;
    color: var(--hp-danger);
    border: 1.5px solid #ffcdd2;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #ffebee;
    color: var(--hp-danger);
}

.btn-success {
    background: #eef9f0;
    color: var(--hp-success);
    border: 1.5px solid #c8e6c9;
}

.btn-success:hover,
.btn-success:focus {
    background: #e3f4e5;
    color: var(--hp-success);
}

.btn-default {
    background: #ffffff;
    border: 1.5px solid var(--hp-border);
    color: #37474f;
}

.btn-default:hover,
.btn-default:focus {
    background: #f8fafc;
    color: #37474f;
}

.text-center>.btn-primary {
    min-width: 220px;
}

/* ---------- inline input + verify button (email / OTP) ----------
   These rows nest a Bootstrap col-md-8/col-md-4 split inside an outer
   col-md-4 field. Below the md breakpoint that nesting doesn't apply
   and the fields stack full-width, but from 992px up the two columns
   float side by side inside an already-narrow parent, squeezing the
   button. Force a flex layout there instead so the button always sizes
   to its label and the input takes the remaining space. */
@media (min-width: 992px) {

    .email-form-group .row,
    #input_verification_code_div .row {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    .email-form-group .row>[class*="col-"],
    #input_verification_code_div .row>[class*="col-"] {
        float: none;
        width: auto;
    }

    .email-form-group .row>[class*="col-"]:first-child,
    #input_verification_code_div .row>[class*="col-"]:first-child {
        flex: 1 1 auto;
        min-width: 0;
    }

    .email-form-group .row>[class*="col-"]:last-child,
    #input_verification_code_div .row>[class*="col-"]:last-child {
        flex: 0 0 auto;
    }

    .email-form-group .row .btn,
    #input_verification_code_div .row .btn {
        white-space: nowrap;
    }
}

.alert-danger {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: var(--hp-danger);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    margin-bottom: 18px;
}

.signeture_sec {
    background: #f8fafc;
    border: 1.5px dashed var(--hp-border);
    border-radius: 12px;
    width: 100%;
    height: 150px;
    max-width: 100%;
    display: block;
}

/* ---------- modal ---------- */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--hp-card-shadow);
    overflow: hidden;
}

.modal-header {
    background: var(--hp-navy-gradient);
    border-bottom: none;
    padding: 18px 22px;
}

.modal-header .modal-title {
    color: #ffffff;
    font-weight: 700;
}

.modal-header .close {
    color: #ffffff;
    opacity: .85;
    text-shadow: none;
}

.modal-header .close:hover {
    opacity: 1;
    color: #ffffff;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.6;
    color: #37474f;
    padding: 20px 22px;
}

.modal-footer {
    border-top: 1px solid var(--hp-border);
    padding: 14px 22px;
}

/* ---------- mobile ---------- */
@media (max-width: 576px) {
    .hp-legacy-shell.container {
        padding: 18px 14px 90px;
    }

    .main_heading,
    .form_gen {
        padding: 18px 16px;
        border-radius: 14px;
    }

    .main_heading p {
        font-size: 17px;
    }

    .btn {
        width: 100%;
    }

    .modal-body {
        max-height: 65vh;
    }

    .modal-dialog {
        margin: 12px;
    }
}
