/* ==========================================================================
   Contacto Form
   ========================================================================== */
.contacto-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch; /* Stretch items to ensure equal height columns */
}

.contacto-box {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 50px;
    box-shadow: none;
    height: 100%; /* Take full height of the parent grid cell */
    display: flex;
    flex-direction: column;
}

.contacto-title {
    font-size: 2.5rem;
    font-weight: 800 !important;
    margin: 0 0 40px 0;
    line-height: 1.15;
    font-family: var(--font-primary);
}

.gv-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow the form to take up all remaining space */
    height: 100%;
}

.gv-form .form-group {
    margin-bottom: 24px;
    position: relative;
    width: 100%;
}

.gv-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gv-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-dark);
    margin-bottom: 8px;
    font-weight: 700;
    font-family: var(--font-primary);
}

.gv-form .req-asterisk {
    color: red;
    margin-right: 2px;
    font-weight: 700;
}

.gv-form input, 
.gv-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: var(--color-white);
    color: var(--color-text-dark);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.gv-form input {
    height: 52px;
}

.gv-form textarea {
    height: 160px;
    resize: vertical;
}

.gv-form input:focus, 
.gv-form textarea:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(142, 198, 63, 0.15);
}

.gv-form input.error, 
.gv-form textarea.error {
    border-color: red;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.gv-form .error-msg {
    display: none;
    color: red;
    font-size: 0.8rem;
    margin-top: 5px;
    font-family: var(--font-primary);
}

.gv-form .form-submit {
    display: flex;
    justify-content: center;
    margin-top: auto; /* Push submit button to the bottom of the card */
    padding-top: 20px;
    width: 100%;
}

.btn-submit {
    background: var(--color-green);
    color: #102a1d;
    border: none;
    border-radius: 12px;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.btn-submit:hover {
    background-color: #7db334;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 198, 63, 0.3);
}

.btn-arrow-png {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-submit:hover .btn-arrow-png {
    transform: translateX(5px);
}

.form-feedback {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin-top: 15px;
    text-align: center;
    display: none;
}

.form-feedback.success { color: var(--color-green); }
.form-feedback.error { color: red; }

/* Contact info styles */
.contacto-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacto-lista li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-icon-png {
    display: block;
    flex-shrink: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    font-family: var(--font-primary);
}

.info-value {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
    font-family: var(--font-primary);
}

.info-actions {
    margin-top: auto; /* Push WhatsApp button to the bottom of the card */
    padding-top: 20px;
}

.whatsapp-btn {
    background: var(--color-green);
    color: #102a1d;
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #7db334;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 198, 63, 0.3);
}

.whatsapp-icon-png {
    flex-shrink: 0;
    display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: stretch;
    }
    .contacto-box {
        padding: 40px 30px;
        height: auto; /* Allow auto height on stacked cards on mobile */
    }
    .contacto-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    .gv-form .form-submit,
    .info-actions {
        margin-top: 20px; /* Reset auto margins on mobile */
    }
}

@media (max-width: 576px) {
    .gv-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contacto-box {
        padding: 30px 20px;
        border-radius: 20px;
    }
    .contacto-title {
        font-size: 1.8rem;
    }
}
