/* Estilos para el título (igual que cupones) */
.title-large {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.text-center {
    text-align: center;
}

.subtitle {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
}

/* Estilos para centrar la introducción (igual que calendario) */
.intro-centered {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos para separar título y párrafo (igual que calendario) */
.top-content {
    text-align: center;
    margin-bottom: 20px;
    justify-content: center;
    display: flex;
}

.intro-content {
    margin-bottom: 20px;
}

/* Contact section styling */
.contact-section-wrapper {
    display: flex;
    align-items: stretch;
    gap: 30px;
    margin: 30px 0;
    min-height: calc(100vh - 200px); /* Subtract header/footer height */
}

/* Add title styling to match site color scheme */
.title.contact {
    color: #DE826B;
}

.contact-image-left {
    flex: 1;
    max-width: 50%;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.contact-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.contact-image-left img:hover {
    transform: scale(1.05);
}

.contact-form-container {
    flex: 1;
    max-width: 50%;
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.contact-form-container h2 {
    color: #DE826B;
    margin-bottom: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #DE826B;
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.contact-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    flex-basis: 48%;
}

.contact-info-icon {
    width: 36px;
    height: 36px;
    background-color: #f8f1ef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.contact-info-icon i {
    color: #DE826B;
    font-size: 18px;
}

.contact-info-text h4 {
    margin: 0 0 3px;
    color: #333;
    font-size: 0.9rem;
}

.contact-info-text p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* Message styles */
.message-container {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.message-container.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-container.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal styles */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.contact-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    text-align: center;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.contact-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.contact-modal-close:hover {
    color: #DE826B;
}

.contact-modal-body {
    padding: 20px 0;
}

.contact-modal-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.contact-modal-body h3 {
    color: #DE826B;
    margin-bottom: 15px;
}

.contact-modal-body p {
    margin-bottom: 25px;
    color: #666;
}

/* Responsive design */
@media (max-width: 992px) {
    .contact-section-wrapper {
        flex-direction: column;
        min-height: auto;
    }
    
    .contact-image-left, .contact-form-container {
        max-width: 100%;
    }
    
    .contact-image-left {
        height: 350px;
    }
    
    .contact-image-left img {
        object-fit: cover;
        height: 100%;
    }
}

@media (max-width: 576px) {
    .contact-image-left {
        height: 200px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .contact-info-item {
        margin-bottom: 15px;
    }
}
