.neodove-form-wrapper {
    max-width: 460px;
    margin: 0 auto;
}

.neodove-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.neodove-field {
    position: relative;
}

.neodove-field input:not([type="checkbox"]):not([type="radio"]),
.neodove-field select {
    width: 100%;
    padding: 11px 16px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    color: #888;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
    outline: none;
    font-weight: 400;
}

.neodove-field input:not([type="checkbox"]):not([type="radio"]):focus,
.neodove-field select:focus {
    border-color: #6a1b9a;
    background: #fff;
}

.neodove-field input::placeholder {
    color: #999;
}

.neodove-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.neodove-field.has-error input,
.neodove-field.has-error select {
    border-color: #e53935;
    background: #fff5f5;
}

.neodove-error {
    color: #e53935;
    font-size: 13px;
    margin-top: 4px;
    min-height: 16px;
    display: none;
}

.neodove-field.has-error .neodove-error {
    display: block;
}

.neodove-consent {
    font-size: 14px;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.neodove-submit {
    background: #fbb900;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 56px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.15s, opacity 0.15s;
    font-family: inherit;
    display: inline-block;
    align-self: center;
    width: auto;
    min-width: 220px;
    margin-top: 6px;
}

.neodove-submit:hover {
    background: #f0a800;
}

.neodove-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.neodove-message {
    margin-top: 10px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.neodove-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    display: block;
}

.neodove-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    display: block;
}

/* Blog sidebar variant */
.neodove-blog-sidebar {
    background: #e4e4e4;
    padding: 10px;
    border-radius: 5px;
}

.neodove-blog-sidebar .neodove-form {
    gap: 6px;
}

.neodove-blog-sidebar .neodove-field input,
.neodove-blog-sidebar .neodove-field select {
    background: #ffffff;
    border-color: #d8d3cd;
    padding: 5px;
    font-size: 14px;
}

.neodove-recaptcha {
    margin: 8px 0;
}

.neodove-consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #888;
    line-height: 1.4;
    cursor: pointer;
    font-weight: 400;
    margin: 2px 0;
}

.neodove-consent-checkbox input[type="checkbox"] {
    margin: 4px 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

.neodove-consent-checkbox span {
    flex: 1;
}

.neodove-field-consent.has-error .neodove-consent-checkbox {
    color: #e53935;
}

.neodove-field-consent.has-error input[type="checkbox"] {
    outline: 2px solid #e53935;
}

/* Request Demo Page form (#13) variant — matches Fluent Form CSS exactly */
[data-form-id="request_demo_page"] .neodove-form {
    gap: 14px;
}

[data-form-id="request_demo_page"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="request_demo_page"] .neodove-field select {
    background-color: #f3f3f3 !important;
    border: 1px solid #f3f3f3 !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    color: #666 !important;
    font-size: 14px;
}

[data-form-id="request_demo_page"] .neodove-field select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
    padding-right: 40px !important;
}

/* Make empty/default option look like placeholder (lighter gray) */
[data-form-id="request_demo_page"] .neodove-field select:required:invalid {
    color: #999 !important;
}

[data-form-id="request_demo_page"] .neodove-field select option {
    color: #666;
}

[data-form-id="request_demo_page"] .neodove-field select option[value=""] {
    color: #999;
}

/* Request Demo Industry Pages form (#28) variant — tighter input sizing */
[data-form-id="request_demo_industry"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="request_demo_industry"] .neodove-field select {
    padding: 8px 16px !important;
    font-size: 14px;
    line-height: 1.4;
}

/* Landing Pages form (#46) variant — tighter input sizing */
[data-form-id="landing_pages_form"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="landing_pages_form"] .neodove-field select {
    padding: 8px 16px !important;
}

/* Popup forms (#41 popup_demo, #56 exit_intent_popup) — shared styling
   pill inputs + purple pill button, on white card */
.neodove-form-wrapper[data-form-id="popup_demo"],
.neodove-form-wrapper[data-form-id="exit_intent_popup"],
.neodove-form-wrapper[data-form-id="popup_all_page"],
.neodove-form-wrapper[data-form-id="popup_short_demo"],
.neodove-form-wrapper[data-form-id="popup_single_blog"],
.neodove-form-wrapper[data-form-id="popup_home_auto_load_v1"] {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 26px;
    max-width: 100%;
}

[data-form-id="popup_demo"] .neodove-form,
[data-form-id="exit_intent_popup"] .neodove-form,
[data-form-id="popup_all_page"] .neodove-form,
[data-form-id="popup_short_demo"] .neodove-form,
[data-form-id="popup_single_blog"] .neodove-form,
[data-form-id="popup_home_auto_load_v1"] .neodove-form {
    gap: 10px;
}

