html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.l-canvas {
  flex: 1 0 auto;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


section {
    background-color: #bcbdc0
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .checkbox-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    .checkbox-item label {
        cursor: pointer;
        font-weight: 400;
    }




/* =========================
   Document Section
   ========================= */
.document-download {
    background: #f8f8f8;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.document-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.document-list {
    padding-left: 18px;
    margin-bottom: 20px;
}

    .document-list li {
        margin-bottom: 6px;
        line-height: 1.5;
    }

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

/* Upload Card */
.upload-card {
    position: relative;
    background: #ffffff;
    border: 1px dashed #ccc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

    .upload-card.required {
        border-color: #d4122e;
    }

    .upload-card:hover {
        background: #fafafa;
        border-color: #d4122e;
    }

    .upload-card label {
        font-weight: bold;
        margin-bottom: 8px;
        display: block;
    }

.upload-label {
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.upload-sublabel {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}


/* Remove button (X) */

.upload-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #e5e5e5;
    color: #333;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: none;
    z-index: 2;
}

.upload-card.has-file {
    border-color: green;
    background-color: #fff;
}

.upload-filename {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #d40f2e;
}

.upload-card.has-file .upload-filename {
    color: green;
}

.upload-card.has-file .upload-remove {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-remove:hover {
    background-color: #d40f2e;
    color: #ffffff;
}

    .upload-remove:hover::after {
        content: "Remover Documento";
        position: absolute;
        top: -28px;
        right: 0;
        background: #333;
        color: #fff;
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 6px;
        white-space: nowrap;
    }

.upload-card.has-file .upload-hint {
    display: none;
}

.upload-card:not(.has-file):hover {
    background: #fafafa;
    border-color: #d4122e;
}

.upload-card.has-file::after {
    content: "Documento Anexado!";
    position: absolute;
    bottom: 10px;
    right: 16px;
    font-size: 12px;
    font-weight: 600;
    color: green;
}


/* External form */
.external-form {
    margin-top: 32px;
}

    .external-form label {
        display: block;
        margin-bottom: 12px;
    }

/* Utilities */
.full-width {
    width: 100%;
}







/* =========================
   Custom Section
   ========================= */


.lista cadastro ul {
    list-style: none;
}

.lista_cadastro ul li {
    padding-left: 5px;
}

    .lista_cadastro ul li::before {
        content: "•";
        color: #df2a40;
        font-size: 1.5em;
        /* aumenta o tamanho do bullet */
        display: inline-block;
        width: 0.7em;
        /* reduz a largura do espaço reservado para o bullet */
        margin-left: -0.7em;
        /* ajusta o posicionamento do bullet */
        vertical-align: middle;
        /* alinha verticalmente com o texto */
    }



.required_item {
    color: red;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

    /* Ajuste para campos de data na segunda coluna */
    .form-row .form-group:first-child {
        flex: 3;
        /* Ocupa mais espaço */
    }

    .form-row .form-group:last-child {
        flex: 1;
        /* Ocupa menos espaço - apenas o suficiente para a data */
        min-width: 200px;
        /* Largura mínima para o campo de data */
    }

@@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        /* Alinha os elementos em uma coluna */
    }

        .form-row .form-group {
            flex: 1 1 100%;
            /* Cada elemento ocupa 100% da largura */
            min-width: auto;
            /* Remove a largura mínima para se ajustar à tela */
        }
}

fieldset {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
}

legend {
    font-weight: bold;
    padding: 0 10px;
}

label {
    font-weight: bold;
    display: block;
    color: #333333;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Novo estilo para radio e checkbox */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .radio-item input,
    .checkbox-item input {
        margin: 0;
    }

    .radio-item label,
    .checkbox-item label {
        margin: 0;
    }





/* =========================
   Hero Section
   ========================= */

.hero-section {
    background: url("../img/bg.png") no-repeat center center / cover;
    padding: 80px 20px;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

/* =========================
   Content
   ========================= */

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-logo {
    width: 200px;
    margin-bottom: 30px;
}

.hero-welcome {
    color: #d40f2e;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
}

.hero-title {
    color: #d40f2e;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
}

.hero-description {
    color: #4f5459;
    margin-bottom: 30px;
}

.hero-instruction {
    font-weight: 700;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-welcome {
        font-size: 36px;
    }

    .hero-title {
        font-size: 22px;
    }
}





/* =========================
   Contact Section
   ========================= */

.contact-section {
    background-color: #d40f2e;
    color: #ffffff;
    padding: 60px 20px;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Intro */

.contact-intro {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Contact methods */

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    font-size: 18px;
}

.contact-text a {
    color: #ffffff;
    text-decoration: underline;
}

/* Hours */

.contact-hours-title {
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-hours {
    font-size: 16px;
}



/* =========================
   Medical Form Section
   ========================= */

.form-section {
    background-color: #f6f6f6;
    padding: 80px 20px;
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 50px;
    border-radius: 8px;
}

/* Step header */

.form-step {
    text-align: center;
    margin-bottom: 40px;
}

.form-step-icon {
    font-size: 2rem;
    color: #d40f2e;
    margin-bottom: 10px;
}

.form-step-title {
    font-size: 28px;
    margin-bottom: 5px;
}

.form-step-description {
    color: #555;
}

/* Headers */

.form-header {
    margin-bottom: 20px;
}

.form-title {
    font-size: 24px;
    margin-bottom: 5px;
}

.form-subtitle {
    font-size: 20px;
    margin: 30px 0 15px;
}

/* Submit */

.form-submit {
    width: 100%;
    border-radius: 50px;
    padding: 12px;
    background-color: #d40f2e;
    color: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 700;
}



/* =========================
   Form Actions
   ========================= */

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.form-button {
    flex: 1;
    border-radius: 70px;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    border: none;
}

.form-button-primary {
    background-color: #d40f2e;
    color: #ffffff;
}

.form-button-secondary {
    background-color: #cccccc;
    color: #333333;
}

.form-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
}



/* =========================
   Form Step Header (Compact)
   ========================= */

.form-step-header {
    background-color: #d40f2e;
    color: #ffffff;
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.form-step-badge {
    display: block;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 6px;
}

.form-step-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
