﻿body {
    background: #fff;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

.page-title {
    font-size: 28px;
    text-align: center;
    font-weight: 700;
    line-height: 1.1;
    color: #434343;
}

.wizard-card {
    background: #f6f6f6;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #cecece;
    width: 100%;
    max-width: 700px;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.step {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #d0d0d0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: .3s;
    z-index: 2;
}

    .step svg {
        width: 34px;
        height: 34px;
        stroke: #b8b8b8;
        transition: .3s;
    }

    .step.active {
        border-color: #0d87ff;
        width: clamp(38px, 10vw, 72px);
        height: clamp(38px, 10vw, 72px);
    }

        .step.active svg {
            stroke: #0d87ff;
            width: clamp(18px, 5vw, 34px);
            height: clamp(18px, 5vw, 34px);
        }

    .step.completed {
        border-color: #0d87ff;
    }

        .step.completed svg {
            stroke: #0d87ff;
        }

.step-line {
    flex: 1;
    height: 3px;
    background: #d0d0d0;
    margin: 0 10px;
    transition: .3s;
}

    .step-line.active {
        background: #0d87ff;
    }

.check-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1cc51c;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    display: none;
}

    .step-content.active {
        display: block;
    }

.step-title {
    text-align: center;
    margin-top: 10px;
    font-weight: 700;
    color: #444;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.step-description {
    text-align: center;
    color: #666;
    margin-bottom: 5px;
}

.form-control {
    height: 54px;
    text-align: center;
    border-radius: 10px;
    opacity: 0.5;
    margin-top: 10px;
}

.CRM {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 1rem;
    outline: none;
    background: #fff;
    margin-top: 10px;
    height: 54px;
    text-align: center;
    opacity: 0.7;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
}

.uf-dropdown {
    position: relative;
    width: 39%;
    margin-top: 10px;
}

.uf-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 54px;
    padding: 0 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    text-align: center;
}



.uf-label {
    flex: 1;
    text-align: center;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.7;
}

    .uf-label.chosen {
        color: #212529;
        font-weight: 600;
    }

.uf-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: #888;
    transition: transform .2s ease;
}

.uf-dropdown.open .uf-arrow {
    transform: rotate(180deg);
}

.uf-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

.uf-dropdown.open .uf-list {
    display: block;
    animation: fadeDown .15s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uf-option {
    padding: 12px 16px;
    font-size: 1rem;
    color: #212529;
    cursor: pointer;
    text-align: center;
    transition: background .1s;
    width: 100%;
    box-sizing: border-box;
}

    .uf-option:hover {
        background: #f0f6ff;
        color: #0d87ff;
    }

    .uf-option.selected {
        background: #0d87ff;
        color: #fff;
        font-weight: 600;
    }
/* ── Container CRM + UF lado a lado ── */
.dadosMedicos {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-primary-custom {
    background: #0d87ff;
    border: none;
    color: #fff;
    font-weight: 700;
    height: 54px;
    min-width: 220px;
    border-radius: 10px;
    font-size: 20px;
}

    .btn-primary-custom:hover {
        background: #0b76df;
    }

.pharmacy-item {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
}

.sequencia-info {
    font-size: 10px;
    text-align: center;
    color: #171717;
    margin-top: 5px;
}

.informacao-cell {
    height: 54px;
    text-align: center;
    border-radius: 10px;
    opacity: 0.5;
    width: 100%;
    border: 1px solid #ced4da;
    outline: none;
}

.informacao-data {
    height: 54px;
    text-align: center;
    border-radius: 10px;
    opacity: 0.5;
    width: 100%;
    border: 1px solid #ced4da;
    outline: none;
}

.info-add {
    display: flex;
    gap: 10px;
    width: 100%;
    flex: 1;
}

    .info-add div {
        flex: 1;
        min-width: 0;
    }


.wizard-card {
    background: #f6f6f6;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #cecece;
    width: 100%;
    max-width: 700px;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}



.step svg {
    width: 34px;
    height: 34px;
    stroke: #b8b8b8;
    transition: .3s;
}

.step.active {
    border-color: #0d87ff;
}

    .step.active svg {
        stroke: #0d87ff;
    }

.step.completed {
    border-color: #0d87ff;
}

    .step.completed svg {
        stroke: #0d87ff;
    }

.step-line {
    flex: 1;
    height: 3px;
    background: #d0d0d0;
    margin: 0 10px;
    transition: .3s;
}

    .step-line.active {
        background: #0d87ff;
    }

.check-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1cc51c;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    display: none;
}

    .step-content.active {
        display: block;
    }

.step-title {
    text-align: center;
    margin-top: 30px;
    font-weight: 700;
    color: #444;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.step-description {
    text-align: center;
    color: #666;
    margin-bottom: 5px;
}

.form-control {
    height: 54px;
    text-align: center;
    border-radius: 10px;
    opacity: 0.5;
    margin-top: 10px;
}

.CRM {
    height: 54px;
    text-align: center;
    border-radius: 10px;
    opacity: 0.7;
    width: 60%;
    border: 1px solid #ccc;
}

.UF {
    height: 54px;
    text-align: center;
    border-radius: 10px;
    opacity: 0.5;
    width: 39%;
    background-color: white;
}

.dadosMedico {
    display: flex;
    gap: 20px;
}

.btn-primary-custom {
    background: #0d87ff;
    border: none;
    color: #fff;
    font-weight: 700;
    height: 54px;
    min-width: 50%;
    border-radius: 10px;
    font-size: 20px;
}

    .btn-primary-custom:hover {
        background: #0b76df;
    }

.pharmacy-item {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
}

.sequencia-info {
    font-size: 10px;
    text-align: center;
    color: #171717;
    margin-top: 5px;
}

input[readonly]:hover,
input[readonly]:focus {
    border-color: #ccc;
    box-shadow: none;
    cursor: default;
}

.btn-voltar {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 12px;
}

    .btn-voltar:hover {
        color: #444;
    }

#modalPrivacidade div div::-webkit-scrollbar {
    width: 4px;
}

