/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-width: 100vw;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    background-image: url('../imagens/background-aurum.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

/* Container principal */
#corpo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10em;
    padding: 20px;
}

/* Seção do cabeçalho */
#header-section {
    text-align: center;
    margin-bottom: 30px;
}

#container-logo {
    margin-bottom: 20px;
}

#logo {
    width: 300px;
    height: 100px;
    background-image: url('../imagens/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
}

#texto-info {
    margin-bottom: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2em;
}

#texto-primario {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

#texto-primario p:first-child {
    background-color: white;
    color: #7370c2;
    font-size: 30px;
    font-weight: bold;
    padding: 15px 25px;
    margin: 0;
    line-height: 1;
    font-family: 'Montserrat', Arial, sans-serif;
    text-transform: none;
    display: inline-block;
    z-index: inherit;
}

#texto-primario p:last-child {
    background-color: #7370c2;
    color: white;
    font-size: 50px;
    font-weight: bold;
    padding: 15px 25px;
    margin: 0;
    line-height: 1;
    font-family: 'Montserrat', Arial, sans-serif;
    text-transform: none;
    display: inline-block;
    margin-left: 80px;
    position: relative;
    top: -10px;
}

#texto-secundario {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

#texto-secundario p:first-child {
    background-color: white;
    color: #7370c2;
    font-size: 24px;
    font-weight: normal;
    padding: 12px 20px;
    margin: 0;
    line-height: 1.1;
    font-family: 'Montserrat', Arial, sans-serif;
}

#texto-secundario p:last-child {
    background-color: white;
    color: #7370c2;
    font-size: 24px;
    font-weight: normal;
    padding: 12px 20px;
    margin: 0;
    line-height: 1.1;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Seção de agendamento */
#agenda {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 400px;
    width: auto;
}

#form-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Seções de data e hora */
#data-section,
#hora-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-weight: bold;
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
}

select {
    padding: 15px 45px 15px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 18px;
    background-color: white;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    transition: all 0.3s ease;
    min-height: 50px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #333;
}

select:focus {
    outline: none;
    border-color: #7370c2;
    box-shadow: 0 0 0 3px rgba(115, 112, 194, 0.1);
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%237370c2" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
}

select:hover {
    border-color: #7370c2;
}

select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Estilo específico para as opções do select */
select option {
    padding: 10px;
    background-color: white;
    color: #333;
    font-family: 'Montserrat', Arial, sans-serif;
}

select option:hover {
    background-color: #f8f8f8;
}

select option:checked {
    background-color: #7370c2;
    color: white;
}

/* Botão de agendamento */
#button-section {
    margin-top: 20px;
}

#btn-agendar {
    width: 100%;
    padding: 18px;
    background-color: #7370c2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 55px;
}

#btn-agendar:hover {
    background-color: #5856a0;
}

#btn-agendar:active {
    transform: translateY(1px);
}

/* Mensagens de erro */
span[id^="error-"] {
    font-size: 16px;
    font-weight: bold;
    margin-top: 5px;
}

/* Hidden inputs */
input[type="hidden"] {
    display: none;
}

/* Notification styles */
#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* Responsivo */
/* Tablet styles - similar to mobile */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        justify-content: center;
        align-items: center;
    }

    #corpo {
        display: block;
        padding: 15px;
        gap: 0;
        text-align: center;
    }

    #header-section {
        text-align: center;
        margin-bottom: 30px;
    }

    #agenda {
        padding: 25px;
        margin: 0 auto;
        max-width: 500px;
    }

    #persona {
        display: none;
    }

    #logo {
        width: 280px;
        height: 90px;
    }

    #texto-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }

    #texto-primario {
        align-items: center;
    }

    #texto-primario p:first-child {
        font-size: 34px;
        padding: 12px 20px;
    }

    #texto-primario p:last-child {
        font-size: 36px;
        padding: 12px 20px;
        margin-left: 0;
    }

    #texto-secundario {
        align-items: center;
    }

    #texto-secundario p:first-child,
    #texto-secundario p:last-child {
        font-size: 20px;
        padding: 10px 16px;
    }

    label {
        font-size: 16px;
    }

    select {
        padding: 12px 40px 12px 12px;
        font-size: 16px;
        background-size: 10px;
        background-position: right 12px center;
    }

    #btn-agendar {
        padding: 15px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    body {
        width: 100vw;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    #corpo {
        display: block;
        padding: 25px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        text-align: center;
    }

    #header-section {
        text-align: center;
        margin-bottom: 30px;
    }

    #agenda {
        padding: 15px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: unset;
    }

    #persona {
        display: none;
    }

    #logo {
        width: 250px;
        height: 80px;
    }

    #texto-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }

    #texto-primario {
        align-items: center;
    }

    #texto-primario p:first-child {
        font-size: 32px;
        padding: 10px 18px;
    }

    #texto-primario p:last-child {
        font-size: 32px;
        padding: 10px 18px;
        margin-left: 0;
    }

    #texto-secundario {
        align-items: center;
    }

    #texto-secundario p:first-child,
    #texto-secundario p:last-child {
        font-size: 18px;
        padding: 8px 15px;
    }

    select,
    #btn-agendar {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body {
        width: 100vw;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    #corpo {
        display: block;
        padding: 20px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        text-align: center;
    }

    #header-section {
        text-align: center;
        margin-bottom: 30px;
    }

    #agenda {
        display: block;
        padding: 10px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: unset;
    }

    #persona {
        display: none;
    }

    #logo {
        width: 200px;
        height: 65px;
    }

    #texto-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }

    #texto-primario {
        align-items: center;
    }

    #texto-primario p:first-child {
        font-size: 28px;
        padding: 8px 15px;
    }

    #texto-primario p:last-child {
        font-size: 28px;
        padding: 8px 15px;
        margin-left: 0;
    }

    #texto-secundario {
        align-items: center;
    }

    #texto-secundario p:first-child,
    #texto-secundario p:last-child {
        font-size: 16px;
        padding: 6px 12px;
    }

    label {
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    select {
        padding: 10px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }

    #btn-agendar {
        padding: 12px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    #form-container {
        width: 100%;
        box-sizing: border-box;
    }
}