:root {
    --pb-blue: #0a3478;
    --pb-yellow: #ffcc00;
    --ih-blue: #005a96;
    --dlp-dark: #4c4c4c;
    --cb-pastel-blue: #cce0f5;
    --text-color: #333333;
    --border-color: #cccccc;
    --pb-blue-150: #e7ebf2;
    --pb-blue-200: #ced6e4;
    --pb-blue-300: #b5c2d7;
    --pb-blue-700: #5371a0;
    --pb-blue-800: #3b5d93;
    --pb-blue-950: #0a3478;
}

.btn-radio input[type="radio"] {
    display: none;
}

.btn-group-justified {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
}

.btn-radio .btn {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--pb-blue-700);
    font-size: 16px;
    height: 42px;
    color: var(--pb-blue-950);
    font-weight: 700;
    background-color: transparent;
}

.btn-radio .btn:not(:last-child) {
    border-right: none;
}

.btn-radio .btn:hover,
.btn-radio .btn:focus {
    border-color: var(--pb-blue-800);
    background-color: var(--pb-blue-150);
}

.btn-radio .btn.active,
.btn-radio .btn:has(input:checked) {
    background-color: var(--pb-blue-300);
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.navbar-top {
    background-color: var(--pb-yellow);
    padding: 10px 0;
    width: 100%;
}

.width-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar-header {
    display: flex;
    justify-content: flex-end;
}

.navbar-brand {
    display: block;
    text-decoration: none;
}

.navbar-brand svg {
    height: 35px;
    width: auto;
}

.navbar-brand svg path:not(.pb-header__logo--secondary) {
    fill: var(--pb-blue);
}

.navbar-brand svg .pb-header__logo--secondary {
    fill: #d2002e;
}

.logo-mobile {
    display: none;
}

.logo-desktop {
    display: block;
}

@media (max-width: 768px) {
    .navbar-header {
        justify-content: flex-start;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
    }
}

.main-wrapper {
    max-width: 800px;
    margin: 16px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
}

.step-header-wrapper {
    margin-bottom: 16px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--ih-blue);
    transition: width 0.3s ease;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

@media (max-width: 768px) {
    .radio-grid {
        grid-template-columns: 1fr;
    }
}

.radio-card {
    background-color: #ffffff;
    border: 2px solid var(--cb-pastel-blue);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.radio-card:hover,
.radio-card.highlighted {
    border-color: var(--pb-blue);
}

.radio-card.selected {
    border-color: var(--ih-blue);
    background-color: #f4f9ff;
}

.radio-card input[type="radio"],
.radio-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.icon-container {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-right: 15px;
}

.icon-container svg {
    width: 100%;
    height: 100%;
    fill: var(--dlp-dark);
}

.radio-card-label {
    color: var(--dlp-dark);
    font-size: 16px;
    font-weight: 600;
    flex-grow: 1;
}

.radio-indicator {
    width: 22px;
    height: 22px;
    border: 2px solid #a0a0a0;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
    transition: all 0.2s;
}

.radio-card input[type="radio"]:checked ~ .radio-indicator {
    border-color: var(--ih-blue);
}

.radio-card input[type="radio"]:checked ~ .radio-indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--ih-blue);
    border-radius: 50%;
}

.radio-card input[type="checkbox"]:checked ~ .radio-indicator {
    border-color: var(--ih-blue);
    background-color: var(--ih-blue);
}

