/* ==========================================================================
   Ver+ CRM — Formulario público de contacto
   Paleta: azul marino #001135 · dorado #d7c4a4 · fondo modal #0d1f3c
   Tipografía: Inter
   ========================================================================== */

.vermas-formulario-contacto {
    font-family: 'Inter', sans-serif;
    background: #0d1f3c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    color: #ffffff;
}

/* ── Título y subtítulo ──────────────────────────────── */
.vermas-form-titulo {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.vermas-form-subtitulo {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* ── Filas de campos (grid 2 columnas) ───────────────── */
.vermas-form-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .vermas-form-fila {
        grid-template-columns: 1fr;
    }
}

/* ── Campo individual ────────────────────────────────── */
.vermas-form-campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

/* Campos que no están en fila necesitan margen inferior */
.vermas-formulario-contacto > .vermas-form .vermas-form-campo {
    margin-bottom: 16px;
}

/* ── Labels ──────────────────────────────────────────── */
.vermas-form-campo label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.vermas-requerido {
    color: #d7c4a4;
}

/* ── Inputs, selects y textareas ─────────────────────── */
.vermas-form-campo input,
.vermas-form-campo select,
.vermas-form-campo textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.vermas-form-campo input::placeholder,
.vermas-form-campo textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.vermas-form-campo input:focus,
.vermas-form-campo select:focus,
.vermas-form-campo textarea:focus {
    border-color: rgba(215, 196, 164, 0.5);
}

/* Select: flecha personalizada */
.vermas-form-campo select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.vermas-form-campo select option {
    background: #0d1f3c;
    color: #ffffff;
}

/* Textarea */
.vermas-form-campo textarea {
    resize: none;
    min-height: 80px;
}

/* ── Campo con error ─────────────────────────────────── */
.vermas-form-campo.vermas-campo-error input,
.vermas-form-campo.vermas-campo-error select,
.vermas-form-campo.vermas-campo-error textarea {
    border-color: #e54d4d;
}

.vermas-campo-error-msg {
    font-size: 11px;
    color: #e54d4d;
    margin-top: 4px;
}

/* ── Botón de envío ──────────────────────────────────── */
.vermas-form-boton {
    display: block;
    width: 100%;
    padding: 14px;
    background: #d7c4a4;
    color: #241a06;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    line-height: 1;
    margin-top: 8px;
}

.vermas-form-boton:hover {
    opacity: 0.9;
}

.vermas-form-boton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Mensaje de respuesta ────────────────────────────── */
.vermas-form-respuesta {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.vermas-form-respuesta.vermas-respuesta-exito {
    background: rgba(0, 163, 42, 0.15);
    color: #6ddf8b;
    border: 1px solid rgba(0, 163, 42, 0.3);
}

.vermas-form-respuesta.vermas-respuesta-error {
    background: rgba(229, 77, 77, 0.15);
    color: #e54d4d;
    border: 1px solid rgba(229, 77, 77, 0.3);
}
