/* Contact Module - Standardized Styles */

.nexlotech-contact {
    position: relative;
    isolation: isolate;
}

/* --- Style 1: Split Content --- */
.nexlotech-contact--style-1 .nexlotech-contact__content {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Ensure the info grid stays at the bottom even if space-between fails */
.nexlotech-contact--style-1 .nexlotech-contact__content>.row:last-child {
    margin-top: auto;
}

.nexlotech-contact--style-1 .nexlotech-contact__form-col {
    height: 100%;
}

.nexlotech-contact__form-card {
    background-color: #ffffff;
    color: #212529;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    height: 100%;
}

/* Responsive Padding */
@media (max-width: 768px) {
    .nexlotech-contact__form-card {
        padding: 2rem;
    }
}

/* --- Form Styles (Scoped) --- */
.nexlotech-contact__form-wrapper input:not([type="submit"]):not([type="button"]),
.nexlotech-contact__form-wrapper textarea,
.nexlotech-contact__form-wrapper select {
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.nexlotech-contact__form-wrapper textarea {
    border-radius: 20px;
    resize: vertical;
}

.nexlotech-contact__form-wrapper input:focus,
.nexlotech-contact__form-wrapper textarea:focus {
    border-color: var(--bs-primary, #0d6efd);
    outline: 0;
    background-color: #ffffff;
}

.nexlotech-contact__form-wrapper .wpcf7-submit,
.nexlotech-contact__form-wrapper input[type="submit"] {
    width: 100%;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.nexlotech-contact__form-wrapper .wpcf7-submit:hover {
    opacity: 0.9;
}

/* CF7 Cleanup */
.nexlotech-contact__form-wrapper p {
    margin-bottom: 0;
}

.nexlotech-contact__form-wrapper .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1rem;
}

.nexlotech-contact__form-wrapper .wpcf7-not-valid-tip {
    font-size: 0.8rem;
    margin-top: -0.8rem;
    margin-bottom: 1rem;
}