/* Paleta Clincard (resumida)
 * Neutro 10: #F0F6F7
 * Azul 20:   #C1D5FF
 * Azul 50:   #5388F3
 * Azul 60:   #2E5FA5
 * Verde 50:  #23C9BE
 * Verde 60:  #006962
 */

.clincard-checkout-wrapper,
.clincard-busca-wrapper,
.clincard-seja-credenciado-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #E0E7EA;
    box-shadow: 0 10px 30px rgba(15, 35, 52, 0.06);
    margin: 40px auto;
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    color: #4B5563;
    line-height: 1.6;
}

.clincard-checkout-wrapper {
    max-width: 960px;
}

.clincard-busca-wrapper {
    max-width: 720px;
}

.clincard-seja-credenciado-wrapper {
    max-width: 1000px;
}

/* GLOBAL FORM ELEMENTS STANDARDIZATION */
.clincard-checkout-form,
.clincard-busca-form,
.clincard-credenciado-form {
    font-family: 'Figtree', sans-serif;
}

.clincard-checkout-form input,
.clincard-checkout-form select,
.clincard-busca-form input,
.clincard-busca-form select,
.clincard-credenciado-form input,
.clincard-credenciado-form select {
    min-height: 48px;
}

input::placeholder {
    opacity: 0.5 !important;
}

/* STEPPER */

.cl-steps-nav {
    list-style: none;
    display: flex;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    counter-reset: cl-step-counter;
}

.cl-step-indicator {
    counter-increment: cl-step-counter;
    padding: 8px 12px;
    border-radius: 999px;
    background: #F0F6F7;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
}

