.contact-container {
    font-family: 'Montserrat', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    color: #333;
    margin-top: 80px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    color: #39524F;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.contact-intro {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.form-input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f9f9f9;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #5a9b94;
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(90, 155, 148, 0.15);
}

.form-input:hover {
    background-color: white;
    border-color: #bbb;
}

.code {
    max-width: 100px;
    flex: 0 0 100px;
}

.direccion {
    flex: 2;
    min-width: 300px;
}

.form-textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    min-height: 180px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-textarea:focus {
    border-color: #5a9b94;
    outline: none;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(90, 155, 148, 0.15);
}

.form-textarea:hover {
    background-color: white;
    border-color: #bbb;
}

.submit-container {
    text-align: center;
    margin-top: 15px;
}

.submit-btn {
    background-color: #39524F;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.submit-btn:hover {
    background-color: #5a9b94;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
    transform: translateY(0);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2339524F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}


.g-recaptcha {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #39524F 0%, #5a9b94 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-modal {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close-modal:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px 25px;
    text-align: center;
}

.modal-icon {
    font-size: 48px;
    color: #39524F;
    margin-bottom: 20px;
}

.modal-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.modal-footer {
    padding: 20px 25px;
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.modal-btn {
    background-color: #39524F;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.modal-btn:hover {
    background-color: #5a9b94;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.g-recaptcha {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left top;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 25px 20px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: left top;
    }
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left top;
    }
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: left top;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 30px 15px;
    }

    .contact-title {
        font-size: 30px;
    }

    .contact-intro {
        font-size: 16px;
        padding: 0 10px;
    }

    .contact-form {
        padding: 30px;
    }

    .form-input {
        min-width: 100%;
    }

    .code {
        max-width: 80px;
        flex: 0 0 80px;
    }

    .direccion {
        min-width: 100%;
    }

    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}