/* ==========================================================================
 * Gastro·Płock — Web review wizard (light theme)
 * Pairs with template-parts/review-wizard.php + assets/js/review-wizard.js
 * ========================================================================== */

.gpw-overlay {
  --gpw-navy: #252C41;
  --gpw-accent: #d42b1e;
  --gpw-pos: #2EAA5F;
  --gpw-neg: #EF4444;
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  background: rgba(37, 44, 65, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px;
  overflow-y: auto;
}
.gpw-overlay.is-open { display: flex; align-items: flex-start; justify-content: center; }

.gpw-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: #f7f8fb;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(37, 44, 65, .35);
  overflow: hidden;
  animation: gpwSheetIn .42s cubic-bezier(.2, .8, .2, 1) both;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  --gpw-g1: #f4f6fa; --gpw-g2: #e9edf4;
  transition: --gpw-g1 .6s ease, --gpw-g2 .6s ease;
}
/* Subtle mood tint across the whole popup (driven on the stars step). */
.gpw-sheet::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(158deg, var(--gpw-g1) 0%, var(--gpw-g2) 100%);
  opacity: 0; transition: opacity .6s ease;
}
.gpw-sheet.is-tinted::before { opacity: .2; }
.gpw-top, .gpw-body { position: relative; z-index: 1; }
/* translucent top bar so the colour flows across the whole popup, not just the body */
.gpw-sheet.is-tinted .gpw-top { background: rgba(255, 255, 255, .42); }
@keyframes gpwSheetIn { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }

