/*
 * Webinar landing (/webinar/), page-webinar.php. Loaded only on that page.
 *
 *   1. The burning-room motion (flames, embers, smoke, mug steam), with the
 *      design's keyframes renamed wb* so nothing collides with the globals.
 *   2. Hovers and the FAQ +/- icon (native <details>).
 *   3. Gravity Forms 8 restyled to the design's registration card.
 *   4. Responsive: the design's own stack at <=1179 and dog scale at <=560,
 *      plus the standard tablet/phone gutters.
 */

/* 1. Motion */
@keyframes wbFlick { 0%, 100% { transform: scaleY(1) skewX(0deg); } 25% { transform: scaleY(1.07) skewX(-2.5deg); } 50% { transform: scaleY(0.95) skewX(2deg); } 75% { transform: scaleY(1.04) skewX(-1deg); } }
@keyframes wbSmokeRight { 0% { transform: translateX(-7%); } 100% { transform: translateX(7%); } }
@keyframes wbSmokeLeft { 0% { transform: translateX(1.5%); } 100% { transform: translateX(-1.5%); } }
@keyframes wbEmber { 0% { transform: translateY(0) scale(1); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-140px) scale(0.4); opacity: 0; } }
@keyframes wbSteam { 0% { opacity: 0; transform: translateY(6px) scaleY(0.8); } 25% { opacity: 0.8; } 70% { opacity: 0.45; } 100% { opacity: 0; transform: translateY(-14px) scaleY(1.15); } }
.wb-steam { transform-box: fill-box; transform-origin: 50% 100%; animation: wbSteam 2.6s ease-out infinite; }
.wb-steam-2 { animation-delay: 1.3s; }
@media (prefers-reduced-motion: reduce) {
	.wb-hero [data-anim] { animation: none !important; }
	.wb-steam { animation: none; opacity: 0.7; }
}