#modalPrivacidade div div::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

#modalPrivacidade div div::-webkit-scrollbar-thumb {
    background: #0d87ff;
    border-radius: 10px;
}

#modalPrivacidade div div::-webkit-scrollbar-button {
    display: none;
}

#modalPrivacidade ::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

#modalScroll a {
    color: #0d87ff;
    word-break: break-all;
}

.farmacia-card {
    min-width: 200px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    font-size: 13px;
    flex-shrink: 0;
}

    .farmacia-card p {
        color: #555;
        margin: 8px 0;
        line-height: 1.5;
    }

.link-mapa {
    color: #0d87ff;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

    .link-mapa:hover {
        text-decoration: underline;
    }

.step-description a {
    font-size: clamp(10px, 2vw, 14px);
    text-align: center;
    margin-bottom: 16px;
}

.btn-farmacia {
    background: #0d87ff;
    border: none;
    color: #fff;
    font-weight: 700;
    height: 54px;
    min-width: 35%;
    border-radius: 10px;
    font-size: clamp(12px, 2vw, 16px);
}

@media(max-width:768px) {

    .wizard-card {
        padding: 30px 20px;
    }

    .step {
        width: clamp(40px, 8vw, 55px);
        height: clamp(40px, 8vw, 55px);
    }

        .step svg {
            width: clamp(20px, 4vw, 24px);
            height: clamp(20px, 4vw, 24px);
        }

    .step-line {
        margin: 0 clamp(2px, 1vw, 8px);
    }

    .step-title {
        font-size: 16px;
    }

    .form-control,
    .informacao-cell,
    .informacao-data,
    .CRM,
    .uf-label,
    .form-control,
    .step-description,
    .form-check-label,
    .modalScroll a {
        font-size: clamp(10px, 2vw, 14px);
    }

    .info-add {
        position: relative;
        width: 100%;
        display: flex;
        flex: 1;
    }

    .step.active {
        border-color: #0d87ff;
        width: clamp(50px, 10vw, 72px);
        height: clamp(50px, 10vw, 72px);
    }

        .step.active svg {
            stroke: #0d87ff;
            width: clamp(30px, 5vw, 34px);
            height: clamp(30px, 5vw, 34px);
        }

    .step-description {
        margin-bottom: 15px;
    }

    .form-check-label,
    .form-check {
        text-align: center;
    }
}

@media(max-width:420px) {
    .btn-primary-custom {
        min-width: 60%;
    }
}



/* ── Animação de transição entre steps ── */
.step-content {
    display: none;
    animation: none;
}

    .step-content.active {
        display: block;
        animation: slideIn 0.35s ease;
    }

    .step-content.slide-out {
        display: block;
        animation: slideOut 0.35s ease forwards;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-40px);
    }
}

@keyframes slideInReverse {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-content.slide-in-reverse {
    display: block;
    animation: slideInReverse 0.35s ease;
}
