.patv-calendar-app {
  --patv-bg: #eef1f4;
  --patv-card: rgba(255, 255, 255, 0.96);
  --patv-text: #2c1d25;
  --patv-muted: #6b6570;
  --patv-line: #d9dde3;
  --patv-accent: #7a1036;
  --patv-accent-2: #9d4561;
  --patv-soft: #f0f2f5;
  --patv-ok: #236b4c;
  --patv-bad: #9a2236;
  --patv-shadow: 0 24px 70px rgba(52, 58, 68, 0.12);
  color: var(--patv-text);
  background:
    radial-gradient(circle at 85% 10%, rgba(122, 16, 54, 0.08), transparent 24rem),
    linear-gradient(135deg, #f7f8fa 0%, var(--patv-bg) 100%);
  padding: clamp(18px, 4vw, 34px);
  border-radius: 0;
  width: min(1220px, 100%);
  margin: 0 auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.patv-calendar-app * {
  box-sizing: border-box;
}

.patv-calendar-app button,
.patv-calendar-app input,
.patv-calendar-app textarea,
.patv-calendar-app select {
  font: inherit;
}

.patv-project-banner {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
  gap: 22px;
  margin-bottom: 22px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #8c123b 0%, #6f0f2f 62%, #5d0c26 100%);
  box-shadow: var(--patv-shadow);
  min-height: 188px;
}

.patv-banner-art {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.patv-tile,
.patv-shape {
  position: absolute;
  display: block;
}

.patv-tile { opacity: 0.94; }
.patv-tile-a { left: 24px; top: 18px; width: 64px; height: 68px; background: #c98fa0; }
.patv-tile-b { left: 88px; top: 18px; width: 58px; height: 68px; background: #ef5b6f; }
.patv-tile-c { left: 146px; top: 18px; width: 58px; height: 68px; background: #7b5575; }
.patv-tile-d { left: 24px; top: 86px; width: 64px; height: 72px; background: #e6d9dd; }
.patv-tile-e { left: 88px; top: 86px; width: 58px; height: 72px; background: #ef8492; }
.patv-tile-f { left: 146px; top: 86px; width: 58px; height: 72px; background: #f2c3cc; }

.patv-banner-copy {
  position: relative;
  padding: 28px 34px 26px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.patv-banner-copy::before,
.patv-banner-copy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 36px;
  height: 1px;
  background: rgba(255,255,255,0.28);
}

.patv-banner-copy::before { top: 28px; }
.patv-banner-copy::after { bottom: 24px; }

.patv-banner-kicker {
  margin: 0 0 8px;
  color: rgba(255, 240, 245, 0.95);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 700;
}

.patv-banner-title {
  margin: 0 !important;
  color: #f0c1cd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 760px;
}

.patv-bottle-mini {
  left: 112px;
  top: 22px;
  width: 34px;
  height: 104px;
  border-radius: 13px 13px 3px 3px;
  background: linear-gradient(180deg, #ef5266 0 28%, #7d173d 28% 100%);
}

.patv-bottle-mini::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 46px;
  left: 9px;
  top: -34px;
  border-radius: 5px 5px 0 0;
  background: #f5e7e8;
}

.patv-glass-mini {
  left: 44px;
  top: 28px;
  width: 22px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 0 0 14px 14px;
}

.patv-glass-mini::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: #7a1036;
}

.patv-glass-mini::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 56px;
  width: 2px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  box-shadow: -14px 40px 0 -1px rgba(255,255,255,0.9), 14px 40px 0 -1px rgba(255,255,255,0.9);
}

.patv-cork-mini {
  right: 18px;
  top: 24px;
  width: 16px;
  height: 70px;
  border: 3px solid rgba(255,255,255,0.86);
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 10px 0;
}

.patv-cork-mini::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 68px;
  width: 2px;
  height: 60px;
  background: rgba(255,255,255,0.86);
  transform: rotate(28deg);
}

.patv-grapes-mini {
  left: 26px;
  bottom: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #722344;
  box-shadow:
    12px 0 0 #9d4561,
    24px 0 0 #722344,
    6px 12px 0 #9d4561,
    18px 12px 0 #ce7a87,
    30px 12px 0 #722344,
    18px -12px 0 #5e0d28;
}

.patv-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 214px;
  margin-bottom: 26px;
  padding: 32px 34px;
  border: 1px solid var(--patv-line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--patv-shadow);
  overflow: hidden;
  position: relative;
}

.patv-hero::after {
  content: "";
  position: absolute;
  right: 31%;
  bottom: 34px;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 16, 54, 0.2), transparent);
}

.patv-eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--patv-accent);
}

.patv-calendar-app h1,
.patv-calendar-app h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
}

