/* ========================================= */
/* CSS para a página "Agendamento"           */
/* ========================================= */

/* HERO: Estilo original com bordas arredondadas */
main#agendamento-main .hero {
    position: relative;
    height: clamp(400px, 50vh, 500px);
    min-height: 400px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    border-bottom-left-radius: 70px;
    border-bottom-right-radius: 70px;
    margin-bottom: 0;
    background-color: var(--color-text-dark);
    overflow: hidden;
}
main#agendamento-main .hero .hero__image-wrapper {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
main#agendamento-main .hero .hero__image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
}
main#agendamento-main .hero .hero__overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 10%, rgba(0, 0, 0, 0.3) 100%);
}
main#agendamento-main .hero .hero__content {
    position: relative;
    padding-top: var(--header-height);
    z-index: 2;
}
main#agendamento-main .hero .hero__title {
    font-size: clamp(3rem, 7vw, 4.5rem);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
main#agendamento-main .hero .hero__subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
}

/* 1. Seção de Opções de Agendamento */
.appointment-options-section {
    padding: 80px 0 100px;
    background-color: var(--color-bg-alt);
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.appointment-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.appointment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.appointment-card__icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 25px;
    background-color: var(--color-bg-alt);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.appointment-card:nth-child(2) .appointment-card__icon {
    color: var(--color-secondary);
}
.appointment-card:nth-child(2):hover {
    border-color: var(--color-secondary);
}
.appointment-card__title {
    font-size: 1.8rem;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}
.appointment-card__description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 30px;
    flex-grow: 1;
}
.appointment-card__button-wrapper {
    width: 100%;
}
.scheduling-note {
    text-align: center;
    margin-top: 60px;
    font-size: 0.95rem;
    color: var(--color-text);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Seção de Contato (estilo da pág. "Pessoas") */
.history-promo-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    padding: 60px 0;
    overflow: hidden;
}
.history-promo__bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.history-promo__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}
.history-promo-section .container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.history-promo-card {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    color: var(--color-text-dark);
}
.history-promo-card__super-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 5px;
}
.history-promo-card__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}
.history-promo-card__text-group p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.history-promo-card .btn--primary {
    margin-top: 10px;
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .options-grid {
        gap: 30px;
    }
    main#agendamento-main .hero {
        border-bottom-left-radius: 60px;
        border-bottom-right-radius: 60px;
    }
    .history-promo-section .container {
        justify-content: center;
    }
    .history-promo-card {
        margin: 0 auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .appointment-options-section {
        padding: 60px 20px;
    }
    .options-grid {
        grid-template-columns: 1fr; /* Coluna única em mobile */
    }
    main#agendamento-main .hero {
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
    .history-promo-section {
        min-height: 400px;
        padding: 60px 20px;
    }
    .history-promo-card {
        padding: 30px;
    }
    .history-promo-card__title {
        font-size: 1.8rem;
    }

    /* AJUSTE PARA O POP-UP DO GOOGLE AGENDA EM TELAS MÓVEIS.
      Este código visa o pop-up gerado pelo script do Google para que ele 
      ocupe uma área maior da tela, melhorando a usabilidade em celulares.
    */
    div[role="dialog"] {
        width: 95vw !important;
        height: 90vh !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}