.formx-wrapper {
    font-family: Helvetica, sans-serif;

    /* background-color: #000; */
    color: #ffffff;
    background-color: #000000;
}

.formx-container {
    max-width: 800px;
    margin: auto;
    padding: 2rem;
}

.formx-info {
    display: flex;
    margin-bottom: 2rem;
    justify-content: space-between;
    animation: formx-fadeInUp 1s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.formx-col {
    flex: 1 1 45%;
}

.formx-col h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 60px;
}

.formx-details {
    font-size: 1rem;
    color: #bbb;
    line-height: 24.5px;
}

.formx-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 60px;
    animation: formx-fadeInUp 1s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.formx-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: formx-fadeInUp 1s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.formx-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.formx-row input {
    flex: 1 1 100%;
}

.formx-group input,
.formx-group textarea {
    background: transparent;
    border-bottom: 0.5px solid white;
    padding: 0.5rem 0;
    color: #bbbbbb;
    font-size: 0.9rem;
    width: 100%;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: border-bottom 0.3s ease, color 0.3s ease;
}

.formx-group input::placeholder,
.formx-group textarea::placeholder {
    color: #888;
    transition: color 0.3s ease;
}

.formx-group input:focus,
.formx-group textarea:focus {
    outline: none;
    border-bottom: 2px solid white;
    color: #fff;
}

.formx-group input:focus::placeholder,
.formx-group textarea:focus::placeholder {
    color: #666;
}

input[type="submit"] {
    background-color: white;
    color: black;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    font-weight: bold;
    align-self: flex-start;
    margin-top: 1rem;
    transition: background 0.3s ease;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #ddd;
}

.formx-warning {
    color: red;
    font-size: 0.9rem;
    margin-top: 10px;
}

.formx-success {
    display: none;
    color: limegreen;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.formx-wrapper a {
    text-decoration: none;
    color: #a1a1a1;
    font-size: 1rem;
}

.formx-wrapper b {
    text-decoration: none;
    color: #bbbbbb;
    font-size: 1rem;
}

.formx-wrapper div {
    line-height: 30px;
    font-size: 1rem;
}

.btn-form-tel {
    color: #bbbbbb;
}

@media (max-width: 768px) {
    .formx-info {
        flex-direction: column;
    }

    .formx-title {
        font-size: 2rem;
        text-align: left;
        line-height: 1.4;
    }

    .formx-col h2 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .formx-row {
        flex-direction: column;
    }

    input[type="submit"] {
        align-self: center;
    }
}

@keyframes formx-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ============================================================
   📌 TEXTAREA - AUTO-EXPAND CON LÍMITE
   ============================================================ */
textarea#message {
    min-height: 80px;        /* Altura mínima */
    max-height: 300px;       /* Altura máxima antes del scroll */
    overflow-y: auto;        /* Scroll vertical cuando sea necesario */
    resize: vertical;        /* Permite al usuario estirar manualmente */
    width: 100%;             /* Ancho completo */
    box-sizing: border-box;  /* Para que el padding no afecte el ancho */
}

