/* Submit page (page-submit.php) – semantic tokens only, so Light and Dark both work.
 * The form itself is styled by the Promptix Submission plugin (assets/submission.css). */

.promptix-submit-page { padding-bottom: 8px; }
/* The hero sits right under the header (the main wrapper adds 40px top padding on other pages). */
.promptix-main:has(> .promptix-submit-page) { padding-top: 0; }
.promptix-submit-page [hidden],
.pxsb-faq[hidden] { display: none !important; }

/* Hero */
.pxsb-hero { position: relative; overflow: hidden; padding: 36px 0; background: var(--gradient-soft); border-bottom: 1px solid var(--border-default); }
.pxsb-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.pxsb-hero__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--color-primary); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pxsb-hero__title { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.125rem); font-weight: 800; font-style: italic; line-height: 1.08; letter-spacing: -.02em; color: var(--text-heading); }
.pxsb-grad { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; padding-left: .08em; }
.pxsb-hero__lead { max-width: 560px; margin: 0 0 24px; font-size: 1.0625rem; color: var(--text-body); }


/* Hero artwork */
.pxsb-hero__art { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px; min-height: 240px; padding: 28px; border-radius: var(--radius-xl); background: var(--gradient-primary); color: var(--text-inverse); box-shadow: var(--shadow-lg); overflow: hidden; }
.pxsb-hero__art::before { content: ""; position: absolute; inset: auto auto -90px -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.pxsb-hero__art.has-image { background: var(--navy-900); }
.pxsb-hero__art.has-image::before { inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(-90deg, rgba(17, 24, 39, .7) 0%, rgba(17, 24, 39, .15) 60%, rgba(17, 24, 39, .55) 100%); z-index: 1; }
.pxsb-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pxsb-hero__words, .pxsb-hero__side, .pxsb-hero__stat { position: relative; z-index: 2; }
.pxsb-hero__words, .pxsb-hero__side, .pxsb-hero__side p, .pxsb-hero__side li { color: var(--text-inverse); }
.pxsb-hero__words { display: grid; gap: 10px; padding: 18px 22px; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.pxsb-hero__words-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .2); }
.pxsb-hero__words ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.pxsb-hero__side { display: grid; gap: 14px; }
.pxsb-hero__slogan { max-width: 240px; margin: 0; font-size: 1.625rem; font-weight: 800; font-style: italic; line-height: 1.15; }
.pxsb-hero__chips { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.pxsb-hero__chips li { display: flex; align-items: center; gap: 8px; }
.pxsb-hero__stat { position: absolute; left: 20px; bottom: 20px; display: grid; justify-items: center; gap: 2px; margin: 0; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text-secondary); font-size: 12px; text-align: center; box-shadow: var(--shadow-md); }
.pxsb-hero__stat strong { font-size: 1.375rem; font-weight: 800; line-height: 1.1; color: var(--text-heading); }
.pxsb-hero__stat-icon { color: var(--color-primary); }

/* Form area */
.pxsb-main { padding-top: 28px; padding-bottom: 40px; }

/* Sidebar cards fed by the theme */
.pxsb-tips__icon { background: var(--badge-warning-bg); color: var(--color-warning); }
.pxsb-checklist { display: grid; gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; }
.pxsb-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-body); }
.pxsb-checklist .psub-tick { margin-top: 1px; }
.pxsb-help { display: grid; gap: 10px; }
.pxsb-help .psub-card__head { margin-bottom: 0; }
.pxsb-help__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-primary); color: var(--text-inverse); font-size: 1.125rem; font-weight: 800; }
.pxsb-help__text { margin: 0; }
.pxsb-help__btn { width: 100%; gap: 8px; min-height: 44px; }

/* FAQ */
.pxsb-faq { padding: 40px 0 48px; border-top: 1px solid var(--border-default); background: var(--bg-section); }
.pxsb-faq__head { margin-bottom: 20px; }
.pxsb-faq__title { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--text-heading); }
.pxsb-faq__lead { margin: 4px 0 0; color: var(--text-secondary); }
.pxsb-faq__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.pxsb-faq__item { padding: 18px 20px; }
.pxsb-faq__item summary { display: flex; align-items: center; gap: 14px; list-style: none; cursor: pointer; font-weight: 700; color: var(--text-heading); }
.pxsb-faq__item summary::-webkit-details-marker { display: none; }
.pxsb-faq__item summary > .promptix-icon { flex: none; margin-right: auto; color: var(--text-secondary); transition: transform .2s ease; }
.pxsb-faq__item[open] summary > .promptix-icon { transform: rotate(-180deg); }
.pxsb-faq__q { flex: 1; font-size: 15px; }
.pxsb-faq__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--badge-purple-bg); color: var(--color-purple); }
.pxsb-faq__item--1 .pxsb-faq__icon { background: var(--badge-warning-bg); color: var(--color-warning); }
.pxsb-faq__item--2 .pxsb-faq__icon { background: var(--badge-success-bg); color: var(--color-success); }
.pxsb-faq__item p { margin: 8px 58px 0 0; color: var(--text-secondary); font-size: 14px; }

@media (max-width: 1199px) {
	.pxsb-faq__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
	.pxsb-hero__grid { grid-template-columns: 1fr; gap: 28px; }
	.pxsb-hero__art { min-height: 0; }
}

@media (max-width: 782px) {
	.pxsb-faq__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.pxsb-hero { padding: 28px 0; }
	.pxsb-hero__art { grid-template-columns: 1fr; padding: 22px; }
	.pxsb-hero__stat { position: relative; left: auto; bottom: auto; justify-self: start; grid-auto-flow: column; align-items: center; gap: 8px; }
	.pxsb-hero__words ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pxsb-faq__item p { margin-right: 0; }
}
