/* ==========================================================================
   AleFotoBudka.pl - System Rezerwacji & Konfigurator Usług
   Design System spójny ze stroną główną (DM Sans + Playfair Display)
   ========================================================================== */

:root {
  --bg: #f8f2ed;
  --paper: #fffaf6;
  --ink: #241b1a;
  --muted: #6f625f;
  --accent: #c96f56;
  --accent-2: #d9a06e;
  --accent-hover: #b0573e;
  --line: rgba(84, 57, 48, 0.14);
  --line-strong: rgba(84, 57, 48, 0.28);
  --shadow: 0 24px 70px rgba(91, 58, 46, 0.12);
  --shadow-sm: 0 10px 30px rgba(91, 58, 46, 0.08);
  --radius: 26px;
  --radius-sm: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1320px, calc(100% - 48px));
  margin: auto;
}

/* ==========================================================================
   Glowing Cursor
   ========================================================================== */
.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 142, 107, 0.16), transparent 68%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

/* ==========================================================================
   Navigation Header (matching index.html)
   ========================================================================== */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: 0.35s cubic-bezier(0.2, 0.75, 0.2, 1);
  background: rgba(250, 244, 239, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

header.scrolled {
  background: rgba(250, 244, 239, 0.95);
  box-shadow: 0 8px 35px rgba(50, 30, 20, 0.08);
}

.nav {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: block;
  width: 208px;
  height: 92px;
  position: relative;
}

.logo img {
  position: absolute;
  top: 8px;
  left: 0;
  height: 136px !important;
  width: auto !important;
  max-width: none !important;
  filter: drop-shadow(0 12px 24px rgba(91, 58, 46, 0.12));
  z-index: 10;
  transition: height 0.35s cubic-bezier(0.2, 0.75, 0.2, 1), top 0.35s cubic-bezier(0.2, 0.75, 0.2, 1);
}

header.scrolled .logo img {
  height: 80px !important;
  top: 6px;
}

.links {
  display: flex;
  gap: 34px;
  font-size: 19px;
  font-family: "Playfair Display", serif;
  font-weight: 600;
}

.links a {
  position: relative;
  padding: 8px 0;
  color: #5c3d35;
}

.links a:hover {
  color: var(--accent);
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social {
  color: #5c3d35;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.5);
}

.social:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: 0.35s;
  cursor: pointer;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #d88465);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(201, 111, 86, 0.28);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(201, 111, 86, 0.36);
  background: linear-gradient(135deg, var(--accent-hover), #c96f56);
}

.btn.secondary {
  border-color: rgba(149, 88, 67, 0.45);
  background: rgba(255, 255, 255, 0.6);
  color: #9a543f;
}

.btn.secondary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
}

.call-btn {
  padding: 12px 22px;
  font-size: 14px;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  transition: 0.2s;
}

.menu-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile drawer */
.mobile-nav-drawer {
  display: none;
}

@media (max-width: 1100px) {
  .links {
    display: none;
  }
  .menu-btn {
    display: grid;
  }
  .nav-actions .social {
    display: none;
  }
  .nav-actions .call-btn {
    padding: 10px 16px;
    font-size: 12px;
  }
  .mobile-nav-drawer {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.75, 0.2, 1);
    background: rgba(250, 244, 239, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
  }
  .mobile-nav-drawer.open {
    max-height: 480px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }
  .mobile-nav-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .mobile-nav-link {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    font-weight: 600;
    color: #5c3d35;
    padding: 8px 0;
    border-bottom: 1px solid rgba(84, 57, 48, 0.08);
  }
  .mobile-nav-link:hover {
    color: var(--accent);
  }
  .mobile-actions {
    margin-top: 10px;
  }
  .mobile-actions .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .nav {
    height: 72px;
  }
  .logo {
    width: 120px;
    height: 72px;
  }
  .logo img {
    height: 60px !important;
    top: 6px;
  }
  header.scrolled .logo img {
    height: 50px !important;
    top: 11px;
  }
  .nav-actions .call-btn {
    display: none;
  }
}

/* ==========================================================================
   Page Main & Subpage Hero
   ========================================================================== */
.page-main {
  flex: 1;
  padding-top: 110px;
  padding-bottom: 90px;
  position: relative;
  z-index: 1;
}

.subpage-hero {
  padding: 40px 0 30px;
  text-align: center;
}

.subpage-hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.subpage-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.1;
  margin: 0 0 16px 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.subpage-hero h1 em {
  font-style: normal;
  color: var(--accent);
  display: inline-block;
}

.subpage-hero p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   Wizard Stepper
   ========================================================================== */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 680px;
  margin: 0 auto 20px;
  padding: 18px 26px;
  background: rgba(255, 250, 246, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}

.step-item.active {
  opacity: 1;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  background: rgba(84, 57, 48, 0.08);
  color: var(--ink);
  transition: 0.3s;
}

.step-item.active .step-num {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(201, 111, 86, 0.35);
}

.step-item.completed .step-num {
  background: #2e7d32;
  color: #fff;
}

.step-label {
  text-align: left;
}

.step-label small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.step-label strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 16px;
  position: relative;
  transition: background 0.3s;
}