[data-form-id="popup_demo"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="popup_demo"] .neodove-field select,
[data-form-id="exit_intent_popup"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="exit_intent_popup"] .neodove-field select,
[data-form-id="popup_all_page"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="popup_all_page"] .neodove-field select,
[data-form-id="popup_short_demo"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="popup_short_demo"] .neodove-field select,
[data-form-id="popup_single_blog"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="popup_single_blog"] .neodove-field select,
[data-form-id="popup_home_auto_load_v1"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="popup_home_auto_load_v1"] .neodove-field select {
    background: #ffffff !important;
    border: 1px solid #d8d3cd !important;
    border-radius: 20px !important;
    padding: 7px 16px 7px !important;
    height: 37px !important;
    font-size: 14px;
    color: #666 !important;
    box-sizing: border-box;
}

[data-form-id="popup_demo"] .neodove-field input:not([type="checkbox"]):not([type="radio"]):focus,
[data-form-id="popup_demo"] .neodove-field select:focus,
[data-form-id="exit_intent_popup"] .neodove-field input:not([type="checkbox"]):not([type="radio"]):focus,
[data-form-id="exit_intent_popup"] .neodove-field select:focus,
[data-form-id="popup_all_page"] .neodove-field input:not([type="checkbox"]):not([type="radio"]):focus,
[data-form-id="popup_all_page"] .neodove-field select:focus,
[data-form-id="popup_short_demo"] .neodove-field input:not([type="checkbox"]):not([type="radio"]):focus,
[data-form-id="popup_short_demo"] .neodove-field select:focus,
[data-form-id="popup_single_blog"] .neodove-field input:not([type="checkbox"]):not([type="radio"]):focus,
[data-form-id="popup_single_blog"] .neodove-field select:focus,
[data-form-id="popup_home_auto_load_v1"] .neodove-field input:not([type="checkbox"]):not([type="radio"]):focus,
[data-form-id="popup_home_auto_load_v1"] .neodove-field select:focus {
    border-color: #763ABB !important;
    background: #fff !important;
}

[data-form-id="popup_demo"] .neodove-field select,
[data-form-id="exit_intent_popup"] .neodove-field select,
[data-form-id="popup_all_page"] .neodove-field select,
[data-form-id="popup_short_demo"] .neodove-field select,
[data-form-id="popup_single_blog"] .neodove-field select,
[data-form-id="popup_home_auto_load_v1"] .neodove-field select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px !important;
    padding-right: 38px !important;
}

[data-form-id="popup_demo"] .neodove-consent,
[data-form-id="exit_intent_popup"] .neodove-consent,
[data-form-id="popup_all_page"] .neodove-consent,
[data-form-id="popup_short_demo"] .neodove-consent,
[data-form-id="popup_single_blog"] .neodove-consent,
[data-form-id="popup_home_auto_load_v1"] .neodove-consent {
    color: #888;
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0 4px;
}

[data-form-id="popup_demo"] .neodove-submit,
[data-form-id="exit_intent_popup"] .neodove-submit,
[data-form-id="popup_all_page"] .neodove-submit,
[data-form-id="popup_short_demo"] .neodove-submit,
[data-form-id="popup_single_blog"] .neodove-submit,
[data-form-id="popup_home_auto_load_v1"] .neodove-submit {
    background: #763ABB !important;
    color: #fff !important;
    border-radius: 28px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 24px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-form-id="popup_demo"] .neodove-submit:hover,
[data-form-id="exit_intent_popup"] .neodove-submit:hover,
[data-form-id="popup_all_page"] .neodove-submit:hover,
[data-form-id="popup_short_demo"] .neodove-submit:hover,
[data-form-id="popup_single_blog"] .neodove-submit:hover,
[data-form-id="popup_home_auto_load_v1"] .neodove-submit:hover {
    background: #6429a3 !important;
}

/* Blog CTA Download variant (#18-#21) — stacked phone above button, Fluent Forms blue */
.neodove-blog-cta {
    max-width: 100%;
    margin: 18px 0;
}

.neodove-blog-cta .neodove-form {
    gap: 14px;
    align-items: flex-start;
}

.neodove-blog-cta .neodove-field {
    width: 100%;
}

.neodove-blog-cta .neodove-field input {
    background: #ffffff !important;
    border: 1px solid #d8d3cd !important;
    border-radius: 6px !important;
    padding: 12px 16px !important;
    height: 48px !important;
    font-size: 15px;
    color: #333 !important;
    box-sizing: border-box;
    width: 100%;
}