.patv-calendar-app h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  letter-spacing: -0.05em;
  color: var(--patv-text);
}

.patv-calendar-app h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  letter-spacing: -0.035em;
  color: var(--patv-text);
}

.patv-lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--patv-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.patv-wine-mark {
  width: 230px;
  height: 170px;
  flex: 0 0 230px;
  position: relative;
}

.patv-wine-mark span {
  position: absolute;
  display: block;
}

.patv-wine-mark::before {
  content: "";
  position: absolute;
  inset: 20px 18px 0 50px;
  border-radius: 80px 80px 18px 18px;
  background: linear-gradient(180deg, rgba(157, 69, 97, 0.14), rgba(182, 124, 140, 0.08));
}

.patv-bottle {
  width: 54px;
  height: 132px;
  right: 64px;
  bottom: 12px;
  border-radius: 22px 22px 4px 4px;
  background: linear-gradient(180deg, #9e204a 0 24%, #5d153c 24% 100%);
}

.patv-bottle::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 68px;
  left: 14px;
  top: -48px;
  border-radius: 9px 9px 0 0;
  background: #b62a54;
}

.patv-bottle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 36px;
  background: #f6f8fa;
}

.patv-glass {
  left: 14px;
  bottom: 10px;
  width: 64px;
  height: 92px;
  border: 2px solid rgba(122, 16, 54, 0.28);
  border-radius: 12px 12px 28px 28px;
}

.patv-glass::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 37px;
  border-radius: 0 0 26px 26px;
  background: #8d123f;
}

.patv-glass::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: -48px;
  width: 2px;
  height: 48px;
  background: rgba(122, 16, 54, 0.28);
  box-shadow: -22px 48px 0 -1px rgba(122, 16, 54, 0.32), 22px 48px 0 -1px rgba(122, 16, 54, 0.32);
}

.patv-grapes {
  right: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8d123f;
  box-shadow:
    -26px 28px 0 #6f173f,
    0 28px 0 #a62a50,
    26px 28px 0 #c86863,
    -13px 56px 0 #c86863,
    13px 56px 0 #8d123f;
}

.patv-grapes::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -10px;
  width: 56px;
  height: 44px;
  border-radius: 80% 12%;
  background: #a96682;
  transform: rotate(-32deg);
}

.patv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.patv-card {
  border: 1px solid var(--patv-line);
  border-radius: 28px;
  background: var(--patv-card);
  box-shadow: 0 18px 55px rgba(52, 58, 68, 0.08);
  padding: 24px;
}

.patv-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.patv-ghost-btn {
  min-height: 42px;
  border: 1px solid rgba(122, 16, 54, 0.18);
  background: rgba(255,255,255,0.75);
  color: var(--patv-accent);
  border-radius: 999px;
  padding: 9px 15px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 720;
}

.patv-ghost-btn:hover {
  background: var(--patv-soft);
}

.patv-weekday-grid,
.patv-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.patv-weekday-grid {
  margin-bottom: 9px;
  color: var(--patv-muted);
  font-size: 0.76rem;
  text-align: center;
  font-weight: 800;
}

.patv-day-cell {
  min-height: 105px;
  border: 1px solid var(--patv-line);
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  position: relative;
  color: var(--patv-text);
}

.patv-day-cell:hover {
  border-color: rgba(122, 16, 54, 0.4);
}

.patv-day-cell.patv-outside {
  opacity: 0.42;
}

.patv-day-cell.patv-selected {
  outline: 3px solid rgba(122, 16, 54, 0.16);
  border-color: var(--patv-accent);
}

.patv-day-number {
  font-weight: 850;
}

.patv-day-status {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  font-size: 0.72rem;
  color: var(--patv-muted);
}

.patv-day-cell.patv-has-availability .patv-day-status {
  color: var(--patv-ok);
  font-weight: 800;
}

.patv-day-cell.patv-no-availability {
  background: rgba(237, 240, 244, 0.9);
}