.step-line.filled {
  background: var(--accent);
}

@media (max-width: 600px) {
  .wizard-stepper {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }
  .step-label {
    display: none;
  }
  .step-line {
    margin: 0 10px;
  }
}

/* ==========================================================================
   Wizard Card Container
   ========================================================================== */
.wizard-section {
  padding-top: 10px;
}

.wizard-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 50px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.wizard-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 159, 120, 0.18), transparent 70%);
  right: -80px;
  top: -80px;
  pointer-events: none;
}

@media (max-width: 760px) {
  .wizard-card {
    padding: 28px 20px;
    border-radius: var(--radius-sm);
  }
}

.wizard-card-header {
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.wizard-card-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  margin: 0 0 8px 0;
  font-weight: 600;
  color: var(--ink);
}

.wizard-card-header p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Form Fields & Controls (matching index.html field style)
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.form-group label {
  margin-bottom: 9px;
  font-weight: 600;
  font-size: 14px;
  color: #3b2b27;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label small {
  color: var(--accent);
  font-weight: 700;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
  width: 100%;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 111, 86, 0.12);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Alert Boxes */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.alert-danger {
  background: #fff3f0;
  border-color: rgba(201, 111, 86, 0.3);
  color: #a83c27;
}

.alert-info {
  background: #fdf6ee;
  border-color: rgba(217, 160, 110, 0.35);
  color: #8a5725;
}

/* ==========================================================================
   Step 2 - Services Cards
   ========================================================================== */
.services-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 24px;
  background: rgba(201, 111, 86, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 111, 86, 0.2);
  margin-bottom: 30px;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}

.btn-change-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.btn-change-date:hover {
  color: var(--accent-hover);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: 0.35s cubic-bezier(0.2, 0.75, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.service-card.selected {
  border-color: var(--accent);
  box-shadow: 0 16px 45px rgba(201, 111, 86, 0.16);
  background: #fffdfb;
}

.service-card.unavailable {
  opacity: 0.65;
  background: #fcf9f7;
  border-style: dashed;
}

.service-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-label {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 24px;
  padding: 24px;
  cursor: pointer;
  align-items: center;
  position: relative;
}

@media (max-width: 900px) {
  .service-label {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.service-image-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f0eae4;
  position: relative;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-name {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--ink);
  line-height: 1.2;
}

.service-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-action-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .service-action-box {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
}

.service-price {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.select-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(84, 57, 48, 0.08);
  color: #5c3d35;
  transition: 0.25s;
}

.service-card.selected .select-toggle-pill {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(201, 111, 86, 0.3);
}

.select-toggle-pill .check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-size: 11px;
}

.service-card.selected .select-toggle-pill .check-icon {
  background: #ffffff;
  color: var(--accent);
}

/* Service Details Accordion (Time & Attributes) */
.service-details-container {
  padding: 0 24px 28px 24px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  background: #fffcf9;
}

.service-details-header {
  font-size: 15px;
  font-weight: 700;
  color: #3b2b27;
  margin: 20px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  padding-top: 16px;
}

.service-time-group,
.service-quantity-group {
  min-width: 170px;
  margin-bottom: 0;
}

/* ==========================================================================
   Attributes & Options (Templates, Backdrops, Hours, etc.)
   ========================================================================== */
.attributes-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.attribute-group {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.attribute-group h4 {
  width: 100%;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attribute-group h4[data-required="1"]::after {
  content: "Wymagane";
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(201, 111, 86, 0.1);
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: auto;
}

.option-item {
  width: calc(25% - 11px);
  min-width: 140px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fffaf6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

@media (max-width: 760px) {
  .option-item {
    width: calc(50% - 7px);
    min-width: 120px;
    padding: 10px;
  }
}

.option-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 58, 46, 0.1);
}

.option-item:has(input:checked),
.option-item.selected {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(201, 111, 86, 0.2);
}

.option-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.option-item:hover .option-image {
  transform: scale(1.05);
}

.option-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(84, 57, 48, 0.04);
  border-radius: 10px;
  margin-bottom: 10px;
}

.option-item label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.35;
  margin-bottom: 4px;
}

.option-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

.attribute-option {
  position: absolute;
  top: 10px;
  left: 10px;
  accent-color: var(--accent);
  transform: scale(1.2);
  cursor: pointer;
  z-index: 2;
}
  position: relative;
  text-align: center;
}

.option-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 58, 46, 0.08);
}

.option-item.selected,
.option-item:has(input:checked) {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(201, 111, 86, 0.2);
}

.option-item.selected::after,
.option-item:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.option-thumb-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #eee6e0;
  position: relative;
}