/* ----- Top bar ----- */
.gpw-top { padding: 18px 22px 16px; background: #fff; border-bottom: 1px solid #eef0f5; transition: background .6s ease; }
.gpw-top-row { display: flex; align-items: center; gap: 12px; }
.gpw-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.gpw-venue { flex: 1; min-width: 0; }
.gpw-venue-name { font-family: 'Fira Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--gpw-navy); line-height: 1.2; }
.gpw-venue-addr { font-size: 12px; color: #8892aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpw-close {
  border: none; background: #f1f3f7; color: var(--gpw-navy);
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1;
  cursor: pointer; flex-shrink: 0; transition: background .15s;
}
.gpw-close:hover { background: #e6e9f0; }

/* ----- Progress ----- */
.gpw-progress { display: flex; gap: 4px; margin-top: 16px; }
.gpw-seg { flex: 1; height: 5px; border-radius: 10px; background: #e6e9f0; transition: background .3s, box-shadow .3s; }
.gpw-seg.active { background: var(--gpw-navy); box-shadow: 0 0 10px rgba(37, 44, 65, .25); }
.gpw-seg.done.gpw-pos { background: var(--gpw-pos); }
.gpw-seg.done.gpw-neg { background: var(--gpw-neg); }

/* ----- Breadcrumbs ----- */
.gpw-crumbs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.gpw-crumbs:empty { display: none; }
.gpw-crumb {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; cursor: pointer;
  background: #fff; color: var(--gpw-navy);
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 20px; box-shadow: 0 2px 6px rgba(37, 44, 65, .08);
  transition: background .15s, box-shadow .15s;
}
.gpw-crumb:hover { background: #f4f6fa; box-shadow: 0 3px 9px rgba(37, 44, 65, .12); }

/* ----- Step body ----- */
.gpw-body { padding: 24px 26px 26px; overflow-y: auto; }
.gpw-step { will-change: transform, opacity; }
.gpw-step.gpw-enter { animation: gpwStepIn .4s cubic-bezier(.2, .8, .2, 1) both; }
.gpw-in-right.gpw-enter { animation-name: gpwStepInRight; }
.gpw-in-left.gpw-enter { animation-name: gpwStepInLeft; }
@keyframes gpwStepInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes gpwStepInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

.gpw-title { font-family: 'Fira Sans', sans-serif; font-weight: 800; font-size: 23px; color: var(--gpw-navy); margin: 0 0 6px; line-height: 1.2; }
.gpw-sub { font-size: 13px; color: #8892aa; margin: 0 0 4px; }
.gpw-empty { color: #8892aa; font-size: 14px; padding: 30px 0; text-align: center; }

/* ----- Dish list ----- */
.gpw-dish-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gpw-dish-head-text { min-width: 0; }
.gpw-dish-add-btn { flex-shrink: 0; border: 0; border-radius: 12px; background: var(--gpw-navy); color: #fff; padding: 10px 16px; font-family: 'Fira Sans', sans-serif; font-weight: 800; font-size: 13px; cursor: pointer; transition: transform .16s, box-shadow .16s; box-shadow: 0 8px 20px rgba(37,44,65,.18); }
.gpw-dish-add-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37,44,65,.24); }
.gpw-dishlist { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.gpw-dish {
  display: flex; align-items: center; gap: 12px; text-align: left;
  width: 100%; padding: 14px 16px; cursor: pointer;
  background: #fff; border: 1px solid #eceef4; border-radius: 16px;
  box-shadow: 0 2px 10px rgba(37, 44, 65, .05);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.gpw-dish:hover { transform: translateY(-2px); border-color: var(--gpw-accent); box-shadow: 0 6px 18px rgba(37, 44, 65, .1); }
.gpw-dish-thumb { flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; background-size: cover; background-position: center; background-color: #eef0f5; box-shadow: inset 0 0 0 1px rgba(37, 44, 65, .06); }
.gpw-dish-thumb-ph { display: flex; align-items: center; justify-content: center; font-size: 22px; }
.gpw-empty-dish {
  padding: 22px; border-radius: 18px; text-align: center;
  background: rgba(255, 255, 255, .5); border: 1px dashed rgba(37, 44, 65, .18);
}
.gpw-empty-dish-title { font-family: 'Fira Sans', sans-serif; font-weight: 800; font-size: 17px; color: var(--gpw-navy); }
.gpw-empty-dish-text { max-width: 360px; margin: 7px auto 0; color: #8892aa; font-size: 13px; line-height: 1.45; }
.gpw-dish-custom { border-style: dashed; background: rgba(255, 255, 255, .58); }
.gpw-dish-custom:hover { background: #fff; }
.gpw-dish-thumb-add {
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--gpw-navy); font-family: 'Fira Sans', sans-serif;
  font-size: 28px; font-weight: 900;
}
.gpw-dish-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gpw-dish-name { font-family: 'Fira Sans', sans-serif; font-weight: 700; font-size: 15px; color: var(--gpw-navy); }
.gpw-dish-desc { font-size: 12px; color: #8892aa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpw-dish-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #c98a00; white-space: nowrap; }
.gpw-dish-votes { color: #aeb4c2; font-weight: 600; }
.gpw-dish-arrow { color: #c5cad6; font-size: 22px; line-height: 1; }

/* ----- Stars (mood-gradient card) ----- */
/* Registered custom props so the gradient colours animate smoothly. */
@property --gpw-g1 { syntax: '<color>'; inherits: true; initial-value: #f4f6fa; }
@property --gpw-g2 { syntax: '<color>'; inherits: true; initial-value: #e9edf4; }

.gpw-stars-step { padding: 22px 8px 8px; }

.gpw-stars { display: flex; justify-content: center; gap: 6px; margin: 30px 0 18px; }
.gpw-star { border: none; background: none; cursor: pointer; padding: 4px; line-height: 0; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.gpw-star svg, .gpw-star polygon { transition: fill .35s ease; }
.gpw-star.lit { transform: scale(1.18); }
.gpw-rating-num { text-align: center; font-family: 'Fira Sans', sans-serif; font-weight: 900; font-size: 34px; color: #c98a00; margin-bottom: 8px; transition: color .35s ease; }

/* ----- Thumbs ----- */
.gpw-thumbs-wrap { text-align: center; padding: 20px 0; }
.gpw-thumbs-wrap .gpw-title { font-size: 27px; }
.gpw-thumbs { display: flex; justify-content: center; gap: 36px; margin-top: 40px; }
.gpw-thumb { border: none; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 14px; color: var(--gpw-navy); }
.gpw-thumb-ic {
  width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 44px; transition: transform .2s, box-shadow .2s;
}
.gpw-thumb.up .gpw-thumb-ic { background: rgba(46, 170, 95, .12); box-shadow: 0 8px 26px rgba(46, 170, 95, .2); }
.gpw-thumb.down .gpw-thumb-ic { background: rgba(239, 68, 68, .12); box-shadow: 0 8px 26px rgba(239, 68, 68, .2); }
.gpw-thumb:hover .gpw-thumb-ic { transform: scale(1.08); }

/* ----- Panels & chips (glass over the colour, no solid white boxes) ----- */
.gpw-panel {
  background: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 20px;
  padding: 20px; margin-top: 18px; box-shadow: none;
}
.gpw-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gpw-chip {
  border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .74); color: var(--gpw-navy);
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600;
  padding: 9px 15px; border-radius: 30px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 44, 65, .06);
  transition: transform .12s, background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.gpw-chip:hover { transform: translateY(-1px); background: #fff; }
.gpw-chip.sel { color: #fff; font-weight: 700; border-color: transparent; }
.gpw-chip.sel.gpw-pos { background: var(--gpw-pos); box-shadow: 0 6px 16px rgba(46, 170, 95, .28); }
.gpw-chip.sel.gpw-neg { background: var(--gpw-neg); box-shadow: 0 6px 16px rgba(239, 68, 68, .28); }
.gpw-chip.sel.gpw-badge-sel { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 6px 16px rgba(245, 158, 11, .35); }
.gpw-chip-add { border-style: dashed; border-color: rgba(37, 44, 65, .2); color: #6b7488; background: rgba(255, 255, 255, .4); }
/* Tagi, które wcześniejsi recenzenci już wybierali — z licznikiem głosów. */
.gpw-chip-voted { border-color: rgba(245, 158, 11, .45); }
.gpw-chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 9px; font-size: 11px; font-weight: 800; line-height: 1;
  background: rgba(245, 158, 11, .16); color: #b45309; vertical-align: middle;
}
.gpw-chip.sel .gpw-chip-count { background: rgba(255, 255, 255, .3); color: #fff; }

/* ----- Venue recommendation toggle (compact thumbs) ----- */
.gpw-vthumbs { display: flex; gap: 12px; margin-top: 18px; }
.gpw-vthumb {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid #e6e9f0; background: #fff; color: var(--gpw-navy);
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600;
  padding: 13px 10px; border-radius: 16px; cursor: pointer;
  transition: transform .12s, border-color .15s, box-shadow .15s, background .15s, color .15s;
}
.gpw-vthumb:hover { transform: translateY(-1px); }
.gpw-vthumb-ic { font-size: 20px; line-height: 1; }
.gpw-vthumb.sel.gpw-pos { background: var(--gpw-pos); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(46, 170, 95, .26); }
.gpw-vthumb.sel.gpw-neg { background: var(--gpw-neg); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(239, 68, 68, .26); }

/* ----- Tag groups (primary set + opposite set below) ----- */
.gpw-group-label { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700; color: #6b7488; margin-bottom: 12px; }
.gpw-group-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; }
.gpw-group-divider::before, .gpw-group-divider::after { content: ''; flex: 1; height: 1px; background: #eceef4; }
.gpw-group-divider span { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 600; color: #aeb4c2; }
.gpw-chips-muted .gpw-chip:not(.sel) { opacity: .72; }

/* ----- Summary: live preview card ----- */
.gpw-preview {
  position: relative; margin-top: 18px; background: #fff;
  border: 1px solid #eceef4; border-radius: 22px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(37, 44, 65, .1);
  animation: gpwPreviewIn .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes gpwPreviewIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.gpw-preview.gpw-pos { --pv: var(--gpw-pos); }
.gpw-preview.gpw-neg { --pv: var(--gpw-neg); }
.gpw-preview::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--pv); z-index: 2; }

/* tappable sections share these */
.gpw-pv-hero, .gpw-pv-photos, .gpw-pv-tile, .gpw-pv-quote, .gpw-pv-venue {
  position: relative; cursor: pointer; transition: background .15s;
  border-bottom: 1px solid #f1f3f7;
}
.gpw-pv-hero:hover, .gpw-pv-photos:hover, .gpw-pv-tile:hover, .gpw-pv-quote:hover, .gpw-pv-venue:hover { background: #fafbfd; }

/* edit pill (top-right of each section) */
.gpw-pv-edit {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f1f3f7; color: #8892aa; font-size: 13px;
  transition: background .15s, color .15s;
}
.gpw-pv-hero:hover .gpw-pv-edit, .gpw-pv-photos:hover .gpw-pv-edit,
.gpw-pv-tile:hover .gpw-pv-edit, .gpw-pv-quote:hover .gpw-pv-edit,
.gpw-pv-venue:hover .gpw-pv-edit { background: var(--pv); color: #fff; }

/* hero */
.gpw-pv-hero { padding: 28px 20px 22px; text-align: center; }
.gpw-pv-badge {
  display: inline-block; margin-bottom: 12px; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .3px;
  color: #fff; background: var(--pv); padding: 5px 15px; border-radius: 30px;
  box-shadow: 0 6px 16px rgba(37, 44, 65, .14);
}
.gpw-pv-dish { display: block; cursor: pointer; font-family: 'Fira Sans', sans-serif; font-weight: 800; font-size: 22px; color: var(--gpw-navy); line-height: 1.2; }
.gpw-pv-stars { display: inline-flex; align-items: center; gap: 3px; margin-top: 12px; }
.gpw-pv-stars b { font-family: 'Fira Sans', sans-serif; font-weight: 800; color: #c98a00; font-size: 16px; margin-left: 8px; }

/* photos */
.gpw-pv-photos { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 46px 14px 18px; }
.gpw-pv-photos.empty { justify-content: center; align-items: center; min-height: 64px; padding: 14px 18px; }
.gpw-pv-photo { width: 74px; height: 74px; flex: none; border-radius: 12px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(37, 44, 65, .06); }

/* tiles */
.gpw-pv-tile { padding: 18px 20px; }
.gpw-pv-cap { display: block; font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #aeb4c2; margin-bottom: 12px; }
.gpw-pv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gpw-pv-chip { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 600; color: var(--gpw-navy); background: #f1f3f7; padding: 6px 12px; border-radius: 20px; }
.gpw-pv-empty { font-family: 'Outfit', sans-serif; font-size: 13px; color: #b7bdcc; font-style: italic; }

/* quote */
.gpw-pv-quote { padding: 18px 46px 18px 22px; font-family: 'Outfit', sans-serif; font-size: 15px; line-height: 1.6; color: var(--gpw-navy); font-style: italic; }
.gpw-pv-quote::before { content: '“'; font-family: Georgia, serif; font-size: 30px; color: var(--pv); line-height: 0; vertical-align: -8px; margin-right: 4px; }
.gpw-pv-quote.empty { font-style: normal; }
.gpw-pv-quote.empty::before { content: none; }

/* venue (own accent via its gpw-pos/neg class) */
.gpw-pv-venue { padding: 18px 20px; border-bottom: none; box-shadow: inset 4px 0 0 var(--pv); }
.gpw-pv-venue.gpw-pos { --pv: var(--gpw-pos); }
.gpw-pv-venue.gpw-neg { --pv: var(--gpw-neg); }
.gpw-pv-venue-head { display: block; font-family: 'Fira Sans', sans-serif; font-weight: 700; font-size: 14px; color: var(--gpw-navy); margin-bottom: 12px; }
.gpw-pv-vpill { color: #fff; background: var(--pv); font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 20px; margin-left: 4px; }

/* ----- Textarea ----- */
.gpw-textarea {
  width: 100%; border: none; resize: vertical; background: none;
  font-family: 'Outfit', sans-serif; font-size: 15px; line-height: 1.6; color: var(--gpw-navy);
}
.gpw-textarea:focus { outline: none; }
.gpw-textarea::placeholder { color: #b7bdcc; }

/* ----- Photos (grid, up to 3 each) ----- */
.gpw-photo-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.gpw-photo-group { min-width: 0; }
.gpw-photo-label { display: block; font-size: 13px; font-weight: 700; color: #6b7488; margin: 0 0 10px; }
.gpw-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gpw-photo-groups .gpw-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gpw-photo-item {
  position: relative; aspect-ratio: 1 / 1; border-radius: 14px;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(37, 44, 65, .08);
}
.gpw-photo-del {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: none; cursor: pointer;
  border-radius: 50%; background: rgba(37, 44, 65, .72); color: #fff; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.gpw-photo-del:hover { background: var(--gpw-neg); }
.gpw-photo-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 1 / 1; border-radius: 18px; cursor: pointer;
  background: rgba(255, 255, 255, .56); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px dashed rgba(37, 44, 65, .24); color: #6b7488;
  box-shadow: 0 10px 26px rgba(37, 44, 65, .07);
  transition: border-color .18s, color .18s, background .18s, box-shadow .18s, transform .18s;
}
.gpw-photo-groups .gpw-photo-add { min-height: 128px; }
.gpw-photo-add:hover { transform: translateY(-2px); border-color: var(--gpw-accent); color: var(--gpw-accent); background: rgba(255, 255, 255, .76); box-shadow: 0 16px 34px rgba(37, 44, 65, .12); }
.gpw-photo-add-ic {
  position: relative; width: 42px; height: 42px; border-radius: 14px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(37, 44, 65, .08), 0 8px 18px rgba(37, 44, 65, .08);
}
.gpw-photo-add-dish .gpw-photo-add-ic::before {
  content: ''; position: absolute; left: 9px; top: 14px; width: 24px; height: 17px;
  border: 3px solid currentColor; border-radius: 6px;
}
.gpw-photo-add-dish .gpw-photo-add-ic::after {
  content: ''; position: absolute; left: 17px; top: 18px; width: 8px; height: 8px;
  border: 2px solid currentColor; border-radius: 50%;
}
.gpw-photo-add-venue .gpw-photo-add-ic::before {
  content: ''; position: absolute; left: 10px; top: 11px; width: 22px; height: 23px;
  border: 3px solid currentColor; border-radius: 5px 5px 3px 3px;
}
.gpw-photo-add-venue .gpw-photo-add-ic::after {
  content: ''; position: absolute; left: 17px; top: 21px; width: 8px; height: 13px;
  border-radius: 4px 4px 0 0; background: currentColor; box-shadow: -8px -4px 0 -5px currentColor, 8px -4px 0 -5px currentColor;
}
.gpw-photo-add-txt { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 800; }

/* ----- In-wizard input dialog (custom tag) ----- */
.gpw-popover {
  position: absolute; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; padding: 22px;
  background: rgba(37, 44, 65, .4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: gpwPopFade .16s ease both;
}
@keyframes gpwPopFade { from { opacity: 0; } to { opacity: 1; } }
.gpw-pop-card {
  width: 100%; max-width: 340px; background: #fff; border-radius: 20px; padding: 22px;
  box-shadow: 0 24px 60px rgba(37, 44, 65, .35); animation: gpwSheetIn .26s cubic-bezier(.2, .8, .2, 1) both;
}
.gpw-pop-title { font-family: 'Fira Sans', sans-serif; font-weight: 800; font-size: 17px; color: var(--gpw-navy); margin-bottom: 14px; }
.gpw-pop-input {
  width: 100%; box-sizing: border-box; border: 1px solid #e3e6ee; border-radius: 14px; padding: 12px 14px;
  font-family: 'Outfit', sans-serif; font-size: 15px; color: var(--gpw-navy); background: #fafbfd; transition: border-color .15s, background .15s;
}
.gpw-pop-input:focus { outline: none; border-color: var(--gpw-accent); background: #fff; }
.gpw-pop-input::placeholder { color: #b7bdcc; }
.gpw-pop-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; }
.gpw-pop-cancel { border: none; background: none; cursor: pointer; color: #8892aa; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; padding: 8px 10px; }
.gpw-pop-cancel:hover { color: var(--gpw-navy); }
.gpw-pop-ok {
  border: none; cursor: pointer; color: #fff; background: var(--gpw-navy);
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700;
  padding: 11px 22px; border-radius: 24px; transition: transform .12s, box-shadow .15s;
}
.gpw-pop-ok:hover { transform: translateY(-1px); }
.gpw-pop-ok.gpw-pos { background: var(--gpw-pos); box-shadow: 0 8px 20px rgba(46, 170, 95, .28); }
.gpw-pop-ok.gpw-neg { background: var(--gpw-neg); box-shadow: 0 8px 20px rgba(239, 68, 68, .28); }

/* ----- Footer nav ----- */
.gpw-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.gpw-footer-right { display: flex; align-items: center; gap: 10px; }
.gpw-nav-back { border: none; background: none; cursor: pointer; color: #8892aa; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; padding: 8px; }
.gpw-nav-back:hover { color: var(--gpw-navy); }
.gpw-nav-skip { border: none; background: none; cursor: pointer; color: #aeb4c2; font-family: 'Outfit', sans-serif; font-size: 14px; padding: 8px; }
.gpw-nav-next {
  border: none; cursor: pointer; color: #fff;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .5px;
  padding: 13px 30px; border-radius: 30px; background: var(--gpw-navy);
  transition: transform .12s, box-shadow .15s, opacity .15s;
}
.gpw-nav-next.gpw-pos { background: var(--gpw-pos); box-shadow: 0 8px 22px rgba(46, 170, 95, .3); }
.gpw-nav-next.gpw-neg { background: var(--gpw-neg); box-shadow: 0 8px 22px rgba(239, 68, 68, .3); }
.gpw-nav-next:hover:not(:disabled) { transform: translateY(-1px); }
.gpw-nav-next:disabled { opacity: .4; cursor: default; }

/* ----- Toast ----- */
.gpw-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  z-index: 100000; max-width: 90vw;
  background: var(--gpw-pos, #2EAA5F); color: #fff;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600;
  padding: 13px 22px; border-radius: 30px; box-shadow: 0 12px 34px rgba(37, 44, 65, .3);
  opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none;
}
.gpw-toast.err { background: #EF4444; }
.gpw-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .gpw-overlay { padding: 0; }
  .gpw-sheet { max-width: 100%; min-height: 100vh; max-height: 100vh; border-radius: 0; }
  .gpw-body { flex: 1; }
  .gpw-photo-groups { grid-template-columns: 1fr; }
}

/* ----- Submit loading overlay ----- */
.gpw-loading {
  position: absolute; inset: 0; z-index: 5; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(3px);
}
.gpw-spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(37, 44, 65, .15); border-top-color: var(--gpw-navy);
  animation: gpwSpin .8s linear infinite;
}
.gpw-loading-txt { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; color: var(--gpw-navy); }
@keyframes gpwSpin { to { transform: rotate(360deg); } }

/* ----- Success screen ----- */
.gpw-success {
  position: absolute; inset: 0; z-index: 6; border-radius: inherit;
  display: flex; align-items: center; justify-content: center; padding: 28px;
  background: #fff; opacity: 0; transition: opacity .25s ease;
}
.gpw-success.show { opacity: 1; }
.gpw-success-card { text-align: center; max-width: 360px; }
.gpw-success-check { width: 96px; height: 96px; margin: 0 auto 22px; }
.gpw-success-check svg { width: 100%; height: 100%; }
.gpw-check-circle {
  stroke: var(--gpw-pos); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: gpwCircle .5s cubic-bezier(.65, 0, .45, 1) forwards;
}
.gpw-check-mark {
  stroke: var(--gpw-pos); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: gpwCheck .35s cubic-bezier(.65, 0, .45, 1) .45s forwards;
}
@keyframes gpwCircle { to { stroke-dashoffset: 0; } }
@keyframes gpwCheck { to { stroke-dashoffset: 0; } }
.gpw-success-title { font-family: 'Fira Sans', sans-serif; font-weight: 800; font-size: 26px; color: var(--gpw-navy); margin: 0 0 8px; }
.gpw-success-text { font-family: 'Outfit', sans-serif; font-size: 15px; line-height: 1.55; color: #64748b; margin: 0 0 26px; }
.gpw-success-btn {
  border: none; cursor: pointer; color: #fff;
  font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .5px;
  padding: 14px 44px; border-radius: 30px; background: var(--gpw-pos);
  box-shadow: 0 10px 26px rgba(46, 170, 95, .32); transition: transform .12s, box-shadow .15s;
}
.gpw-success-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(46, 170, 95, .4); }

@media (prefers-reduced-motion: reduce) {
  .gpw-spinner { animation-duration: 1.4s; }
  .gpw-check-circle, .gpw-check-mark { animation: none; stroke-dashoffset: 0; }
}
