/* Lichterzauber form. Scoped to .xb-form; shared form styles stay untouched. */
@font-face{font-family:XbFormSerif;src:url('/wp-content/themes/einladio-child-theme/assets/fonts/cormorant-garamond/cormorant-garamond-v21-latin_latin-ext-600.woff2') format('woff2');font-weight:600;font-display:swap}
.xb-form{background:#f4efe4;color:#2b3a31}
.xb-form [hidden]{display:none!important}
.xb-form .gform-shell{max-width:1120px}
.xb-form-hero{max-width:720px!important;margin:26px 0 30px!important}
.xb-form .xb-form-hero .xb-form-kicker{display:inline-block;margin:0 0 12px;padding:6px 12px;border-radius:999px;background:#173d32;color:#f3e3bb;font-size:13px;font-weight:700;letter-spacing:.04em}
.xb-form-hero h1{margin:0 0 12px;font:600 clamp(36px,5vw,54px)/1.02 XbFormSerif,Georgia,serif;letter-spacing:-.015em;color:#173d32}
.xb-form-hero>p:not(.xb-form-kicker){margin:0;font-size:17px;line-height:1.6;color:#4b5a50;max-width:60ch}
.xb-form-steps ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:22px 0 0;padding:0}
.xb-form-steps a{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 14px 6px 6px;border-radius:999px;background:#fffdf7;border:1px solid #ddd4c0;color:#173d32;font-size:14px;font-weight:650;text-decoration:none}
.xb-form-steps a:hover{border-color:#173d32}
.xb-form-steps a span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#efe6d2;color:#7a5d26;font-size:13px}
.xb-form .gform-layout form{padding:0;background:transparent;border:0}
.xb-form .gform-layout section.xb-form-section{margin:0 0 18px;padding:28px;border:1px solid #e3dac6;border-radius:18px;background:#fffdf8;box-shadow:0 1px 0 #fff inset,0 8px 24px -18px #4b3a1a40;scroll-margin-top:16px}
.xb-form-section h2{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 6px;font:600 28px/1.15 XbFormSerif,Georgia,serif;color:#173d32}
.xb-form-section h2 small{font:500 13px/1 system-ui,sans-serif;color:#6d7466;padding:5px 9px;border-radius:999px;background:#f1ece0}
.xb-step-no{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#173d32;color:#f3e3bb!important;font:700 15px/1 system-ui,sans-serif!important}
.xb-form .gform-help{color:#5e665b}
.xb-field-help{margin:6px 0 0}
.xb-count{text-align:right;margin:6px 0 0}
.xb-count.is-near{color:#8a5a12;font-weight:650}
.xb-form input:not([type=color]):not([type=file]),.xb-form textarea,.xb-form select{border-color:#cfc6b2;border-radius:10px;background:#fff;transition:border-color .2s,box-shadow .2s}
.xb-form input:not([type=color]):not([type=file]):hover,.xb-form textarea:hover{border-color:#a9a08b}
.xb-form input:focus-visible,.xb-form textarea:focus-visible,.xb-form select:focus-visible{outline:2px solid #173d32;outline-offset:1px;box-shadow:0 0 0 5px #173d3214}
.xb-form textarea{line-height:1.55;resize:vertical}

/* Photos */
.xb-photo-grid{display:grid;gap:14px;margin-top:18px}
@media(min-width:560px){.xb-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.xb-form .xb-photo-slot{position:relative;min-width:0;margin:0;padding:12px;border:1px solid #e1d8c4;border-radius:14px;background:#faf6ec}
.xb-photo-slot legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.xb-photo-slot.is-filled legend{position:static;width:auto;height:auto;clip-path:none;padding:0 6px;font-size:13px;font-weight:700;color:#7a5d26;letter-spacing:.04em}
.xb-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.xb-form .xb-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:168px;margin:0;padding:20px;border:1.5px dashed #b9a988;border-radius:12px;background:#fffdf7;color:#173d32;text-align:center;cursor:pointer;transition:background .2s,border-color .2s}
.xb-form .xb-drop:hover,.xb-form .xb-drop.is-over{background:#f3ecdb;border-color:#173d32}
.xb-drop small{font-size:13px;font-weight:400;color:#6d7466}
.xb-photo-slot:has(.xb-file:focus-visible) .xb-drop{outline:2px solid #173d32;outline-offset:2px}
.xb-photo-slot.is-filled .xb-drop{display:none}
.xb-photo-slot:not(.is-filled){grid-column:1/-1}
@media(min-width:560px){.xb-photo-slot:not(.is-filled):not(:first-child){grid-column:auto}}
.xb-photo-preview{margin:6px 0 0}
.xb-photo-preview img{display:block;width:100%;height:190px;object-fit:contain;background:#efe8d8;border-radius:8px}
.xb-photo-preview p{margin:6px 0 0;font-size:12.5px;color:#6d7466;overflow-wrap:anywhere}
.xb-photo-slot label[data-caption-label]{margin:12px 0 6px;font-size:14px}
.xb-photo-tools{display:flex;gap:6px;margin-top:10px}
.xb-photo-tools button{flex:1 1 auto;min-height:40px;padding:6px 10px;border:1px solid #cfc6b2;border-radius:8px;background:#fff;color:#173d32;font-size:13px;font-weight:600;line-height:1.2;cursor:pointer}
.xb-photo-tools button:hover:not(:disabled){border-color:#173d32}
.xb-photo-tools button:disabled{opacity:.4;cursor:default}
.xb-photo-tools .xb-remove{color:#8f2a24}
.xb-photo-count{margin-top:12px}
.xb-photo-error{margin:8px 0 0;padding:10px 12px;border-radius:8px;background:#fbe9e6;color:#8f2a24;font-weight:650}

/* Wishes */
.xb-form .xb-wish-fields{margin:18px 0 0;padding:16px 18px 18px;border:1px solid #e3dac6;border-radius:14px;background:#faf6ec}
.xb-form .xb-wish-fields legend{padding:0 6px;font-size:14px;color:#7a5d26}
.xb-form .xb-wish-fields label:first-of-type{margin-top:4px}
.xb-add{margin-top:14px;min-height:44px;padding:8px 16px;border:1.5px dashed #b9a988;border-radius:10px;background:transparent;color:#173d32;font-weight:650;cursor:pointer}
.xb-add:hover{border-color:#173d32;background:#f3ecdb}

/* Colour worlds */
.xb-swatch-legend{margin:20px 0 8px;font-weight:650}
.xb-swatches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:620px){.xb-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}}
.xb-swatch{display:flex;flex-direction:column;gap:8px;padding:8px 8px 10px;border:1.5px solid #e1d8c4;border-radius:12px;background:#fff;color:#2b3a31;font-size:13.5px;font-weight:650;text-align:left;cursor:pointer}
.xb-swatch[aria-checked=true]{border-color:#173d32;box-shadow:0 0 0 3px #173d321f}
.xb-swatch-scene{display:grid;place-items:center;height:78px;border-radius:8px;background:var(--sw-bg)}
.xb-swatch-book{position:relative;width:44px;height:58px;border-radius:2px 4px 4px 2px;background:var(--sw-cloth);box-shadow:3px 3px 0 -1px #f7f0e1,0 6px 12px -6px #0009}
.xb-swatch-book i{position:absolute;left:9px;right:9px;top:18px;height:2px;background:var(--sw-accent);box-shadow:0 6px 0 var(--sw-accent),0 12px 0 -0.5px var(--sw-accent)}
.xb-form .gform-details{margin-top:20px}

/* Finish */
.xb-form .gform-layout section.xb-form-finish{background:#173d32;color:#f4ecda;border-color:#173d32}
.xb-form-magic{display:flex;align-items:center;gap:16px}
.xb-form-magic img{width:96px;height:96px;flex:none}
.xb-form-magic p{margin:0;font-size:15px;line-height:1.55}
.xb-form-finish .gform-duration{background:#ffffff12;color:#e9e0c9}
.xb-form-finish .gform-primary{background:#e6cf96;color:#173d32;font-size:17px;padding:16px}
.xb-form-finish .gform-primary:hover{background:#f0dcaa}
.xb-form-finish .gform-help{color:#cfd8cc;margin-bottom:0}
.xb-form-finish .gform-primary:focus-visible{outline-color:#f3e3bb}

/* Sidebar */
.xb-form .gform-layout aside{background:#fffdf8;border-color:#e3dac6}
.xb-form .gform-layout aside img{height:300px;background:#efe8d8;object-fit:contain}
.xb-form .gform-layout aside h2{font:600 26px/1.1 XbFormSerif,Georgia,serif;color:#173d32;margin:0 0 4px}
.xb-form .gform-layout aside ul{padding-left:0;list-style:none;font-size:15px}
.xb-form .gform-layout aside li{position:relative;margin:9px 0;padding-left:22px}
.xb-form .gform-layout aside li::before{content:"";position:absolute;left:2px;top:.45em;width:10px;height:10px;border-radius:50%;background:#e6cf96;box-shadow:inset 0 0 0 2px #b4914f}
@media(max-width:599px){
 .xb-form .gform-layout section.xb-form-section{padding:20px 16px;border-radius:14px}
 .xb-form-section h2{font-size:24px;gap:10px}
 .xb-step-no{width:30px;height:30px}
 .xb-form .gform-layout aside img{height:240px}
 .xb-form-magic img{width:72px;height:72px}
}
