:root {
    --primary: #1ab394;
    --bg: #f7f7f7;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e5e7eb;
    --gradient-primary: linear-gradient(135deg, hsl(172 66% 40%), hsl(172 66% 30%));

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* Topbar */
.topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
}

.business-info {
    display: flex;
    gap: .8rem;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    color: #fff;
    border-radius: 50%;      /* círculo real */
    overflow: hidden;        /* corta qualquer sobra */
    background: transparent;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.business-info span {
    font-size: .8rem;
    color: var(--muted);
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    text-align: center;
}

/* Steps */
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .2rem;
    margin-bottom: 2rem;
}

.step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 600;
}

.step.active {
    background: var(--gradient-primary);
    color: #fff;
}

.steps span {
    width: 40px;
    height: 3px;
    background: #e5e7eb;
    border-radius: 8px;
}

/* Titles */
h1 {
    font-size: 1.8rem;
}

.subtitle {
    color: var(--muted);
    margin: .5rem 0 2rem;
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: left;
    cursor: pointer;
    transition: all .2s ease;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.service-card.selected {
    border-color: var(--primary);
    background: #ecfdf9;
}

.service-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: .4rem;
}

.service-header strong {
    color: var(--primary);
}

.service-card p {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .6rem;
}

.service-card span {
    font-size: .8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* Button */
.continue-btn {
    margin-top: 3rem;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: .9rem 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    opacity: 1;
    transition: box-shadow .2s ease, transform .2s ease;
    box-shadow:
        0 8px 18px rgba(26, 107, 98, 0.35);
}

.continue-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 10px 24px rgba(29, 231, 208, 0.582);
    transform: translateY(-2px);
}

.continue-btn:active {
    box-shadow:
        0 6px 14px rgba(29, 231, 208, 0.582);
    transform: translateY(0);
}


.continue-btn.disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Mobile */
@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr;
    }
}


.container {
    max-width: 900px;
    margin: 3rem auto;
    text-align: center;
    padding: 0 1rem;
}

/* STEPS */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 2rem;
}

.step {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--muted);
}

.step.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.step.done {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.line {
    width: 40px;
    height: 3px;
    background: var(--border);
}

.line.active {
    background: var(--primary);
}

/* TEXT */
h1 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 3rem;
}

/* BLOCKS */
.block {
    margin-bottom: 2.5rem;
    text-align: left;
}

.block-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.block-title strong {
    color: #0f172a;
    font-weight: 500;
}

.block-title i {
    font-size: 1.4rem;
    font-weight: 300;
}

/* OPTIONS */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.option {
    padding: .7rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: .9rem;
}

.option:hover {
    border-color: var(--primary);
}

.option.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ACTIONS */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.back-action {
    height: 48px;
    padding: 0 1.6rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: .95rem;
    cursor: pointer;
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: 0.3s ease;
}
.back-action:hover {
    transform: scale(1.05);
    box-shadow:
        0 10px 24px rgba(214, 214, 214, 0.582);
    transform: translateY(-2px);

}

.block {
    margin-bottom: 2.5rem;
    text-align: left;
}

.block-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.option {
    height: 44px;
    padding: 0 1.4rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.option:hover {
    border-color: var(--primary);
}

.option.selected {
    background: #ecfdf9;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.block .options .option {
    min-width: 130px;
}

.options.times {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .75rem;
    max-width: 760px;
    width: 100%;
}

.option.disabled {
    background: #f8fafc;
    color: #9ca3af;
    border-color: var(--border);
    cursor: not-allowed;
}

/* CARD FORM */
.card-form {
    max-width: 480px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.6rem;
    text-align: left;
}

/* FIELDS */
.field {
    margin-bottom: 1.2rem;
}

.field label {
    display: block;
    font-size: .85rem;
    margin-bottom: .4rem;
    color: var(--text);
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 44px;
    padding: 0 .9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: .9rem;
    background-color: hsla(216, 17%, 71%, 0.1);
}

.field input:focus {
    outline: none;
    border-color: var(--primary);
}

/* RESUMO */
.card-form hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.4rem 0;
}

.resume h3 {
    font-size: 1rem;
    margin-bottom: .8rem;
}

.resume p {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .4rem;
}

.resume strong {
    color: var(--text);
}

/* ACTIONS CENTER */
.actions.center {
    justify-content: space-between;
    margin-top: 0rem;
}

.actions.center .back-action {
    width: 49%;
    justify-content: center;
    height: 2.5rem;
    transition: 0.3s ease;
}

