:root {
  --bg: #07080a;
  --ink: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.58);
  --gold: #e2bd7a;
  --gold-bright: #f0d49a;
  --gold-deep: #a8813f;
  --line: rgba(245, 241, 232, 0.12);
  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(6, 7, 9, 0.9), rgba(6, 7, 9, 0.97)),
    url('/images/interior-night.jpg') center / cover fixed no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 40% at 80% 0%, rgba(226, 189, 122, 0.14), transparent 65%),
    radial-gradient(45% 45% at 0% 100%, rgba(70, 92, 110, 0.18), transparent 65%);
}

.shell {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(245, 241, 232, 0.1);
  border-radius: 28px;
  background: linear-gradient(170deg, rgba(22, 23, 26, 0.88), rgba(10, 11, 13, 0.94));
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.rate-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.monogram {
  position: relative;
  width: 42px;
  aspect-ratio: 1;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 189, 122, 0.5);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.monogram::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(226, 189, 122, 0.18);
}

.header-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.place-name {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.1;
}

.place-meta {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  margin: 0 0 8px;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.12;
}

.lede {
  margin: 0 0 26px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* Betyg ------------------------------------------------------------------- */

.rating {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.rate-star {
  padding: 0;
  width: 46px;
  height: 46px;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}

.rate-star svg {
  width: 100%;
  height: 100%;
  fill: rgba(245, 241, 232, 0.14);
  transition: fill 0.2s ease, filter 0.2s ease;
}

.rate-star:hover svg,
.rate-star.is-on svg {
  fill: var(--gold);
  filter: drop-shadow(0 0 14px rgba(226, 189, 122, 0.4));
}

.rate-star:active {
  transform: scale(0.9);
}

.rating-label {
  margin: 0 0 26px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 14px;
}

/* Fält -------------------------------------------------------------------- */

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.field textarea {
  resize: vertical;
  min-height: 104px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 241, 232, 0.28);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(226, 189, 122, 0.55);
  background: rgba(226, 189, 122, 0.05);
}

.field small {
  display: block;
  margin-top: 6px;
  text-align: right;
  font-size: 10px;
  color: rgba(245, 241, 232, 0.32);
}

/* Bild --------------------------------------------------------------------- */

.photo-field > span em {
  margin-left: 7px;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.photo-field[hidden] {
  display: none;
}

.photo-add {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px dashed rgba(245, 241, 232, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

.photo-add:hover {
  border-color: rgba(226, 189, 122, 0.5);
  background: rgba(226, 189, 122, 0.05);
}

.photo-add[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.photo-add[hidden],
.photo-preview[hidden] {
  display: none;
}

.photo-add-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(226, 189, 122, 0.1);
  color: var(--gold);
}

.photo-add-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-add-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-add-copy strong {
  font-size: 13px;
  font-weight: 500;
}

.photo-add-copy small {
  font-size: 11px;
  color: var(--muted);
}

.photo-preview {
  position: relative;
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.photo-preview img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.photo-preview::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(transparent, rgba(6, 7, 9, 0.78));
  pointer-events: none;
}

.photo-caption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(245, 241, 232, 0.82);
}

.photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(6, 7, 9, 0.62);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.error {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #e59a84;
}

/* Knapp ------------------------------------------------------------------- */

.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gold-bright), #c99c55);
  color: #1d1408;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 16px 40px -14px rgba(226, 189, 122, 0.65);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s;
}

.submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -14px rgba(226, 189, 122, 0.8);
}

.submit:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.fineprint {
  margin: 14px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.32);
  text-align: center;
}

/* Integritet -------------------------------------------------------------- */

.privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 2px 0 18px;
  cursor: pointer;
  text-align: left;
}

.privacy input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.privacy-box {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid rgba(245, 241, 232, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, background 0.2s;
}

.privacy-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #1d1408;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition: opacity 0.15s, transform 0.15s;
}

.privacy input:checked + .privacy-box {
  border-color: var(--gold);
  background: var(--gold);
}

.privacy input:checked + .privacy-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.privacy input:focus-visible + .privacy-box {
  outline: 2px solid rgba(226, 189, 122, 0.55);
  outline-offset: 3px;
}

.privacy-copy strong {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(245, 241, 232, 0.86);
}

.privacy-copy small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.4);
}

/* Tack -------------------------------------------------------------------- */

.success {
  text-align: center;
  padding: 8px 0 4px;
}

.success-ring {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 189, 122, 0.45);
  border-radius: 50%;
}

.success-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(226, 189, 122, 0.14);
  border-radius: 50%;
  animation: ringPulse 2.4s ease-out infinite;
}

.success-ring svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.7s 0.2s var(--ease) forwards;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 6px;
}

.stars .star {
  width: 22px;
  height: auto;
  fill: var(--gold);
  animation: starPop 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 0.07s);
  filter: drop-shadow(0 0 12px rgba(226, 189, 122, 0.35));
}

.success-note {
  margin: 8px 0 26px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.ghost {
  padding: 12px 22px;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.ghost:hover {
  border-color: rgba(226, 189, 122, 0.5);
  background: rgba(226, 189, 122, 0.06);
}

/* Google ------------------------------------------------------------------ */

.google-share {
  margin: 0 0 18px;
}

.google-review {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border: 1px solid rgba(226, 189, 122, 0.45);
  border-radius: 13px;
  background: rgba(226, 189, 122, 0.08);
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.google-review:hover {
  border-color: rgba(226, 189, 122, 0.8);
  background: rgba(226, 189, 122, 0.14);
  transform: translateY(-1px);
}

.google-g {
  width: 17px;
  height: 17px;
  flex: none;
}

.google-share small {
  display: block;
  max-width: 320px;
  margin: 9px auto 0;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.34);
}

.rate-footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.28);
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ringPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes starPop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  70% {
    transform: scale(1.14);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