.cl-step-indicator::before {
    content: counter(cl-step-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #E0E7EA;
    font-size: 11px;
    font-weight: 600;
}

.cl-step-indicator.is-active {
    background: #C1D5FF;
    /* Azul 20 da paleta */
    color: #2E5FA5;
    /* Azul 60 */
    font-weight: 600;
}

.cl-step-indicator.is-active::before {
    background: #5388F3;
    /* Azul 50 */
    color: #ffffff;
}

/* ETAPAS */

.cl-step {
    display: none;
}

.cl-step.is-active {
    display: block;
}

/* GRID GERAL */

.cl-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.cl-grid>label {
    flex: 1 1 220px;
    font-size: 13px;
    color: #4B5563;
}

.cl-grid input,
.cl-grid select,
.cl-grid textarea {
    margin-top: 4px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #D1D5DB;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
}

.cl-grid input:focus,
.cl-grid select:focus,
.cl-grid textarea:focus {
    border-color: #5388F3;
    box-shadow: 0 0 0 1px rgba(83, 136, 243, 0.3);
}

/* SERVIÇOS ADICIONAIS E MÉTODOS DE PAGAMENTO COMO CARDS */

.cl-addons,
.cl-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.cl-addon-main {
    flex: 1 1 200px;
    cursor: pointer;
}

.cl-addon-main input[type="checkbox"],
.cl-addon-main input[type="radio"] {
    display: none;
}

.cl-addon-card {
    border-radius: 16px;
    padding: 14px 16px;
    background: #F7FBFC;
    border: 1px solid #E0E7EA;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, background 0.18s ease;
}

.cl-addon-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cl-addon-subtitle {
    font-size: 12px;
    color: #6B7280;
}

.cl-addon-main input:checked+.cl-addon-card {
    border-color: #5388F3;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
    background: #E7FFFF;
}

/* PLANOS */

.cl-plan-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.cl-addon-card,
.cl-plan-card {
    background-color: white !important;
}

.cl-plan-card {
    flex: 1 1 0;
    border-radius: 16px;
    padding: 18px 18px 20px;
    border: 1px solid #E0E7EA;
    background: #F7FBFC;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, background 0.18s ease;
}

.cl-plan-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.cl-plan-card.is-selected {
    border-color: #5388F3;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
    background: #E7FFFF;
}

.cl-plan-card input[type="radio"] {
    display: none;
}

.cl-plan-card label {
    display: block;
    cursor: pointer;
}

.cl-plan-title {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111827;
}

.cl-plan-subtitle {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 12px;
}

.cl-plan-price {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #006962;
    /* Verde 60 */
}

.cl-plan-card input[type="radio"]:checked+.cl-plan-title,
.cl-plan-card input[type="radio"]:checked~.cl-plan-subtitle {
    color: #006962 !important;
}

.cl-plan-title,
.cl-plan-price {
    font-size: 20px;
    font-family: 'Figtree', sans-serif;
}

.cl-plan-card input[type="radio"]:checked~.cl-plan-price {
    color: #23C9BE;
    /* Verde 50 */
}

/* Plan disclaimer */
.cl-plan-disclaimer {
    font-size: 12px;
    color: #9CA3AF;
    text-align: center;
    margin: 8px 0 20px;
    font-style: italic;
}

/* DEPENDENTES */

.cl-dependents {
    margin-bottom: 24px;
    padding: 16px 16px 10px;
    border-radius: 12px;
    background: #F7FBFC;
    border: 1px dashed #D1D5DB;
}

.cl-dependents-hint {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 12px;
}

.cl-dependents {
    background-color: white;
    padding: 24px;
}

.cl-dependents h3 {
    margin: 12px 0px;
}

.cl-dependent-item {
    padding: 10px 0 4px;
    border-top: 1px solid #E5E7EB;
    margin-top: 10px;
}

.cl-remove-dependent {
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    border: none;
    background: #FEE2E2;
    color: #B91C1C;
    font-size: 12px;
    cursor: pointer;
}

.cl-add-dependent {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    background: #E7FFFF;
    color: #006962;
    font-size: 13px;
    cursor: pointer;
}

/* CUPOM */

.cl-coupon {
    margin-bottom: 20px;
}

.cl-coupon label {
    display: block;
    font-size: 13px;
    color: #4B5563;
}

.cl-coupon-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.cl-coupon-row input[type="text"] {
    flex: 1;
    border-radius: 10px;
    border: 1px solid #D1D5DB;
    padding: 8px 10px;
    font-size: 14px;
}

.cl-coupon-apply {
    border-radius: 999px;
    padding: 8px 14px;
    border: none;
    background: #E0F2FE;
    color: #2E5FA5;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.cl-coupon-help {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Coupon error state */
.cl-coupon-row input.cl-coupon-error {
    border: 2px solid #EF4444 !important;
    border-color: #EF4444 !important;
}

/* Coupon success text */
.cl-success-text {
    color: #006962 !important;
}

/* Coupon error text */
.cl-error-text {
    color: #EF4444 !important;
}

/* Remove coupon button */
.cl-coupon-apply.cl-coupon-remove {
    background: #EF4444 !important;
    color: #ffffff !important;
}

.cl-coupon-apply.cl-coupon-remove:hover {
    background: #DC2626 !important;
}

/* TOTAL + BOTÃO LADO A LADO */

.cl-summary-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

.cl-summary {
    padding: 12px 14px;
    border-radius: 12px;
    background: #ECFDF5;
    border: 1px solid #BBF7D0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #065F46;
    flex: 1 1 auto;
}

.cl-summary .cl-total-amount {
    font-weight: 700;
    font-size: 18px;
}

/* BOTÕES */

.cl-btn-primary,
.cl-actions .cl-next-step,
.cl-actions .cl-next-step-payment,
.cl-actions .cl-submit-card {
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    background: #5388F3;
    color: #ffffff;
}

.cl-btn-primary:hover,
.cl-actions .cl-next-step:hover,
.cl-actions .cl-next-step-payment:hover,
.cl-actions .cl-submit-card:hover {
    background: #2E5FA5;
}

.cl-btn-secondary,
.cl-actions .cl-prev-step {
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    background: #E5E7EB;
    color: #374151;
}


/* TERMOS E AÇÕES NA MESMA LINHA */

.cl-terms-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.cl-terms {
    font-size: 13px;
    color: #4B5563;
}

.cl-terms label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    line-height: 1;
}

.cl-terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
}

.cl-terms span {
    line-height: 16px;
}

.cl-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* MENSAGENS (reutilizado pelo checkout e pelo formulário busca pra mim) */

.cl-messages {
    margin-top: 16px;
    font-size: 13px;
    min-height: 18px;
}

.cl-messages.is-error {
    color: #B91C1C;
}

.cl-messages.is-success {
    color: #047857;
}

/* Descrição do formulário "Busca pra mim" */

.clincard-busca-form h3,
.cl-busca-description {
    display: none !important;
}

/* Rádio inline para "Como prefere ser contatado?" */

.cl-radio-inline {
    display: flex;
    flex-direction: row;
}

.cl-radio-inline label {
    width: 100%;
}

.cl-radio-inline input {
    width: 16px;
    margin: 4px;
}

.cl-radio-inline label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Erro de campo */

.cl-error,
.cl-error-group {
    border: 1px solid #F97373 !important;
    background-color: #FEF2F2 !important;
}

.cl-error-group {
    padding: 10px;
    border-radius: 12px;
}

/* RESPONSIVO */