.patv-booking-card {
  position: sticky;
  top: 18px;
}

.patv-booking-card p {
  color: var(--patv-muted);
  line-height: 1.55;
}

.patv-slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}

.patv-slot-btn {
  border: 1px solid rgba(122, 16, 54, 0.18);
  background: #ffffff;
  color: var(--patv-text);
  border-radius: 14px;
  padding: 12px 8px;
  cursor: pointer;
  font-weight: 760;
}

.patv-slot-btn:hover,
.patv-slot-btn.patv-selected-slot-btn {
  background: var(--patv-accent);
  color: white;
}

.patv-booking-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.patv-booking-form label {
  display: grid;
  gap: 7px;
  color: var(--patv-muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.patv-booking-form input,
.patv-booking-form textarea {
  width: 100%;
  border: 1px solid rgba(122, 16, 54, 0.15);
  border-radius: 14px;
  background: #ffffff;
  color: var(--patv-text);
  padding: 12px 13px;
  outline: none;
}

.patv-booking-form input:focus,
.patv-booking-form textarea:focus {
  border-color: var(--patv-accent);
  box-shadow: 0 0 0 4px rgba(122, 16, 54, 0.08);
}

.patv-primary-btn {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--patv-accent), #5f173f);
  color: white;
  padding: 13px 18px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(122, 16, 54, 0.18);
}

.patv-primary-btn:hover {
  filter: brightness(1.05);
}

.patv-selected-slot {
  border-radius: 16px;
  padding: 13px;
  background: var(--patv-soft);
  color: var(--patv-accent);
  font-weight: 850;
}

.patv-message {
  margin-top: 16px;
  border-radius: 16px;
  padding: 14px;
  background: rgba(35, 107, 76, 0.1);
  color: var(--patv-ok);
  font-weight: 760;
}

.patv-message.patv-error {
  background: rgba(154, 34, 54, 0.1);
  color: var(--patv-bad);
}

.patv-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .patv-project-banner,
  .patv-layout {
    grid-template-columns: 1fr;
  }

  .patv-banner-art {
    min-height: 160px;
  }

  .patv-banner-copy {
    padding: 12px 22px 28px;
  }

  .patv-hero {
    display: block;
  }

  .patv-wine-mark {
    margin-top: 24px;
  }

  .patv-booking-card {
    position: static;
  }

  .patv-day-cell {
    min-height: 82px;
    padding: 9px;
  }

  .patv-day-status {
    display: none;
  }
}

@media (max-width: 620px) {
  .patv-calendar-app {
    padding: 12px;
  }

  .patv-hero,
  .patv-card,
  .patv-project-banner {
    border-radius: 22px;
  }

  .patv-hero,
  .patv-card {
    padding: 18px;
  }

  .patv-banner-title {
    font-size: 1.7rem;
  }

  .patv-calendar-grid,
  .patv-weekday-grid {
    gap: 4px;
  }

  .patv-day-cell {
    min-height: 54px;
    border-radius: 12px;
  }

  .patv-slot-list {
    grid-template-columns: 1fr;
  }
}


.patv-hero.patv-hero-simple {
  min-height: auto;
  padding: 22px 0 28px;
  margin-bottom: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: block;
}

.patv-hero.patv-hero-simple::after {
  display: none;
}

.patv-hero.patv-hero-simple h1 {
  max-width: none;
  text-align: left;
}

.patv-day-cell.patv-no-availability {
  border-style: dashed;
  background: rgba(229, 232, 237, 0.95);
}

.patv-day-cell.patv-no-availability .patv-day-status,
.patv-day-cell.patv-full-day-blocked .patv-day-status {
  color: var(--patv-bad);
  font-weight: 800;
}

.patv-unavailable-note {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(154, 34, 54, 0.08);
  color: var(--patv-bad) !important;
  font-weight: 750;
}

.patv-slot-btn:disabled,
.patv-slot-btn.patv-unavailable-slot {
  cursor: not-allowed;
  color: #8c8f96;
  background: #edf0f4;
  border-color: #cfd4dc;
  text-decoration: none;
  opacity: 1;
}

.patv-slot-btn:disabled:hover,
.patv-slot-btn.patv-unavailable-slot:hover {
  color: #8c8f96;
  background: #edf0f4;
}


.patv-form-help {
  margin: -6px 0 0;
  color: var(--patv-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
