:root {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    --dark-grey: #252525;
    --light-grey: #cccccc;
    --black: #121212;
    --white: #FEFEFE;
    --active: #5b1023;
    --mustard: #E3A018;
    --dark-mustard: #C68B10
}

.agendamento-principal {
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agendamento-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    width: 100%;
    max-width: 100%;
    background-color: var(--black);
    align-items: stretch;
}

/* Lado Esquerdo: Imagem lateral */
.agendamento-coluna-imagem {
    grid-column: 1;
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-lateral {
    width: 100%;
    height: 100vh; /* Garante que ocupe toda a altura da viewport */
    object-fit: cover; /* Preenche o espaço mantendo a proporção */
    object-position: center; /* Centraliza a imagem no corte */
    background-color: var(--black);
}

/* Lado Direito: Conteúdo com card branco e margem à direita */
.agendamento-coluna-conteudo-wrapper {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    padding-right: 80px;
    background-color: var(--black);
}

.agendamento-card-unico {
    width: 100%;
    max-width: 400px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    padding: 40px;
    position: relative; /* Garante contexto para o modal se necessário, mas o modal será fixed */
}

.titulo-principal {
    margin-bottom: 20px;
    padding-bottom: 15px;
    text-align: center;
    display: block;
    color: var(--active);
    font-size: 1.5em;
    font-weight: bold;
}

.subtitulo-principal {
    margin: 15px 0;
    padding-top: 15px;
    font-size: 1em;
    font-weight: bold;
    color: var(--active);
    border-top: none;
}

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

.input-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--black);
}

.input-padrao {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    transition: 0.3s;
    background-color: #f9f9f9;
    color: var(--black);
}

.input-padrao:focus {
    border-color: var(--mustard);
    outline: none;
    background-color: var(--white);
}

/* Estilos do Calendário */
.calendario-visual {
    background: var(--white);
    padding: 12px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mes-ano {
    font-weight: bold;
    font-size: 0.9em;
    color: var(--black);
}

.cal-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.cal-btn:hover {
    background-color: var(--mustard);
    color: var(--black);
}

.tabela-calendario {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
    color: var(--black);
}

.tabela-calendario th {
    padding: 4px;
    color: var(--active);
    font-weight: bold;
}

.tabela-calendario td {
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.tabela-calendario td:hover:not(.dia-vazio):not(.dia-selecionado) {
    background-color: var(--mustard);
    color: var(--black);
}

.dia-selecionado {
    background-color: var(--active) !important;
    color: var(--white) !important;
    font-weight: bold;
}

.horarios-disponiveis h3 {
    margin: 10px 0;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--black);
}

.grid-horarios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.btn-horario {
    padding: 8px;
    border: 1px solid #ddd;
    background: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: normal;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    color: var(--black);
}

.btn-horario:hover:not(.horario-selecionado) {
    background-color: var(--mustard);
    border-color: var(--mustard);
    color: var(--black);
}

.btn-horario.horario-selecionado {
    background-color: var(--active) !important;
    color: var(--white) !important;
    border-color: var(--active) !important;
}

#botao-finalizar {
    width: 100%;
    padding: 15px;
    background-color: var(--mustard);
    color: var(--black);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

#botao-finalizar:hover {
    background-color: var(--mustard);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 160, 24, 0.5);
}

#botao-finalizar:active {
    background-color: var(--active);
    color: var(--white);
}

.rodape {
    background-color: var(--black);
    padding: 45px 0;
    color: var(--white);
    border-top: 1px solid var(--dark-grey);
}

.rodape-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-rodape {
    width: 45px;
    filter: brightness(0) invert(1);
}

.copyright-texto {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: var(--white);
    opacity: 0.8;
}

.redes-sociais a, .link-topo {
    color: var(--white) !important;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
    opacity: 0.8;
}

.redes-sociais a:hover, .link-topo:hover {
    opacity: 1;
    color: var(--mustard) !important;
}

@media screen and (max-width: 1024px) {
    .agendamento-layout-container {
        grid-template-columns: 1fr;
    }
    .agendamento-coluna-imagem {
        height: 350px;
    }
    .img-lateral {
        width: 100%;
        object-position: center;
    }
    .agendamento-coluna-conteudo-wrapper {
        padding: 30px 20px;
    }
}

/* Ajustes adicionais para interatividade */
select.input-padrao {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.dia-invalido {
    opacity: 0.6;
    pointer-events: none;
}

/* Estilos do Modal de Confirmação */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: none; /* Controlado via JS */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garante sobreposição */
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    color: var(--active);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.modal-header h2 {
    font-weight: bold;
    font-size: 1.4em;
}

.modal-header i {
    font-size: 1.4em;
    color: #28a745;
}

.modal-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.modal-body {
    color: var(--black);
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: left;
}

.modal-body p {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.modal-body strong {
    color: var(--active);
}

.modal-label {
    color: var(--mustard) !important;
    font-weight: bold;
}

.btn-modal-fechar {
    background-color: var(--mustard);
    color: var(--black);
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.btn-modal-fechar:hover {
    background-color: var(--dark-mustard);
    transform: translateY(-2px);
}

/* === Modal de erro === */

#modal-erro {
    display: none;
}

/* Caixa de alerta de erro */
.modal-erro-alerta {
    background-color: rgb(var(--dark-grey) / 0.08);
    border: 1px solid --black;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

/* Texto do erro */
.modal-erro-label {
    color: var(--black);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

#icon-alert {
    width: 80px;
}

/* Botão fechar / voltar */
.btn-modal-erro-fechar {
    background-color: var(--mustard);
    color: var(--black);
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.btn-modal-erro-fechar:hover {
    background-color: var(--mustard);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 160, 24, 0.5);
}

.btn-modal-erro-fechar:active {
    background-color: var(--active);
    color: var(--white);
}

@keyframes modalAppear {
    from { opacity: 0; transform: translateY(-30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