.radio-card input[type="checkbox"]:checked ~ .radio-indicator::after {
    content: '✓';
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-half, .col-full, .col-third, .col-twothird, .col-fourth, .col-three-eighths {
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.col-half {
    width: 50%;
}

.col-full {
    width: 100%;
}

.col-third {
    width: 33.333%;
}

.col-twothird {
    width: 66.666%;
}

.col-fourth {
    width: 25%;
}

.col-three-eighths {
    width: 37.5%;
}

@media (max-width: 768px) {
    .col-half, .col-third, .col-twothird, .col-fourth, .col-three-eighths {
        width: 100%;
    }
}

.form-group label {
    font-weight: bold;
    color: var(--dlp-dark);
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.form-control, select.form-control {
    display: block;
    width: 100%;
    height: 42px;
    border: 2px solid #b0b8bc !important;
    border-radius: 4px !important;
    padding: 8px 12px;
    font-size: 15px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, select.form-control:focus {
    outline: none;
    border-color: var(--ih-blue) !important;
    box-shadow: 0 0 0 2px rgba(0, 90, 150, 0.15) !important;
}

.input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.input-group > .form-control,
.input-group > select {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    height: 42px;
    box-sizing: border-box;
}

.input-group > .form-control:has(+ .input-group-text),
.input-group > .form-control:has(+ select) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: none !important;
}

.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-weight: 700;
    font-size: 14px;
    color: var(--dlp-dark);
    background-color: #f0f4f8;
    border: 2px solid #b0b8bc !important;
    border-left: none !important;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    box-sizing: border-box;
    height: 42px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.input-group > select.form-control:not(:first-child) {
    border-left: none !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
    background-color: #f0f4f8;
    font-weight: 700;
}

.input-group > .ul_zipcodes,
.form-group > .ul_zipcodes,
.ul_zipcodes {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.zipcode-autocomplete-item {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: block;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s;
}

.zipcode-autocomplete-item:hover,
.zipcode-autocomplete-item:focus {
    background-color: var(--cb-pastel-blue, #eef4f8);
    text-decoration: none;
    color: var(--text-color);
}

.input-group > .help-block,
.input-group > .invalid-feedback,
.input-group > small:not(.ul_zipcodes) {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 4px;
}

.cta-container {
    display: flex;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.btn-cta {
    background-color: var(--pb-blue);
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 30px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: auto;
}

.btn-cta:hover {
    background-color: #3b5d93;
}

.step-container {
    display: none;
}

.step-container.active {
    display: block;
}

.btn-back {
    background: none;
    border: none;
    color: var(--pb-blue);
    font-size: 18px;
    font-weight: bold;
    padding: 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    transition: color 0.2s;
}

.btn-back svg {
    margin-right: 1px;
    padding-top: 6px;
}

.btn-back:hover {
    color: #3b5d93;
}

.footer-lp {
    background-color: var(--pb-yellow);
    padding: 15px 0;
    margin-top: auto;
    text-align: center;
}

.footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer__pb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.footer__pb li {
    font-size: 14px;
    color: var(--text-color);
}

.footer__pb li:not(:last-child)::after {
    content: '|';
    margin: 0 10px;
    color: var(--text-color);
}

.footer__pb li a {
    color: var(--text-color);
    text-decoration: none;
}

.footer__pb li a:hover {
    text-decoration: underline;
}

.mobile-copy {
    color: var(--text-color);
    font-size: 14px;
}

.header-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-title {
    color: var(--dlp-dark);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.step-description {
    color: var(--dlp-dark);
    font-size: 14px;
    margin: 15px auto 0;
    line-height: 1.5;
    max-width: 500px;
}

.step-input-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.zipcode-input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.input-group-centered {
    max-width: 400px;
    width: 100%;
}

.brokeragefee-unit-select {
    max-width: 85px;
    flex: 0 0 85px;
    cursor: pointer;
    border-left: none !important;
}

.icon-img {
    width: 100%;
    height: 100%;
}

.addon-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    display: inline-block;
    vertical-align: middle;
}

.checkbox-indicator {
    border-radius: 4px !important;
}

.success-step-container {
    text-align: center;
    padding: 30px 10px;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--pb-blue-150);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    display: none;
    text-align: center;
    font-weight: bold;
}

.step-container[data-step-type="intVal"] .has-error .form-control,
.step-container[data-step-type="intVal"] .form-control.is-invalid,
.step-container[data-step-type="intVal"] .has-error .input-group-text,
.step-container[data-step-type="date"] .has-error .form-control,
.step-container[data-step-type="date"] .form-control.is-invalid,
.step-container[data-step-type="brokeragefee"] .has-error .form-control,
.step-container[data-step-type="brokeragefee"] .form-control.is-invalid,
.step-container[data-step-type="brokeragefee"] .has-error select,
.step-container[data-step-type="contactform"] .has-error .form-control,
.step-container[data-step-type="contactform"] .form-control.is-invalid,
.step-container[data-step-type="zipcode"] .has-error .form-control,
.step-container[data-step-type="zipcode"] .form-control.is-invalid,
.step-container[data-step-type="zipcode"] .has-error .input-group-text,
.step-container[data-step-type="select"] .has-error .form-control,
.step-container[data-step-type="select"] .form-control.is-invalid {
    border-color: #a9000f !important;
}

.step-container[data-step-type="intVal"] .help-block,
.step-container[data-step-type="intVal"] .invalid-feedback,
.step-container[data-step-type="date"] .help-block,
.step-container[data-step-type="date"] .invalid-feedback,
.step-container[data-step-type="brokeragefee"] .help-block,
.step-container[data-step-type="brokeragefee"] .invalid-feedback,
.step-container[data-step-type="contactform"] .help-block,
.step-container[data-step-type="contactform"] .invalid-feedback,
.step-container[data-step-type="zipcode"] .help-block,
.step-container[data-step-type="zipcode"] .invalid-feedback,
.step-container[data-step-type="select"] .help-block,
.step-container[data-step-type="select"] .invalid-feedback {
    margin: 0 !important;
    background-color: #a9000f !important;
    color: #ffffff !important;
    font-size: 12px !important;
    padding: 5px 14px !important;
    border-bottom-left-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    line-height: 1.4 !important;
    font-weight: normal !important;
}

.has-error [data-bv-result="INVALID"] ~ [data-bv-result="INVALID"],
.has-error .help-block ~ .help-block:not([data-bv-validator]),
.has-error .invalid-feedback ~ .invalid-feedback {
    display: none !important;
}
