.hrf-wrap {
    font-family: 'Frutiger', sans-serif;
    padding-left: 24px;
    padding-right: 24px;
}

/* Success / error messages */
.hrf-wrap .hrf-success {
    padding: 16px 0;
    margin-bottom: 32px;
    color: #da0725;
    font-weight: 700;
    font-size: 16px;
    border-bottom: 2px solid #da0725;
}

.hrf-wrap .hrf-errors {
    padding: 16px 0;
    margin-bottom: 24px;
    color: #da0725;
    font-size: 15px;
    border-bottom: 2px solid #da0725;
}

.hrf-wrap .hrf-errors p {
    margin: 0 0 4px;
}

.hrf-wrap .hrf-errors p:last-child {
    margin-bottom: 0;
}

/* Section titles */
.hrf-wrap .hrf-section-title {
    font-family: 'Foro', sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
    color: #da0725;
    text-transform: uppercase;
    margin: 40px 0 24px;
}

.hrf-wrap .hrf-form .hrf-section-title:first-of-type {
    margin-top: 0;
}

/* Field rows */
.hrf-wrap .hrf-field-row {
    display: grid;
    grid-template-columns: 33% 1fr;
    align-items: start;
    gap: 16px;
    margin-bottom: 6px;
}

.hrf-wrap .hrf-field-row > *:last-child {
    min-width: 0;
    width: 100% !important;
}

.hrf-wrap .hrf-field-row .hrf-label {
    padding-top: 8px;
}

.hrf-wrap .hrf-field-row-inline {
    grid-template-columns: 1fr auto;
    align-items: center;
}

/* Labels */
.hrf-wrap .hrf-label {
    font-family: 'Frutiger', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    line-height: 1.3;
}

/* Inputs */
.hrf-wrap input.hrf-input,
.hrf-wrap select.hrf-input {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 32px;
    padding: 0 10px !important;
    background: #dedede !important;
    border: none !important;
    border-bottom: 1px solid #da0725 !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-family: 'Frutiger', sans-serif !important;
    font-weight: 400 !important;
    color: #000 !important;
    outline: none;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.hrf-wrap input.hrf-input:focus,
.hrf-wrap select.hrf-input:focus {
    border-bottom-color: #b00020 !important;
    outline: none;
}

/* Select chevron */
.hrf-wrap select.hrf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23da0725'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 28px !important;
    cursor: pointer;
}

/* Small inline select (Yes/No) */
.hrf-wrap select.hrf-select-inline {
    width: auto !important;
    min-width: 72px;
}

/* Zip code: two inputs side by side */
.hrf-wrap .hrf-zip-group {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 8px;
}

/* Date of birth: three selects */
.hrf-wrap .hrf-dob-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

/* Submit */
.hrf-wrap .hrf-submit-row {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.hrf-wrap .hrf-submit,
.hrf-wrap .hrf-submit:hover {
    border-width: 0 !important;
    border-radius: 100px !important;
    padding-top: 0.6rem !important;
    padding-left: 52px !important;
    padding-right: 52px !important;
    font-family: 'Frutiger', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer;
}

.hrf-wrap .hrf-submit {
    background-color: #da0725 !important;
}

.hrf-wrap .hrf-submit:hover {
    background-color: #b00020 !important;
}

.hrf-wrap .hrf-submit::after {
    font-size: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
    right: 40px !important;
    opacity: 0 !important;
    transition: all 300ms ease !important;
}

.hrf-wrap .hrf-submit:hover::after {
    right: 28px !important;
    opacity: 1 !important;
}

/* Terms checkbox */
.hrf-wrap .hrf-terms-row {
    margin-top: 32px;
    margin-bottom: 8px;
}

.hrf-wrap .hrf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-family: 'Frutiger', sans-serif;
    font-size: 14px;
    color: #000;
    line-height: 1.4;
}

.hrf-wrap .hrf-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #da0725;
    cursor: pointer;
}

/* File upload */
.hrf-wrap .hrf-upload-row {
    margin-top: 16px;
}

.hrf-wrap input.hrf-file {
    display: block;
    font-family: 'Frutiger', sans-serif;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    padding: 4px 0;
    background: none;
    border: none;
    width: 100%;
}

.hrf-wrap input.hrf-file::file-selector-button {
    background: #dedede;
    border: none;
    border-bottom: 1px solid #da0725;
    border-radius: 0;
    font-family: 'Frutiger', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #da0725;
    padding: 5px 14px;
    cursor: pointer;
    text-transform: uppercase;
    margin-right: 12px;
}

.hrf-wrap input.hrf-file::file-selector-button:hover {
    background: #ccc;
}

/* Pre-submit note */
.hrf-wrap .hrf-submit-note {
    font-family: 'Frutiger', sans-serif;
    font-size: 13px;
    color: #555;
    margin: 24px 0 0;
    line-height: 1.6;
}

/* Responsive — tablet: full-width Divi column, add side padding */
@media (min-width: 641px) and (max-width: 979px) {
    .hrf-wrap {
        padding-left: 58px;
        padding-right: 58px;
    }
}

/* Responsive — mid range: Divi desktop layout squeezes the content column too narrow for two-column form grid */
@media (min-width: 641px) and (max-width: 1280px) {
    .hrf-wrap .hrf-field-row,
    .hrf-wrap .hrf-field-row-inline {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hrf-wrap select.hrf-select-inline {
        width: 100% !important;
    }
}

/* Responsive — mobile */
@media (max-width: 640px) {
    .hrf-wrap {
        padding-left: 58px;
        padding-right: 58px;
    }

    .hrf-wrap .hrf-section-title {
        font-size: 28px;
    }

    .hrf-wrap .hrf-field-row,
    .hrf-wrap .hrf-field-row-inline {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hrf-wrap select.hrf-select-inline {
        width: 100% !important;
    }

    .hrf-wrap .hrf-dob-group {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
