/* Stardust Forms — inherits the theme's colours and fonts where available. */
.sdf-form { --sdf-accent: var(--sd-burgundy, #641F35); --sdf-text: var(--sd-text, #2E1A1F); --sdf-muted: var(--sd-muted, #5B4642); --sdf-line: var(--sd-line, rgba(100, 31, 53, .25)); --sdf-field: rgba(255, 252, 245, .8); max-width: 640px; font-size: 1rem; color: var(--sdf-text); }
.sdf-fields { display: flex; flex-wrap: wrap; gap: 1rem; }
.sdf-field { flex: 1 1 100%; min-width: 0; margin: 0; border: 0; padding: 0; }
.sdf-w-half { flex: 1 1 calc(50% - .5rem); }
.sdf-label { display: block; margin-bottom: .35rem; font-size: .92rem; font-weight: 600; color: var(--sd-wine, #35101D); }
.sdf-req { color: var(--sdf-accent); }
.sdf-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .sdf-form select, .sdf-form textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--sdf-line); border-radius: 8px; background: var(--sdf-field); color: var(--sdf-text); font: inherit; box-sizing: border-box; }
.sdf-form textarea { min-height: 140px; resize: vertical; }
.sdf-form input:focus, .sdf-form select:focus, .sdf-form textarea:focus { outline: none; border-color: var(--sdf-accent); box-shadow: 0 0 0 3px rgba(100, 31, 53, .14); }
.sdf-form [aria-invalid="true"] { border-color: #9b2c2c !important; }
.sdf-choice { display: flex; gap: .6rem; align-items: flex-start; margin: .35rem 0; font-size: .95rem; cursor: pointer; }
.sdf-choice input { width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: var(--sdf-accent); flex: none; }
.sdf-consent { color: var(--sdf-muted); font-size: .9rem; }
.sdf-help { margin: .3rem 0 0; font-size: .85rem; color: var(--sdf-muted); }
.sdf-error { margin: .3rem 0 0; font-size: .85rem; color: #9b2c2c; }
.sdf-error:empty { display: none; }
.sdf-actions { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.sdf-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.6rem; border: 1px solid var(--sdf-accent); border-radius: 999px; background: var(--sdf-accent); color: var(--sd-ivory, #F3EBDD); font: inherit; font-weight: 600; cursor: pointer; }
.sdf-submit:disabled { opacity: .6; cursor: wait; }
.sdf-message { margin-top: .9rem; font-size: .95rem; }
.sdf-message:empty { display: none; }
.sdf-message.is-success { padding: .8rem 1rem; border-left: 3px solid #3f6b2e; background: rgba(63, 107, 46, .08); }
.sdf-message.is-error { padding: .8rem 1rem; border-left: 3px solid #9b2c2c; background: rgba(155, 44, 44, .06); }
.sdf-form.is-done .sdf-fields { display: none; }
.sdf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Inline layout: email + button on one line (newsletters). */
.sdf-layout-inline .sdf-fields { position: relative; flex-wrap: nowrap; gap: 0; }
.sdf-layout-inline .sdf-field { flex: 1 1 auto; }
.sdf-layout-inline .sdf-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.sdf-layout-inline input:not([type=checkbox]):not([type=radio]) { min-height: 54px; padding-right: 7.5rem; border-radius: 10px; }
.sdf-layout-inline .sdf-actions { position: absolute; right: 6px; top: 6px; flex: none; width: auto; }
.sdf-layout-inline .sdf-submit { min-height: 42px; padding: 0 1.2rem; }
.sdf-layout-inline .sdf-field--consent { position: static; }
.sdf-layout-inline:has(.sdf-field--consent) .sdf-fields { flex-wrap: wrap; }
.sdf-layout-inline:has(.sdf-field--consent) .sdf-field--consent { flex-basis: 100%; order: 3; margin-top: .6rem; }

@media (max-width: 600px) {
	.sdf-w-half { flex-basis: 100%; }
	.sdf-submit { width: 100%; }
	.sdf-layout-inline .sdf-submit { width: auto; }
}

/* Status toast after confirm / unsubscribe links. */
.sdf-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 200; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; max-width: calc(100% - 2rem); padding: .9rem 1rem .9rem 1.2rem; border-radius: 12px; background: #35101D; color: #F3EBDD; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); font-size: .95rem; }
.sdf-toast button { border: 0; background: none; color: inherit; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.sdf-notice { padding: .6rem .8rem; border: 1px dashed #9b2c2c; color: #9b2c2c; }