.actions.center .back-action:hover {
    transform: scale(1.05);
    box-shadow:
        0 10px 24px rgba(163, 163, 163, 0.582);
    transform: translateY(-2px);

}

.actions.center .continue-btn {
    width: 49%;
    margin-bottom: 1rem;
    justify-content: center;
    height: 2.5rem;
}
.actions.center .continue-btn:hover{
    transform: scale(1.01);
}

@media (max-width: 768px){
    .actions.center .continue-btn {
        margin-top: 0;
        width: 90%;
    }

    .actions.center .back-action{
        width: 90%;
    }
}

.date-carousel {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav-btn {
    flex-shrink: 0;
    padding: .5rem .7rem;
    border-radius: 10px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
}

.options.dates {
    display: flex;
    gap: .5rem;
    overflow-x: hidden;
    flex: 1;
}


/* RESPONSIVIDADE GLOBAL */

/* Evita overflow lateral em mobile */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Container mais fluido */
.container {
    width: 100%;
}

@media (max-width: 1024px) {

    .container {
        max-width: 720px;
        padding: 2rem 1rem 3rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: .9rem;
    }

    /* Services */
    .services {
        grid-template-columns: 1fr;
    }

    /* Horários */
    .options.times {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {

    /* TOPBAR */
    .topbar {
        height: auto;
        padding: .8rem;
    }

    .business-info span {
        display: none;
    }

    /* STEPS */
    .steps {
        gap: .4rem;
    }

    .step {
        width: 30px;
        height: 30px;
        font-size: .75rem;
    }

    .line {
        width: 28px;
    }

    /* TITLES */
    h1 {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: .85rem;
        margin-bottom: 2rem;
    }

    /* SERVICE CARDS */
    .service-card {
        padding: 1rem;
    }

    .service-header h3 {
        font-size: .95rem;
    }

    .service-header strong {
        font-size: .9rem;
    }

    /* OPTIONS */
    .block .options:not(.times) .option {
        min-width: unset;
        flex: 1 1 45%;
        justify-content: center;
    }

    /* HORÁRIOS */
    .options.times {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }

    /* ACTIONS */
    .actions {
        flex-direction: column;
        gap: 1rem;
    }

    .back-action {
        width: 100%;
        justify-content: center;
    }

    .continue-btn {
        width: 100%;
        justify-content: center;
    }

    /* CARD FORM */
    .card-form {
        max-width: 100%;
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {

    .container {
        padding: 1.5rem .8rem 3rem;
    }

    h1 {
        font-size: 1.15rem;
    }

    .subtitle {
        font-size: .8rem;
    }

    /* Steps mais compactos */
    .step {
        width: 26px;
        height: 26px;
    }

    .line {
        width: 22px;
    }

    /* Options */
    .option {
        height: 42px;
        font-size: .85rem;
        padding: 0 .8rem;
    }

    /* Horários */
    .options.times {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Botões */
    .continue-btn {
        height: 44px;
        font-size: .9rem;
    }

    .back-action {
        height: 44px;
        font-size: .9rem;
    }
}

/* CONFIRMAÇÃO DE AGENDAMENTO */

.success-message {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
}

/* Ícone circular */
.success-message .check {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop .35s ease;
}

/* Texto */
.success-message strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: .4rem;
    color: var(--text);
}

.success-message span {
    font-size: .9rem;
    color: var(--muted);
}

.success-card {
    padding: 2rem 1.6rem;
    max-width: 420px;
    width: 90%;
    background: #ecfdf9;
    border: 1px solid var(--primary);
    border-radius: 18px;
    text-align: center;
    animation: successFadeUp .4s ease forwards;
}

/*  ANIMAÇÕES */

@keyframes successPop {
    0% {
        transform: scale(.6);
        opacity: .3;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes successFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-state {
    width: 100%;
    max-width: 760px;
    margin-top: 1rem;
    padding: 1.4rem 1.2rem;

    display: flex;
    align-items: center;
    gap: 1rem;

    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;

    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.empty-state i {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: #f1f5f9;
    color: #000;

    font-size: 1.2rem;
    flex-shrink: 0;
}

.empty-state strong {
    display: block;
    font-size: .95rem;
    color: var(--text);
    font-weight: 600;
}

.empty-state span {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    margin-top: .2rem;
}


.logo-img {
    width: 95%;
    height: 95%;
    object-fit: cover;
    border-radius: 12px;
}


.option {
    min-width: 0;
}