/*
 * WordPress additions to the legacy CSS (custom.css stays verbatim):
 * Gravity Forms markup styled like the legacy forms, LTR languages, small WordPress-only bits.
 */

/* ---------- Gravity Forms in the legacy form markup (dtlaw-core/includes/forms.php rewrites the output into the
   legacy rows / columns / .field / .submit_button, so custom.css styles the forms; only Gravity Forms' own extras here) ---------- */
.dtl-form .gform_body, .dtl-form .ginput_container { margin: 0; padding: 0; }
.dtl-form .gfield { list-style: none; }
.dtl-form .gfield_label, .dtl-form .hidden_label .gfield_label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dtl-form .gform_hidden, .dtl-form .gform_validation_container, .dtl-form .gfield_visibility_hidden { display: none !important; }
.dtl-form .gform_footer input[type="hidden"] { display: none; }
.dtl-form .gfield_checkbox { list-style: none; margin: 0; padding: 0; }
.dtl-form .gfield_checkbox li { list-style: none; }
.dtl-form .gfield_checkbox label { display: inline; font-weight: normal; }
.validation_message, .gform_wrapper .validation_error { color: #c0392b; font-size: 14px; margin: 2px 0 6px; }
.gform_wrapper .validation_error { margin-bottom: 10px; }
.dtl-form .gfield_error input, .dtl-form .gfield_error textarea { outline: 1px solid #c0392b; }
.gform_confirmation_message { font-size: 18px; padding: 15px 0; font-weight: bold; }
.tofes_wrapper .gform_confirmation_message, .footer_form_section .gform_confirmation_message { color: #fff; }
.gform_ajax_spinner { display: none !important; }
/* #SideContactForm .submit_button:before (custom.css) → the side form */
.conect_quick .submit_button:before, .conect_article .submit_button:before { background: transparent linear-gradient(90deg, #316094 0%, #3971AE 48%, #316094 100%) 0% 0% no-repeat padding-box; }

/* Mobile footer form: the legacy form starts with 3 hidden inputs, so its .field:nth-child(2n+1) { float: left }
   (custom.css) hits the 2nd and 4th field; here the fields come first: same floats by position. */
@media only screen and (max-width:767px) {
	.footer_form_section .gform_fields .field:nth-child(2n+1) { float: right; }
	.footer_form_section .gform_fields .field:nth-child(2n) { float: left; }
}

/* ---------- Article / misc ---------- */
.dtl_share { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; }
.dtl_share a { font-size: 22px; color: #316094; }
.post_video iframe { max-width: 100%; }
.post_detail_content img, .about_page_content img { max-width: 100%; height: auto; }
.post_subtitle { font-size: 20px; }
.expertiseArea ul { padding: 0 18px 0 0; }
.search_group h2 { margin: 25px 0 10px; font-size: 24px; }
.event_hours td { padding: 5px 8px; border-bottom: 1px solid #eee; }
#left_sidebar { z-index: 5; }

/* ---------- LTR languages (en / ru / fr): legacy non-responsive-*.css + the RTL bits of custom.css ---------- */
html[dir="ltr"] body { direction: ltr; text-align: left; }
html[dir="ltr"] .text-right { text-align: left !important; }
html[dir="ltr"] .text-left { text-align: right !important; }
html[dir="ltr"] .footer_form .dtl-form .gfield { margin-left: 0; margin-right: 10px; }
html[dir="ltr"] .tofes_wrapper { text-align: left; }
html[dir="ltr"] .expertiseArea ul { padding: 0 0 0 18px; }

/* Newsletter popup (the live site's Responder embed): logo band, title, e-mail, consent, button. Hebrew on every language. */
#newsletter_popup .dtl-nl-box { width: 518px; max-width: 100%; margin: 0 auto; direction: rtl; text-align: right; background: #91b9ca; font-family: Arial, Helvetica, sans-serif; }
html[dir="ltr"] #newsletter_popup .dtl-nl-box { text-align: right; }
#newsletter_popup .dtl-nl-logo { background: #04151f; height: 173px; padding: 0 0 8px; text-align: center; }
#newsletter_popup .dtl-nl-logo img { display: block; width: 296px; max-width: 100%; height: auto; margin: 0 auto; }
#newsletter_popup .dtl-nl-title { height: 66px; padding: 15px 10px 0; color: #fff; font-family: 'Assistant', sans-serif; font-size: 28px; line-height: 1.2; text-align: center; }
#newsletter_popup .dtl-nl-body { padding: 3px 40px 30px; }
#newsletter_popup .gform_wrapper, #newsletter_popup form, #newsletter_popup .gform_body { margin: 0; padding: 0; }
#newsletter_popup .gform_fields { display: block; margin: 0; padding: 0; list-style: none; }
#newsletter_popup .gfield { margin: 0; padding: 0; width: auto; float: none; }
#newsletter_popup .gfield_label, #newsletter_popup .gform_validation_container, #newsletter_popup .gform_hidden, #newsletter_popup .gfield_visibility_hidden { display: none !important; }
#newsletter_popup .dtl-nl-email input { display: block; width: 100%; height: 51px; margin: 0; padding: 15px 30px; border: 1px solid #d6d6d6; border-radius: 24px; background: #fff; color: #000; font: 16px Arial, Helvetica, sans-serif; direction: rtl; text-align: right; box-sizing: border-box; outline: 0; }
#newsletter_popup .dtl-nl-consent { margin-top: 4px; }
#newsletter_popup .dtl-nl-email input::placeholder { color: #757575; opacity: 1; }
#newsletter_popup .dtl-nl-consent ul { margin: 0; padding: 0; list-style: none; }
#newsletter_popup .dtl-nl-consent li { margin: 0; padding: 0; overflow: hidden; font: 16px/19.2px Arial, Helvetica, sans-serif; }
#newsletter_popup .dtl-nl-consent input[type=checkbox] { float: right; width: 19px; height: 19px; margin: 0; padding: 0; accent-color: #316096; cursor: pointer; }
#newsletter_popup .dtl-nl-consent label { display: inline; margin: 0; padding: 0 5px 0 0; color: #000; font: 16px/19.2px Arial, Helvetica, sans-serif; text-align: right; cursor: pointer; }
#newsletter_popup .dtl-nl-footer { margin: 10px 0 0; padding: 0; }
#newsletter_popup .dtl-nl-submit input[type=submit], #newsletter_popup .dtl-nl-submit button { display: block; width: 100%; height: 52px; margin: 0; padding: 0 30px; border: 0; border-radius: 24px; background: #316096; color: #fff; font: bold 18px Arial, Helvetica, sans-serif; cursor: pointer; }
#newsletter_popup .dtl-nl-submit input[type=submit]:hover { background: #3971ae; }
#newsletter_popup .validation_message { color: #a00; font-size: 14px; padding-top: 2px; }
#newsletter_popup .validation_error { color: #a00; font-size: 14px; text-align: center; padding: 6px 0; }
#newsletter_popup .gform_confirmation_message { padding: 30px 0 10px; color: #000; font-size: 20px; text-align: center; }
#newsletter_popup .gform_ajax_spinner { display: none; }
@media (max-width: 767px) {
	#newsletter_popup { width: 92%; padding: 30px 0 0; top: 40px; }
	#newsletter_popup .dtl-nl-body { padding: 3px 20px 25px; }
	#newsletter_popup .dtl-nl-title { font-size: 24px; }
}
