/* =============================================================================
   BotFlow Enterprise Contact Form — Dark Theme
   ============================================================================= */

/* Force dark background and white text on all wrapper elements */
body.bf-enterprise-page-body,
body.bf-enterprise-page-body #page,
body.bf-enterprise-page-body #content,
body.bf-enterprise-page-body .site-content,
body.bf-enterprise-page-body .site-main,
body.bf-enterprise-page-body .page-content,
body.bf-enterprise-page-body .entry-content {
    background: #050505 !important;
}

/* Override the body.page:not(.home) p/li/div rule from style.css */
body.bf-enterprise-page-body .bf-enterprise-page p,
body.bf-enterprise-page-body .bf-enterprise-page li,
body.bf-enterprise-page-body .bf-enterprise-page div,
body.bf-enterprise-page-body .bf-enterprise-page label,
body.bf-enterprise-page-body .bf-enterprise-page span,
body.bf-enterprise-page-body .bf-enterprise-page input,
body.bf-enterprise-page-body .bf-enterprise-page select,
body.bf-enterprise-page-body .bf-enterprise-page textarea {
    color: #FFFFFF !important;
}

/* Preserve placeholder and link tones */
body.bf-enterprise-page-body .bf-enterprise-form__field input::placeholder,
body.bf-enterprise-page-body .bf-enterprise-form__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
}

body.bf-enterprise-page-body .bf-enterprise-form__back {
    color: #B8B8B8 !important;
}

body.bf-enterprise-page-body .bf-enterprise-form__submit {
    color: #050505 !important;
}

.bf-enterprise-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #050505 0%, #0A0A0B 100%);
    color: #FFFFFF;
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
}

.bf-enterprise-page::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 212, 126, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bf-enterprise-page__container {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header */
.bf-enterprise-page__header {
    text-align: center;
    margin-bottom: 48px;
}

.bf-enterprise-page__badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 212, 126, 0.15) 0%, rgba(0, 212, 126, 0.05) 100%);
    border: 1px solid rgba(0, 212, 126, 0.3);
    color: #00D47E;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.bf-enterprise-page__title {
    font-family: 'Urbanist', system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 0 0 16px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #B8B8B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.bf-enterprise-page__subtitle {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    opacity: 1;
    margin: 0;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Form */
.bf-enterprise-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 36px;
}

.bf-enterprise-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bf-enterprise-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bf-enterprise-form__field--full {
    margin-bottom: 20px;
}

.bf-enterprise-form__field label {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #E0E0E0;
}

.bf-required {
    color: #00D47E;
}

.bf-enterprise-form__field input,
.bf-enterprise-form__field select,
.bf-enterprise-form__field textarea {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 15px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.bf-enterprise-form__field input::placeholder,
.bf-enterprise-form__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.bf-enterprise-form__field input:focus,
.bf-enterprise-form__field select:focus,
.bf-enterprise-form__field textarea:focus {
    border-color: rgba(0, 212, 126, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 212, 126, 0.1);
}

.bf-enterprise-form__field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23B8B8B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.bf-enterprise-form__field select option {
    background: #1a1a1a;
    color: #FFFFFF;
}

.bf-enterprise-form__field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Invalid state */
.bf-enterprise-form__field input:invalid:not(:placeholder-shown),
.bf-enterprise-form__field select:invalid:not([value=""]),
.bf-enterprise-form__field textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 100, 100, 0.4);
}

/* Actions */
.bf-enterprise-form__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.bf-enterprise-form__submit {
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00D47E 0%, #00B86B 100%);
    color: #050505;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 24px -8px rgba(0, 212, 126, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bf-enterprise-form__submit:hover {
    box-shadow: 0 12px 32px -8px rgba(0, 212, 126, 0.7);
    transform: translateY(-2px);
}

.bf-enterprise-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bf-enterprise-form__back {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    color: #B8B8B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bf-enterprise-form__back:hover {
    color: #00D47E;
}

/* Responsive */
@media (max-width: 680px) {
    .bf-enterprise-page {
        padding: 120px 16px 60px;
    }

    .bf-enterprise-form {
        padding: 28px 20px;
    }

    .bf-enterprise-form__row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ─── Hide Elementor content on this page ─── */
.page-template-page-solicitar-demo #content .entry-content > .elementor,
.page-template-page-solicitar-demo #content .entry-content > * {
    display: none;
}

/* Ensure our main shows above any Elementor remains */
.page-template-page-solicitar-demo .bf-enterprise-page {
    display: block;
}

/* Remove default WP spacing */
.page-template-page-solicitar-demo .site-main,
.page-template-page-solicitar-demo .page-content {
    padding: 0;
    margin: 0;
}
