/* ===== SECCIÓN CONTACTO MODERNA ===== */
.contact-section {
    width: 100%;
    padding: 60px 10%;
    box-sizing: border-box;
}

/* Contenedor central */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Header */
.contact-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #222;
}

.contact-header p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Formulario horizontal */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row input {
    flex: 1;
}

/* Inputs y textarea */
.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    outline: none;
    background-color: #fdfdfd;
    color: #333;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: none;
}


/* Placeholder estilizado */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
    font-weight: 600;
}

/* Focus */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #E67E22;
    box-shadow: 0 0 12px rgba(30, 144, 255, 0.2);
}

/* Checkbox compacto */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #555;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Botón centrado y moderno */
.btn-submit {
    padding: 14px 40px;
    background-color: #E67E22;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    align-self: center;
    max-width: 220px;
}

.btn-submit:hover {
    background-color: #733F11;
    transform: translateY(-2px);
}

#formMsg {
    margin-top: 15px;
    font-size: 0.9rem;
}

#formMsg.error {
    color: #c0392b;
}

#formMsg.success {
    color: #27ae60;
}

.success-msg {
    position: absolute;
    left: 5vh;
    top: 10vh;
    z-index: 15;
    background-color: #eafaf1;
    color: #1e8449;
    border: 1px solid #2ecc71;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
}

.error-msg {
    position: absolute;
    left: 5vh;
    top: 10vh;
    z-index: 15;
    background-color: #fdecea;
    color: #c0392b;
    border: 1px solid #e74c3c;
    padding: 12px 16px;
    border-radius: 6px;
    list-style: none;
    font-size: 0.9rem;
}

.error-msg li {
    margin-bottom: 4px;
}

.error-msg li::before {
    content: "⚠ ";
    font-weight: bold;
}

.success-msg,
.error-msg {
    animation: fadeSlideIn 0.6s ease forwards;
    opacity: 0;
}

/* Animación */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-section {
        padding: 50px 5%;
    }

    .contact-container {
        padding: 30px 20px;
    }

    .contact-header h2 {
        font-size: 1.7rem;
    }

    .contact-header p {
        font-size: 1rem;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .contact-header h2 {
        font-size: 1.5rem;
    }

    .contact-header p {
        font-size: 0.95rem;
    }

    .btn-submit {
        width: 100%;
    }
}