.ree-estimate-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ree-progress-bar {
    display: flex;
    justify-content: space-around;
    margin: 50px 0;
    position: relative;
}

.ree-progress-bar::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 2px;
    background: #D9E3ED;
    transform: translateY(-50%);
    z-index: -2;
}

.ree-progress-bar::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    height: 2px;
    width: var(--progress-width, 0);
    background: #0085AF;
    transform: translateY(-50%);
    z-index: -1;
    transition: width 0.3s ease-out;
}

.ree-progress-step {
    position: relative;
    padding-top: 20px;
    color: #D9E3ED;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.ree-progress-step::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: calc(50% - 6px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D9E3ED;
}

.ree-progress-step.active,
.ree-progress-step.completed {
    color: #0085AF;
}

.ree-progress-step.active:before,
.ree-progress-step.completed::before {
    background-color: #0085AF;
}

.ree-form {
    position: relative;
    min-height: 400px;
}

.ree-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.ree-step.active {
    display: block;
    opacity: 1;
}

.ree-step-title {
    display: block;
    margin-bottom: 50px;
    color: #212547;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.ree-input,
.ree-select {
    width: 100%;
    padding: 5px 15px!important;
    border: 1px solid #212547!important;
    border-radius: 40px!important;
    color: #000!important;
    margin-bottom: 20px;
}

#ree-address {
    padding: 15px!important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: none;
}

.ree-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.ree-input-group .ree-input:first-child {
    border-radius: 40px 0 0 40px!important;
}

.ree-input-group .ree-input:last-child {
    border-radius: 0 40px 40px 0!important;
}

.input-group-text {
    background-color: #212547;
    color: #fff;
    line-height: 1;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
}

.input-group-text:first-child {
    border-radius: 40px 0 0 40px;
}

.input-group-text:last-child {
    border-radius: 0 40px 40px 0;
}

.ree-form-navigation {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.ree-btn {
    border: 1px solid transparent;
    font-size: 16px!important;
}

.ree-btn-prev {
    background-color: transparent!important;
    border-color: #212547!important;
    color: #212547!important;
}

.ree-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.ree-form-control {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    border: 1px solid #D9E3ED;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ree-form-control .ree-input,
.ree-form-control .ree-select {
    margin-bottom: 0!important;
}

.ree-form-control input[type="checkbox"],
.ree-form-control input[type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%!important;
    opacity: 0;
    cursor: pointer;
}

.ree-form-control:has(input:checked),
.ree-field-choice:hover {
    background-color: #F0F4F8;
}

.ree-icon svg {
    height: 35px;
    width: auto;
}

.ree-icon svg path {
    fill: #0085AF;
}

.ree-label {
    color: #0F1120;
    font-size: 14px;
    font-weight: bold;
}

.ree-error .ree-input,
.ree-error .ree-select,
.ree-error .ree-textarea {
    border-color: #dc3545!important;
}

.ree-error .ree-field-choice {
    border-color: #dc3545;
}

.ree-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 6px;
    animation: fadeIn 0.2s ease-in;
}

.ree-notice {
    margin: 30px 0;
    text-align: center;
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ree-thank-you {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .ree-estimate-container {
        padding: 20px 15px;
    }

    .ree-progress-step {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .ree-form-navigation {
        flex-direction: column;
    }

    .ree-btn-next,
    .ree-btn-submit {
        margin-left: 0;
    }
}
