/* ===== CONTACT PAGE STYLES ===== */
/* Nota: Navbar y Footer están en common.css */

:root {
    --havana-red: #D42E12;
    --havana-black: #000000;
    --havana-white: #ffffff;
    --havana-cream: #F0EBE0;
    --havana-gray: #D9D9D9;
}

.contact-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 200px 5%;
    background-image: url('../assets/La habana Fondo 2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.contact-form-container {
    position: relative;
    z-index: 2;
    background: var(--havana-cream);
    width: 100%;
    max-width: 800px;
    padding: 60px 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.form-logo {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
}

.contact-title {
    font-family: 'Druk Wide', sans-serif;
    font-size: 48px;
    color: var(--havana-red);
    font-weight: 900;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.contact-form label {
    display: block;
    font-family: 'Rotis Sans Serif', sans-serif;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: var(--havana-gray);
    font-family: 'Rotis Sans Serif', sans-serif;
    font-size: 16px;
    color: #000;
    box-sizing: border-box;
}

/* Captcha styles */
.contact-form .captcha-image {
    margin-bottom: 10px;
    display: block;
}

.contact-form .captcha-image img {
    border: 2px solid var(--havana-gray);
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.contact-form #captcha {
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: var(--havana-gray);
    font-family: 'Rotis Sans Serif', sans-serif;
    font-size: 16px;
    color: #000;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-form textarea {
    resize: vertical;
}

/* Checkbox estilizado */
.form-consent {
    margin: 30px 0;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-family: 'Rotis Sans Serif', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--havana-gray);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--havana-red);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.privacy-text {
    font-family: 'Rotis Sans Serif', sans-serif;
    font-size: 12px;
    color: #666;
    margin-left: 35px;
}

.submit-btn {
    background: var(--havana-red);
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-family: 'Druk Text', sans-serif;
    font-size: 28px;
    font-weight: 900;
    font-style: italic;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    display: block;
    margin: 40px auto 0;
    width: auto;
    text-transform: uppercase;
}

.submit-btn .btn-text,
.submit-btn .btn-loading {
    font-family: 'Druk Text', sans-serif;
    font-weight: 900;
    font-style: italic;
}

.submit-btn:hover:not(:disabled) {
    background: #000;
    transform: scale(1.05);
}

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

.contact-disclaimer {
    margin-top: 40px;
    font-family: 'Rotis Sans Serif', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    text-align: left;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.contact-disclaimer a {
    color: var(--havana-red);
    text-decoration: underline;
}

.contact-disclaimer p {
    margin-bottom: 15px;
}

/* Errores del formulario */
.contact-form .form-error-message {
    color: var(--havana-red);
    font-family: 'Rotis Sans Serif', sans-serif;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(212, 46, 18, 0.1);
    border-left: 3px solid var(--havana-red);
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 30px;
    border-radius: 4px;
    font-family: 'Rotis Sans Serif', sans-serif;
    font-size: 16px;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.flash-success {
    background-color: #4CAF50;
    color: white;
}

.flash-error {
    background-color: var(--havana-red);
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 140px 5%;
    }

    .contact-form-container {
        padding: 40px 30px;
    }

    .form-row {
        flex-direction: column;
        gap: 25px;
    }

    .contact-title {
        font-size: 36px;
    }

    .submit-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 24px;
    }
}