/* 2. Hovers, FAQ icon */
.wb-hero [style*="border-radius"], .wb-sec [style*="border-radius"] { corner-shape: squircle; }
.wb-mint:hover { background: #35c98a !important; color: #16042E !important; }
.wb-faq summary::-webkit-details-marker { display: none; }
.wb-faq .wb-faq-ico::before { content: "+"; }
.wb-faq[open] .wb-faq-ico::before { content: "\2212"; }
.wb-faq summary:focus-visible { outline: 2px solid #6D5DF3; outline-offset: -2px; border-radius: 18px; }
#register { scroll-margin-top: 96px; }
.atarim-landing #register { scroll-margin-top: 24px; }

/* 3. Gravity Forms 8, scoped to .wb-gform. GF's orbital theme rules outrank
 * plain class selectors, hence the !important on the visual properties. */
.wb-gform .gform_wrapper { margin: 0 !important; }
.wb-gform .gform_heading, .wb-gform .gform_required_legend { display: none !important; }
.wb-gform form { margin: 0; }
.wb-gform .gform-body, .wb-gform .gform_body { margin: 0; }
.wb-gform .gform_fields { display: flex !important; flex-direction: column; gap: 16px !important; }
.wb-gform .gfield { margin: 0 !important; padding: 0 !important; min-width: 0; }
.wb-gform .gfield--type-hidden, .wb-gform .gform_hidden { display: none !important; }
.wb-gform .gfield_label, .wb-gform legend.gfield_label {
	display: block; font-family: 'Roboto', system-ui, sans-serif !important;
	font-size: 13px !important; font-weight: 600 !important; color: #2a1747 !important; margin: 0 0 7px !important; padding: 0 !important;
}
.wb-gform .gfield_required { display: none !important; }
.wb-gform .ginput_container { margin: 0 !important; }
.wb-gform .ginput_container input[type="text"], .wb-gform .ginput_container input[type="email"] {
	width: 100% !important; height: auto !important; font-family: 'Roboto', sans-serif !important;
	font-size: 15px !important; font-weight: 500 !important; color: #16042E !important; padding: 14px 15px !important;
	border-radius: 13px !important; corner-shape: squircle; border: 1px solid rgba(26,8,48,0.16) !important;
	background: #faf9fe !important; box-shadow: none !important; line-height: 1.3 !important;
}
.wb-gform .ginput_container input::placeholder { color: #a49cb8 !important; }
.wb-gform .ginput_container input[type="text"]:focus, .wb-gform .ginput_container input[type="email"]:focus { outline: 2px solid #6D5DF3 !important; outline-offset: 0; }

/* The AI question: four stacked rows, a violet icon on the left. */
.wb-gform .wb-f-ai legend.gfield_label { margin-bottom: 10px !important; }
.wb-gform .wb-f-ai .gfield_radio { display: flex !important; flex-direction: column; gap: 8px !important; }
.wb-gform .wb-f-ai .gchoice { position: relative; margin: 0 !important; display: block !important; }
.wb-gform .wb-f-ai .gchoice input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none; }
.wb-gform .wb-f-ai .gchoice label {
	display: flex !important; align-items: center; gap: 12px; max-width: none !important; width: 100%; min-height: 46px; margin: 0 !important;
	padding: 11px 15px !important; border-radius: 13px; corner-shape: squircle; border: 1px solid rgba(26,8,48,0.16); background: #faf9fe;
	font-family: 'Roboto', sans-serif !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1.3 !important; color: #16042E !important;
	cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.wb-gform .wb-f-ai .gchoice label::before {
	content: ""; flex: none; width: 20px; height: 20px; background: #6D5DF3;
	-webkit-mask: var(--wb-ico) center / contain no-repeat; mask: var(--wb-ico) center / contain no-repeat;
}
.wb-gform .wb-f-ai .gchoice label::after { display: none !important; }
.wb-gform .wb-f-ai .gchoice:nth-child(1) { --wb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z M12 15l-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0 M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/svg%3E"); }
.wb-gform .wb-f-ai .gchoice:nth-child(2) { --wb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z'/%3E%3C/svg%3E"); }
.wb-gform .wb-f-ai .gchoice:nth-child(3) { --wb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11h14a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
.wb-gform .wb-f-ai .gchoice:nth-child(4) { --wb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z M4.93 4.93l4.24 4.24 M14.83 9.17l4.24-4.24 M14.83 14.83l4.24 4.24 M9.17 14.83l-4.24 4.24'/%3E%3C/svg%3E"); }
.wb-gform .wb-f-ai .gchoice input:checked + label { border-color: #6D5DF3; background: #ECE9FE; }
.wb-gform .wb-f-ai .gchoice input:focus-visible + label { outline: 2px solid #6D5DF3; outline-offset: 1px; }

/* Consent rows: the two opt-ins share one soft box, the privacy one sits below. */
.wb-gform .ginput_container_consent { display: grid !important; grid-template-columns: 22px minmax(0,1fr) !important; gap: 12px !important; align-items: start; }
.wb-gform .ginput_container_consent input[type="checkbox"] {
	width: 20px !important; height: 20px !important; margin: 2px 0 0 !important; accent-color: #6D5DF3; cursor: pointer;
	appearance: auto !important; -webkit-appearance: checkbox !important; border-radius: 4px !important; box-shadow: none !important;
}
.wb-gform .ginput_container_consent input[type="checkbox"]::before { display: none !important; }
.wb-gform .gfield_consent_label {
	font-family: 'Roboto', sans-serif !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1.45 !important; color: #16042E !important;
	cursor: pointer; margin: 0 !important; padding: 0 !important; min-width: 0;
}
.wb-gform .gfield_consent_label a { color: #6D5DF3; text-decoration: underline; }
.wb-gform .wb-opt { color: #6e6189; }
.wb-gform .wb-f-optin-first .gfield_consent_label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-gform .wb-f-optin { background: #faf9fe; border: 1px solid rgba(26,8,48,0.10) !important; }
.wb-gform .wb-f-optin-first { border-bottom: none !important; border-radius: 14px 14px 0 0; padding: 16px 16px 6px !important; }
.wb-gform .wb-f-optin-last { border-top: none !important; border-radius: 0 0 14px 14px; padding: 6px 16px 16px !important; margin-top: -16px !important; }
.wb-gform .wb-f-privacy { padding: 0 2px !important; }
.wb-gform .gfield_description { display: none !important; }

.wb-gform .gform_footer { margin: 16px 0 0 !important; padding: 0 !important; }
.wb-gform .gform_footer .gform_button, .wb-gform input[type="submit"].gform_button {
	width: 100% !important; height: 58px !important; margin: 0 !important; padding: 0 24px !important;
	border-radius: 999px !important; corner-shape: squircle; border: none !important; background: #3ED696 !important; color: #16042E !important;
	font-family: 'Roboto', sans-serif !important; font-size: 18px !important; font-weight: 700 !important; line-height: 1 !important;
	cursor: pointer; box-shadow: none !important; transition: background .2s;
}
.wb-gform .gform_footer .gform_button:hover { background: #35c98a !important; }
.wb-gform .gform_validation_errors { margin: 0 0 14px !important; padding: 12px 14px !important; border-radius: 12px !important; font-size: 14px !important; }
.wb-gform .validation_message, .wb-gform .gfield_validation_message { color: #b3261e !important; font-size: 13px !important; margin-top: 6px !important; padding: 0 !important; background: none !important; border: none !important; }

/* Success: GF swaps the form for the confirmation; the card drops its title. */
#register:has(.gform_confirmation_wrapper) .wb-card-title,
#register:has(.gform_confirmation_wrapper) .wb-smallprint { display: none; }
.wb-gform .gform_confirmation_message { margin: 0; padding: 0; background: none; }
.wb-done { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.wb-done-check { width: 52px; height: 52px; border-radius: 50%; background: #3ED696; display: flex; align-items: center; justify-content: center; }
.wb-done-title { font-family: 'Fira Sans Condensed', sans-serif; font-weight: 700; font-size: 34px; line-height: 1.05; color: #16042E; }
.wb-done-body { font-family: 'Roboto', sans-serif; font-size: 17px; line-height: 1.55; color: #574a6e; }

/* 4. Responsive. Desktop (>=1180) is the authored spec. */
@media (max-width: 1179px) {
	.wb-grid { grid-template-columns: minmax(0,1fr) !important; grid-template-areas: 'text' 'form' 'dog' !important; min-height: 0 !important; }
	.wb-card { justify-self: start; }
}
@media (max-width: 1023px) {
	.wb-hero { padding-top: 128px !important; }
	.wb-sec { padding-left: 24px !important; padding-right: 24px !important; padding-top: 88px !important; padding-bottom: 88px !important; }
	.wb-sec:has(> div[style*="height:120px"]) { padding-bottom: 0 !important; }
	.wb-sec > div[style*="height:120px"] { height: 88px !important; }
	.wb-closer { padding-top: 120px !important; padding-bottom: 128px !important; }
}
@media (max-width: 767px) {
	.wb-hero { padding-left: 16px !important; padding-right: 16px !important; padding-top: 112px !important; }
	.wb-sec { padding-left: 16px !important; padding-right: 16px !important; padding-top: 64px !important; padding-bottom: 64px !important; }
	.wb-sec > div[style*="height:120px"] { height: 64px !important; }
	.wb-closer { padding-top: 88px !important; padding-bottom: 96px !important; }
	.wb-card { padding: 24px 20px !important; }
	.wb-gform .wb-f-optin-first .gfield_consent_label { white-space: normal; }
	.wb-outcomes { flex-direction: column; }
	.wb-outcomes > div { flex: none !important; }
	.wb-or { position: relative !important; left: auto !important; top: auto !important; transform: none !important; align-self: center; margin: -10px 0; }
	.wb-faq summary { padding: 18px 18px !important; }
	.wb-faq summary + div { padding: 0 18px 20px !important; }
}
/* The design scales the dog scene down on phones; zoom also shrinks its layout box. */
@media (max-width: 560px) {
	.wb-dog { zoom: 0.72; }
	.wb-logos img:first-child { height: 36px !important; }
	.wb-logos img:last-child { height: 25px !important; width: 134px !important; }
}
@media (max-width: 430px) {
	.wb-dog { zoom: 0.6; }
	.wb-text p { font-size: 18px !important; }
}

/* Landing page mode (page editor checkbox, inc/landing-page.php): no site
 * header, so the hero drops back to the design's own 48px top. */
.atarim-landing .wb-hero { padding-top: 48px !important; }
@media (max-width: 767px) { .atarim-landing .wb-hero { padding-top: 32px !important; } }