.neodove-blog-cta .neodove-submit {
    background: #1a7efb !important;
    color: #ffffff !important;
    border: 1px solid #1a7efb !important;
    border-radius: 6px !important;
    padding: 10px 22px !important;
    min-width: 0 !important;
    width: auto !important;
    align-self: flex-start;
    margin-top: 0;
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.neodove-blog-cta .neodove-submit:hover {
    background: #ffffff !important;
    color: #1a7efb !important;
}

/* Blog CTA - Request Demo (#16) — embedded on a dark purple section, so the
   form uses transparent inputs with a subtle border and a white pill button
   with purple text. */
[data-form-id="blog_cta_request_demo"] .neodove-form {
    gap: 8px;
}

[data-form-id="blog_cta_request_demo"] .neodove-field input {
    background: transparent !important;
    border: 1px solid #bebebe96 !important;
    color: #ffffff !important;
}

[data-form-id="blog_cta_request_demo"] .neodove-field input::placeholder {
    color: #c9c0d6 !important;
}

[data-form-id="blog_cta_request_demo"] .neodove-submit {
    background: #ffffff !important;
    color: #4a1772 !important;
    border: 1px solid #ffffff !important;
}

[data-form-id="blog_cta_request_demo"] .neodove-submit:hover {
    background: #f2eef7 !important;
    color: #4a1772 !important;
}

/* Request Demo Case Study Page Form (#57) — same template as contact_us,
   tighter gap, full-width dark-navy pill button, and a forced select arrow
   (theme strips background-image off selects on these pages). */
[data-form-id="request_demo_case_study"] .neodove-form {
    gap: 8px;
}

[data-form-id="request_demo_case_study"] .neodove-field select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
    padding-right: 40px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

[data-form-id="request_demo_case_study"] .neodove-submit {
    background: #152048 !important;
    color: #ffffff !important;
    border: 1px solid #152048 !important;
    border-radius: 32px !important;
    width: 100% !important;
    min-width: 0 !important;
}

[data-form-id="request_demo_case_study"] .neodove-submit:hover {
    background: #ffffff !important;
    color: #152048 !important;
}

/* Lead Management Bottom Form (#52) — pill inputs (transparent bg) +
   full-width purple submit. Overrides the theme's pink outline button. */
[data-form-id="lead_mgmt_bottom"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="lead_mgmt_bottom"] .neodove-field select {
    background: transparent !important;
    border: 1px solid #c5c5c5 !important;
    border-radius: 30px !important;
    padding: 12px 22px !important;
    height: 50px !important;
}

[data-form-id="lead_mgmt_bottom"] .neodove-field select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 20px !important;
    padding-right: 44px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

[data-form-id="lead_mgmt_bottom"] .neodove-submit {
    background: #4a1772 !important;
    color: #ffffff !important;
    border: 1px solid #4a1772 !important;
    border-radius: 30px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px 24px !important;
}

[data-form-id="lead_mgmt_bottom"] .neodove-submit:hover {
    background: #5e1d8e !important;
    color: #ffffff !important;
    border: 1px solid #5e1d8e !important;
}

/* Request Demo Feature Pages (#27) — same template as contact_us, but pages
   carry the theme override that strips the select arrow and renders the
   submit as a pink outline. Force tighter gap, yellow button, and the arrow. */
[data-form-id="request_demo_feature_pages"] .neodove-form {
    gap: 8px;
}

[data-form-id="request_demo_feature_pages"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="request_demo_feature_pages"] .neodove-field select {
    padding: 8px 16px !important;
    font-size: 14px;
}

[data-form-id="request_demo_feature_pages"] .neodove-field select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
    padding-right: 40px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

[data-form-id="request_demo_feature_pages"] .neodove-submit {
    background: #fbb900 !important;
    color: #1a1a1a !important;
    border: none !important;
}

[data-form-id="request_demo_feature_pages"] .neodove-submit:hover {
    background: #f0a800 !important;
    color: #1a1a1a !important;
    border: none !important;
}

/* Request Demo Integration Pages (#29) — same template as contact_us but with
   tighter field spacing, smaller padding, yellow button, and a forced select
   arrow (the theme's stylesheet strips background-image off selects on
   /integrations/* pages). */
[data-form-id="request_demo_integration"] .neodove-form {
    gap: 8px;
}

[data-form-id="request_demo_integration"] .neodove-field input:not([type="checkbox"]):not([type="radio"]),
[data-form-id="request_demo_integration"] .neodove-field select {
    padding: 8px 16px !important;
    font-size: 14px;
}

[data-form-id="request_demo_integration"] .neodove-field select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 20px !important;
    padding-right: 40px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

[data-form-id="request_demo_integration"] .neodove-submit {
    background: #fbb900 !important;
    color: #1a1a1a !important;
    border: none !important;
}

[data-form-id="request_demo_integration"] .neodove-submit:hover {
    background: #f0a800 !important;
    color: #1a1a1a !important;
    border: none !important;
}

[data-form-id="request_demo_page"] .neodove-consent-checkbox {
    color: #b1b1b1;
    font-size: 13px;
    line-height: normal;
    font-weight: 400;
    margin: 0;
}

.neodove-submit-purple {
    background: #5e1d8e !important;
    color: #fff !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px 24px !important;
}

.neodove-submit-purple:hover {
    background: #4a1772 !important;
}