@media (max-width: 768px) {
    .cl-plan-list {
        flex-direction: column;
    }

    .cl-addons,
    .cl-payment-methods {
        flex-direction: column;
    }

    .cl-summary-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cl-summary {
        width: 100%;
    }

    .cl-btn-primary {
        width: 100%;
        text-align: center;
    }

    .cl-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .cl-actions button {
        width: 100%;
        text-align: center;
    }
}

/* SEJA CREDENCIADO */
.clincard-seja-credenciado-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #E0E7EA;
    box-shadow: 0 10px 30px rgba(15, 35, 52, 0.06);
    max-width: 1000px;
    margin: 40px auto;
    font-family: inherit;
    color: #4B5563;
}

.cl-f-section {
    margin-bottom: 56px;
    padding-top: 32px;
    border-top: 1px solid #F1F5F9;
}

.cl-f-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.cl-f-section h3 {
    margin-bottom: 32px;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cl-f-section h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 24px;
    background: #5388f3;
    border-radius: 4px;
}

.cl-f-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
    margin-bottom: 24px;
}

.cl-f-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.cl-f-grid-address {
    display: grid;
    grid-template-columns: 3fr 1fr 2fr;
    gap: 20px 24px;
    margin-bottom: 24px;
}

.clincard-checkout-form h3 {
    margin-top: 48px;
    font-family: 'Figtree', sans-serif;
    font-weight: 600;
}

.cl-f-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cl-f-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}

.cl-f-group input,
.cl-f-group select {
    border-radius: 10px;
    border: 1px solid #D1D5DB;
    padding: 12px 14px;
    font-size: 14px;
    color: #111827;
    outline: none;
    background: #ffffff;
    transition: all 0.2s ease;
}

.cl-f-group input:focus,
.cl-f-group select:focus {
    border-color: #5388F3;
    box-shadow: 0 0 0 3px rgba(83, 136, 243, 0.1);
}

.cl-f-scroll-list {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px;
    background: #F8FAFC;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cl-f-scroll-list::-webkit-scrollbar {
    width: 6px;
}

.cl-f-scroll-list::-webkit-scrollbar-track {
    background: transparent;
}

.cl-f-scroll-list::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}

.cl-f-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.1s;
}

.cl-f-checkbox:hover {
    transform: translateX(4px);
}

.cl-f-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #D1D5DB;
    cursor: pointer;
}

.cl-f-checkbox label {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.cl-f-horario-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    background: #F8FAFC;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #F1F5F9;
}

.cl-f-group-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cl-f-group-time input {
    width: 85px;
    text-align: center;
}

.cl-f-days-selection {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-grow: 1;
}

.cl-f-day-check {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.cl-f-day-check span {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cl-f-add-btn,
.cl-f-remove-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cl-f-add-btn {
    background: #5388F3;
    color: white;
}

.cl-f-remove-btn {
    background: #FEE2E2;
    color: #EF4444;
}

.cl-f-add-btn:hover {
    background: #2E5FA5;
}

.cl-f-remove-btn:hover {
    background: #FCA5A5;
    color: #7F1D1D;
}

.cl-f-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.cl-f-upload-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cl-f-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #2E5FA5;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border: 2px dashed #CBD5E1;
    transition: all 0.2s;
}

.cl-f-upload-btn:hover {
    border-color: #5388F3;
    background: #F0F6FF;
    color: #5388F3;
}

.cl-f-upload-btn input {
    display: none;
}

.cl-f-upload-item .file-name {
    font-size: 11px;
    color: #94A3B8;
    text-align: center;
    font-style: italic;
}

.cl-f-privacy {
    background: #F1F5F9;
    padding: 24px;
    border-radius: 16px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 32px;
    border-left: 4px solid #5388F3;
}

.cl-f-privacy a {
    color: #5388F3;
    text-decoration: none;
    font-weight: 600;
}

.cl-f-privacy a:hover {
    text-decoration: underline;
}

.cl-f-actions {
    display: flex;
    justify-content: center;
}

.cl-f-actions .cl-btn-primary {
    padding: 16px 64px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(83, 136, 243, 0.3);
}

@media (max-width: 991px) {
    .cl-f-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cl-f-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .cl-f-grid,
    .cl-f-grid-address {
        grid-template-columns: 1fr;
    }

    .cl-f-horario-row {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .cl-f-group-time {
        justify-content: center;
    }

    .clincard-seja-credenciado-wrapper {
        padding: 24px;
    }
}

#fundocoloridinhogradiente {
    background: radial-gradient(193.28% 107.99% at 47.91% 97.88%, #FFF 25.07%, rgba(255, 255, 255, 0.10) 100%), radial-gradient(332.02% 96.3% at 17.76% 100.09%, #2481EB 0%, #19C9B3 100%);
}