.option-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.option-item:hover .option-thumb {
  transform: scale(1.08);
}

.option-zoom-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.option-thumb-wrap:hover .option-zoom-btn {
  opacity: 1;
}

.option-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.option-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

/* ==========================================================================
   PŁYWAJĄCY PASEK PODSUMOWANIA (FLOATING SUMMARY BAR AT BOTTOM)
   ========================================================================== */
.sticky-summary-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  background: rgba(36, 29, 28, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  z-index: 950;
  padding: 16px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-summary-inner {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.summary-info {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.summary-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  color: #cfc4c0;
  letter-spacing: 0.02em;
}

.summary-count-badge strong {
  color: #ffffff;
  font-size: 15px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 10px var(--accent);
}

.summary-price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.summary-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bfb3ae;
  font-weight: 500;
}

.total-price-value {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 700;
  color: #f09c7a;
  letter-spacing: -0.02em;
}

.sticky-summary-bar .submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  padding: 16px 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #d88465);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(201, 111, 86, 0.4);
  transition: 0.35s;
  white-space: nowrap;
}

.sticky-summary-bar .submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(201, 111, 86, 0.55);
  background: linear-gradient(135deg, var(--accent-hover), #c96f56);
}

/* Zapobiegaj zakrywaniu treści formularza przez pasek na dole */
#order-form {
  padding-bottom: 140px;
}

@media (max-width: 900px) {
  .sticky-summary-inner {
    width: calc(100% - 32px);
    gap: 16px;
  }
  .summary-info {
    gap: 16px;
  }
  .total-price-value {
    font-size: 26px;
  }
}

@media (max-width: 680px) {
  .sticky-summary-bar {
    padding: 14px 0;
  }
  .sticky-summary-inner {
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .summary-info {
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }
  .summary-count-badge {
    padding: 6px 12px;
    font-size: 12px;
  }
  .total-price-value {
    font-size: 24px;
  }
  .sticky-summary-bar .submit-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 13px;
  }
  #order-form {
    padding-bottom: 180px;
  }
}

/* ==========================================================================
   Summary Modal
   ========================================================================== */
.summary-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 29, 28, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.summary-modal-overlay.open,
.summary-modal-overlay[style*="display: flex"] {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.summary-modal-content {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}

.summary-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-modal-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin: 0;
  color: var(--ink);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent);
}

#summary-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
}

.summary-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.summary-item:first-child {
  padding-top: 0;
}

.summary-item-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.summary-item-details {
  flex: 1;
}

.summary-item-details h4 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.summary-item-attributes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-item-attributes li {
  font-size: 13px;
  color: #5c4d49;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-item-attributes li img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
}

.summary-final-price {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}

.summary-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.btn-secondary,
#summary-modal-correct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(149, 88, 67, 0.4);
  background: #ffffff;
  color: #5c3d35;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover,
#summary-modal-correct-btn:hover {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.submit-button,
#summary-modal-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 30px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #d88465);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(201, 111, 86, 0.35);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.submit-button:hover,
#summary-modal-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(201, 111, 86, 0.5);
  background: linear-gradient(135deg, var(--accent-hover), #c96f56);
}

/* ==========================================================================
   Loading Overlay & Lightbox
   ========================================================================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 15, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-align: center;
}

.loading-overlay[style*="display: flex"] {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  max-width: 460px;
  width: calc(100% - 40px);
  padding: 44px 32px;
  background: rgba(36, 29, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  margin: auto;
}

.loading-spinner {
  width: 58px;
  height: 58px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 6px;
}

.loading-content p {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.loading-content small {
  color: #cfc4c0;
  font-size: 14px;
  line-height: 1.5;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--accent);
}

/* ==========================================================================
   Thank You Screen
   ========================================================================== */
.thank-you-box {
  text-align: center;
  padding: 40px 20px;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 111, 86, 0.2), rgba(201, 111, 86, 0.08));
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 38px;
  margin: 0 auto 24px;
}

.thank-you-box h1 {
  font-family: "Playfair Display", serif;
  font-size: 38px;
  color: var(--ink);
  margin: 0 0 16px 0;
}

.order-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(201, 111, 86, 0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.05em;
  margin: 10px 0 24px;
  border: 1px solid rgba(201, 111, 86, 0.25);
}

.thank-you-box p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 12px;
}

.thank-you-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer (matching index.html)
   ========================================================================== */
footer {
  background: #241d1c;
  color: #efe8e4;
  padding: 62px 0 26px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
}

.footer-logo {
  height: 90px;
  width: auto;
}

.footer-grid p,
.footer-grid a {
  color: #bfb3ae;
  line-height: 1.7;
}

.footer-grid h4 {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: #ffffff;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 42px;
  padding-top: 20px;
  color: #9b8e89;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .copyright {
    flex-direction: column;
    gap: 10px;
  }
}
