/* Armonía Formularios v1.0.0 */

.armf-wrap {
    max-width: 620px;
    margin: 0 auto;
}

.armf-form {
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(61,46,110,.09);
    font-family: inherit;
}

.armf-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.armf-field label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.armf-req {
    color: #C0392B;
    margin-left: 2px;
}

.armf-form input[type="text"],
.armf-form input[type="email"],
.armf-form input[type="tel"],
.armf-form select,
.armf-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid;
    border-radius: 7px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fdfcff;
    color: #2C2C2C;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.armf-form input:focus,
.armf-form select:focus,
.armf-form textarea:focus {
    border-color: #3D2E6E !important;
    box-shadow: 0 0 0 3px rgba(61,46,110,.12);
    background: #fff;
}

.armf-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233D2E6E' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.armf-form textarea {
    resize: vertical;
    min-height: 110px;
}

/* Checkbox RGPD */
.armf-check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

.armf-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: #3D2E6E;
    cursor: pointer;
}

.armf-check a {
    color: #3D2E6E;
    text-decoration: underline;
}

/* Botón */
.armf-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.armf-btn {
    padding: 13px 32px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    letter-spacing: 0.02em;
}

.armf-btn:hover {
    transform: translateY(-1px);
}
.armf-btn:active {
    transform: translateY(0);
}

.armf-spinner {
    font-size: 0.9rem;
    color: #888;
}

/* Mensaje de éxito / error */
.armf-msg {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.armf-msg.exito {
    background: #edfaf1;
    border-left: 4px solid #27ae60;
    color: #1e7e34;
}

.armf-msg.error {
    background: #fdf0f0;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

/* Responsive */
@media (max-width: 600px) {
    .armf-form {
        padding: 20px 16px;
    }
    .armf-btn {
        width: 100%;
        text-align: center;
    }
    .armf-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
