/* =============================================
   CCESDN Contact Form — Estilos
   Coincide con el diseño de la imagen (AMCHAMDR)
   ============================================= */

.ccesdn-cf-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif;
}

/* Tarjeta blanca del formulario */
.ccesdn-cf-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 32px 36px 36px;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.10);
}

/* Título */
.ccesdn-cf-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1e2a3a;
    margin: 0 0 24px;
    padding: 0;
    border: none;
}

/* Fila de dos columnas */
.ccesdn-cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Campo individual */
.ccesdn-cf-field {
    display: flex;
    flex-direction: column;
}

.ccesdn-cf-full {
    width: 100%;
    margin-bottom: 12px;
}

/* Input y textarea */
.ccesdn-cf-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d9e0;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #1e2a3a;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.ccesdn-cf-input::placeholder {
    color: #a0aec0;
    font-size: 13.5px;
}

.ccesdn-cf-input:focus {
    border-color: #0a2558;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 37, 88, 0.08);
}

.ccesdn-cf-input.error {
    border-color: #c1202a;
    box-shadow: 0 0 0 3px rgba(193, 32, 42, 0.08);
}

.ccesdn-cf-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Fila del botón */
.ccesdn-cf-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Botón enviar */
.ccesdn-cf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0a2558;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 13px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    min-width: 180px;
}

.ccesdn-cf-btn:hover:not(:disabled) {
    background: #c1202a;
    transform: translateY(-1px);
}

.ccesdn-cf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ccesdn-cf-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

/* Alertas */
.ccesdn-cf-alert {
    padding: 13px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    margin-bottom: 20px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ccesdn-cf-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.ccesdn-cf-success::before {
    content: '✅';
    flex-shrink: 0;
}

.ccesdn-cf-error {
    background: #fff1f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.ccesdn-cf-error::before {
    content: '⚠️';
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .ccesdn-cf-card {
        padding: 24px 20px 28px;
    }

    .ccesdn-cf-row {
        grid-template-columns: 1fr;
    }

    .ccesdn-cf-submit-row {
        justify-content: stretch;
    }

    .ccesdn-cf-btn {
        width: 100%;
    }
}
