:root {
    --cosem-form-blue: #1874d1;
    --cosem-form-orange: #ff9f1c;
}

html,
body.form-body {
    min-height: 100%;
    margin: 0;
}

body.form-body {
    background-color: var(--cosem-form-blue);
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.form-page {
    max-width: 700px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 32px;
}

.form-logo-bar {
    background: #fff;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-logo {
    max-height: 100px;
    max-width: 100%;
}

.form-content {
    padding: 20px 16px 32px;
}

.form-title {
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-subtitle {
    color: #fff;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.form-text,
.form-content label,
.form-content p,
.form-content li {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-content a {
    color: var(--cosem-form-orange);
    font-weight: 600;
}

.form-content hr {
    border-color: rgba(255, 255, 255, 0.35);
    opacity: 1;
}

.form-input,
.form-select {
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: 1.25rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
}

.form-radio-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.btn-cosem {
    background-color: var(--cosem-form-blue);
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.25rem;
    padding: 0.6rem 1.5rem;
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 1rem auto 0;
}

.btn-cosem:hover,
.btn-cosem:focus {
    background-color: #125eb0;
    color: #fff;
}

.btn-cosem:disabled {
    opacity: 0.55;
}

.btn-cosem-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-cosem-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.diverror {
    color: #ffb3b5;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 1.25rem;
}

.scrollable-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 10px;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.08);
}

.scrollable-list ul {
    margin: 0;
    padding-left: 1.25rem;
}

.medicamento-group {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.medicamento-group:last-child {
    border-bottom: none;
}

.action-button {
    width: 100%;
    margin-top: 0.5rem;
}

.confirm-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.confirm-container .btn-cosem {
    width: auto;
    min-width: 140px;
    margin: 0;
}

.confirm-container--principal {
    flex-wrap: nowrap;
    justify-content: stretch;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.confirm-container--principal .confirm-btn-secondary {
    flex: 0 0 130px;
    min-width: 130px;
}

.confirm-container--principal .confirm-btn-primary {
    flex: 1 1 auto;
    min-width: 0;
}

.fin-container {
    background: #fff;
    color: #000;
    padding: 20px;
    border-radius: 8px;
    min-height: 420px;
    position: relative;
}

.fin-container p {
    color: #000;
}

.loading-wrap {
    padding: 25% 16px;
    text-align: center;
}

.loading-wrap img {
    width: 40%;
    max-width: 160px;
}

.loading-text {
    color: var(--cosem-form-blue);
    font-size: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.mantenimiento-aviso {
    color: #fff;
}

.mantenimiento-aviso strong {
    color: #fff;
}

.turnstile-wrap {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.modal-aviso-formulario .modal-header {
    border-bottom-color: rgba(24, 116, 209, 0.15);
}

.modal-aviso-formulario .modal-title {
    color: var(--cosem-form-blue);
    font-weight: 600;
}

.modal-aviso-formulario .modal-body {
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-aviso-formulario .modal-footer {
    border-top-color: rgba(24, 116, 209, 0.15);
    justify-content: center;
}

.modal-aviso-formulario-btn {
    width: auto;
    min-width: 160px;
    margin: 0;
}

.modal-confirmar-salir-footer .modal-aviso-formulario-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 200px;
    height: 3rem;
    padding: 0 1rem;
    font-size: 1rem;
    line-height: 1;
    border-width: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.form-submit-loader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(24, 116, 209, 0.92);
}

.form-submit-loader.is-visible {
    display: flex;
}

.form-submit-loader-box {
    text-align: center;
    max-width: 320px;
}

.form-submit-loader-spinner {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: #fff;
}

.form-submit-loader-text {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 500;
    margin: 1.25rem 0 0;
    line-height: 1.4;
}

@media (min-width: 576px) {
    .form-fecha-row {
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }

    .form-fecha-row select {
        min-width: 90px;
    }
}
