/* --- CSS Reset Minimal --- */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
    padding: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

img, picture {
    max-width: 100%;
    display: block;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    font-family: sans-serif;
    -webkit-font-smoothing: antialiased;
}

input, button, textarea, select {
    font: inherit;
}

/* FIM DO CSS RESET */

html {
    height: auto;
    width: 100vw;
    max-width: 100vw;
}

body {
    min-height: 100vh;
    height: auto;
    width: 100vw;
    max-width: 100vw;
    display: block;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 60px; /* Compensa a altura do header fixo */
    font-family: 'Rubik', sans-serif;
}

/* Só para garantir que todos os elementos de texto usem a fonte Rubik */
p, h1, h2, h3, h4, h5, h6, a, button, label, span, input, textarea, select, div {
    font-family: 'Rubik', sans-serif;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100vw;
    max-width: 100vw;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    height: 60px;
    background-color: #FFFFFF;
}

.header .logo {
    height: 40px;
    width: auto;
}

.portalPaciente {
    border: none;
    padding: 5px 15px;
    text-align: center;
    background-color: #265299;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 100vw; /* Técnica para criar um botão totalmente arredondado */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portalPaciente:hover {
    background-color: #1C3E75; /* Escurecimento mecânico para feedback de hover */
    box-shadow: 0 4px 12px rgba(38, 82, 153, 0.3);
    transform: translateY(-1px);
}

.portalPaciente:active {
    transform: translateY(0) scale(0.96);
}

.container {
    margin: 0;
    padding: 0;
    position: relative;
    padding-bottom: 50px; /* É um jeito de dar "margin" sem quebra do fluxo, assim um elemento (container) fica colado no footer */
}

.section1 {
    margin: 0;
    padding: 0;
    position: relative;
    background-image: 
        linear-gradient(to right, rgba(38, 82, 153, 0.95) 0%, rgba(38, 82, 153, 0.5) 45%, transparent 70%),
        url('./assets/images/capa.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

.promocaoContainer {
    margin-left: 5%;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
}

.promocaoTitle{
    color: #FFFFFF;
}

.promocaoDescricao{
    color: #FFFFFF;
    font-weight: 400;
}

.promocaoButton {
    cursor: pointer;
    text-align: center;
    padding: 10px 20px;
    border-radius: 100vw; /* Tecnica para criar um botão totalmente arredondado */
    background-color: #F18919;
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.promocaoButton:hover {
    background-color: #E07B15;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(241, 137, 25, 0.4);
}

.promocaoButton:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.section2 {
    margin: 0;
    padding: 20px;
    position: relative;
    background-color: #FFFFFF;
    height: 80vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.formsPromocaoContainer {
    display: block;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.formsPromocaoHeader {
    text-align: center;
    margin: 0 auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 80%;
}

.formsPromocaoHeader .titleDecoration {
    margin: 0;
    border: none;
    padding: 0;
    height: 2px;
    width: 100%;
    background-color: #E0E4E8;
}

.formsPromocaoContainer h1 {
    text-align: center;
    margin: 0;
    min-width: max-content;
    color: #265299;
    font-size: 1.8rem;
    white-space: nowrap;
}

.formsPromocao {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    padding: 30px 20px;
    max-width: 600px;
    background-color: #FFFFFF;
    border: 1px solid #E0E4E8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.formLabel {
    display: block;
    text-align: left;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.formLabel p {
    color: #265299;
    font-weight: 600;
    font-size: 0.95rem;
}

.formInput {
    width: 100%;
    padding: 5px 10px;
    margin: 0 auto;
    margin-top: 2px;
    background-color: #F4F6F9;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    color: #4A5568;
    transition: border-color 0.2s;
}

.formInput:focus {
    outline: none;
    border-color: #265299;
    background-color: #FFFFFF;
}

.formLabel .error-message {
    font-size: 0.8rem;
    padding: 0;
    color: #DC2626;
    overflow: hidden;
    z-index: -1;
    visibility: hidden;
    height: 0;
    transition: 0.3s ease-in-out;
}

.formLabel.error .formInput {
    border-color: #DC2626;
}

.formLabel.error .formInput:focus {
    border-color: #DC2626;
    box-shadow: 0 0 0 1px #DC2626;
}

.formLabel.error .error-message {
    visibility: visible;
    z-index: 1;
    height: 100%;
    transition: 0.3s ease-in-out;
}

.formButton {
    cursor: pointer;
    text-align: center;
    padding: 10px 20px;
    border-radius: 100vw; /* Tecnica para criar um botão totalmente arredondado */
    border: none;
    font-weight: 600;
    background-color: #43A047;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
    transition: all 0.2s ease;
}

.formButton:hover {
    background-color: #388E3C;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.4);
}

.formButton:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.whatsappButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
    font-weight: 1;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.whatsappButton svg {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.whatsappButton:hover {
    transform: scale(1.1) translateY(-4px);
    filter: drop-shadow(0 8px 12px rgba(39, 180, 62, 0.4));
}

.whatsappButton:active {
    transform: scale(0.95) translateY(0);
    filter: drop-shadow(0 2px 4px rgba(39, 180, 62, 0.3));
}

.footer {
    margin: 0;
    padding: 20px;
    position: relative;
    text-align: center;
    bottom: 0;
    height: 50px;
    background-color: #265299;
    color: #FFFFFF;
}

.footer p {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
}