:root {
    --purple: #481E9C;
    --gray-bg: #F2F2F2;
    --gray-border: #D9D9D9;
}

.segment-container {
    max-width: 1200px;
    margin: 160px auto;
    padding: 40px 20px;
    font-family: "Montserrat", sans-serif;
}


.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

.segment-banner {
    height: auto;
}

#banner-img {
    background-size: contain;
}

@media (max-width: 768px) {
    .segment-banner {
        height: auto;
        min-height: 250px;
    }

    #banner-img.banner-content {
        width: 100%;
        padding-top: 56.25%;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        background-color: transparent;
    }

    .segment-container {
        margin: 80px auto 40px auto;
        padding: 20px;
    }

    .page-title {
        margin-bottom: 15px;
    }

    .segment-banner {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .segment-info {
        margin-top: 0;
    }
}

.segment-banner {
    width: 100%;
    height: 350px;
    border-radius: 0;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}

.banner-content {
    width: 100%;

    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.segment-info {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.segment-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 400;
    color: #333;
}

.segment-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    opacity: 0.6;
}

.step-item.active {
    opacity: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #999;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-item.active .step-circle {
    background-color: var(--purple);
    border: 2px solid #fff;
}

.step-text {
    display: flex;
    flex-direction: column;
}

.step-text strong {
    font-size: 0.95rem;
    color: #333;
}

.step-text span {
    font-size: 0.75rem;
    color: #666;
}


.calc-content {
    flex: 1;
    padding: 40px;
}

.calc-content h3 {
    margin-bottom: 30px;
    font-size: 1.3rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 15px;
    font-weight: 700;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
    margin-left: 10px;
}

.input-group input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid #ccc;
    background-color: transparent;
    outline: none;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-purple {
    background-color: var(--purple);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-purple:hover {
    background-color: #35157a;
}



.calc-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.calc-intro h2 {
    font-size: 2rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px;
}

.calc-intro p {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}


.calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto 60px auto;
}


.calculator-box {
    background-color: #EAEAEA;
    border-radius: 20px;
    padding: 30px 0 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.calc-box-header {
    padding: 0 30px;
    margin-bottom: 0;
}

.calc-box-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    margin: 0 0 10px 0;
}

.calc-separator {
    width: 100%;
    height: 1px;
    background-color: #000;
    margin-bottom: 20px;
}


.calc-body {
    display: flex;
    width: 100%;
    min-height: 400px;
}


.calc-sidebar {
    width: 280px;
    padding: 10px 0 30px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #999;
    position: relative;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.step-item {
    display: flex;
    align-items: center;
    padding-left: 20px;
    position: relative;
    height: 60px;
}


.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #A09898;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-item.active .step-circle {
    background-color: var(--purple);
}


.step-text {
    display: flex;
    flex-direction: column;
}

.step-text strong {
    font-size: 0.95rem;
    color: #000;
    font-weight: 700;
}

.step-text span {
    font-size: 0.8rem;
    color: #333;
}


.step-item::after {
    content: '';
    position: absolute;
    right: -7px;
    width: 11px;
    height: 11px;
    background-color: #EAEAEA;
    border: 1px solid #481E9C;
    border-radius: 50%;
    z-index: 2;
}

.step-item.active::after {
    background-color: #481E9C;
    border: 2px solid #fff;
    outline: 1px solid #481E9C;
    width: 13px;
    height: 13px;
    right: -9px;
}


.calc-content {
    flex: 1;
    padding: 10px 40px 40px 40px;
}

.calc-content h3 {
    margin-bottom: 30px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #000;
    border-bottom: none;
}

.calc-step {
    display: none;
}

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

.error-border {
    border: 1px solid red !important;
}

.btn-prev {
    background-color: #fff;
    color: #666;
    border: 1px solid #666;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-right: 10px;
    transition: 0.3s;
}

.btn-prev:hover {
    background-color: #f0f0f0;
}

.btn-wpp {
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-wpp:hover {
    background-color: #128c7e;
}

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

.input-group label:has(input[type="radio"]) {
    display: inline-block;
    margin-right: 20px;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #000;
    border-radius: 20px;
    color: #333;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: static !important;
    font-size: 0.9rem;
}

.input-group label:has(input[type="radio"]:checked) {
    background-color: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

.whatsapp-icon {
    margin-right: 8px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid #000;
    background-color: transparent;
    outline: none;
    font-size: 0.95rem;
    color: #666;
}

.input-group label {
    position: absolute;
    top: -9px;
    left: 25px;
    background-color: #EAEAEA;
    padding: 0 5px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    z-index: 10;
}


.form-footer {
    display: flex;
    justify-content: flex-end;
}

.form-footer {
    margin-top: 40%;
}

#calc-step1 .form-footer {
    margin-top: 10px;
}

.btn-purple {
    background-color: var(--purple);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-purple:hover {
    background-color: #35157a;
}

.calc-result-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.calc-result-img-wrapper {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
}

.calc-result-img-wrapper img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.calc-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-info-block {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.calc-info-block:last-child {
    border-bottom: none;
}

.calc-info-block strong {
    display: block;
    font-size: 1.1em;
    color: #000;
    margin-bottom: 5px;
    font-weight: 700;
}

.calc-btn-container {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.calc-btn-container .btn-purple {
    display: inline-block;
    padding: 12px 40px;
    font-size: 16px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .calc-result-flex {
        flex-direction: column;
        align-items: center;
    }

    .calc-result-info {
        text-align: left;
        width: 100%;
    }
}

@media (min-width: 2560px) {
    body {
        font-size: 18px;
        margin-top: 250px;
    }
}

#adminButtons {
    display: none;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

#res-img {
    max-width: 200px;
}

@media (max-width: 768px) {
    .calc-intro h2 {
        font-size: 1.8rem;
    }

    .calc-body {
        flex-direction: column;
    }

    .calc-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #999;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 20px;
    }

    .step-list {
        flex-direction: row;
        gap: 10px;
    }

    .step-item {
        padding: 10px;
        min-width: 140px;
    }

    .step-item::after {
        display: none;
    }

    .calc-content {
        padding: 20px;
    }

    .segment-container {
        margin: 80px auto 40px auto;
        padding: 20px;
    }

    .page-title {
        margin-bottom: 15px;
        margin-top: 10vh;
    }

    .segment-banner {
        height: auto;
        margin-top: 10px;
        margin-bottom: -40px;
    }

    #banner-img {
        width: 100%;
        padding-top: 56.25%;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        background-color: transparent;
    }

    .segment-info {
        margin-top: 0;
    }
}