/* CONTENEDOR PRINCIPAL */
.ci-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 20px auto;
    padding: 28px;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    box-shadow: 0 18px 45px rgba(15,23,42,0.12);
    border: 1px solid #27226C;
    box-sizing: border-box;
    text-align: left;
}

/* TÍTULO */
.ci-wrapper h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 650;
    color: #27226C;
}

/* FILAS DEL FORMULARIO */
#ci-form .ci-row {
    margin-bottom: 16px;
}

.ci-row-inline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ci-row-inline > div {
    flex: 1 1 0;
    min-width: 200px;
}

/* LABELS E INPUTS */
#ci-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 14px;
    color: #111827;
}

#ci-form input,
#ci-form select,
#ci-form textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f9fafb;
    color: #111827;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

#ci-form input:focus,
#ci-form select:focus,
#ci-form textarea:focus {
    border-color: #27226C;
    box-shadow: 0 0 0 1px rgba(39,34,108,0.35);
    background: #ffffff;
}

/* PRIVACIDAD: texto arriba, checkbox debajo */
.ci-privacidad-top {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px; /* separación mínima */
    width: 100%;
    text-align: left;
}

.ci-privacidad-top-texto {
    display: block;
    line-height: 1.3;
    white-space: normal;
}

.ci-privacidad-top a {
    color: #27226C;
    text-decoration: underline;
}

.ci-privacidad-top input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* BOTÓN */
#ci-enviar {
    margin-top: 12px;
    padding: 12px 22px;
    border-radius: 999px;
    border: none;
    background: #BBA53D;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: filter 0.12s ease, transform 0.12s ease;
    text-align: left;
}

#ci-enviar:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

#ci-enviar:active {
    filter: brightness(0.97);
    transform: translateY(0);
}

/* MENSAJE DE CONFIRMACIÓN */
#ci-mensaje {
    margin-top: 16px;
    font-size: 14px;
    color: #166534;
}

/* RESPONSIVE */
@media (max-width: 640px) {

    .ci-wrapper {
        padding: 20px 16px;
        max-width: 100%;
        text-align: left;
    }

    .ci-row-inline {
        flex-direction: column;
    }

    .ci-privacidad-top-texto {
        white-space: normal;
    }
}
