* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 225, 215, 0.8), transparent 35%),
    linear-gradient(180deg, #fffaf7 0%, #f8f4ef 100%);
  color: #261c17;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero,
.order-form-section,
.gallery,
.package-card {
  border: 1px solid rgba(80, 50, 26, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(58, 35, 21, 0.08);
  backdrop-filter: blur(14px);
}

.hero {
  border-radius: 28px;
  padding: 28px;
  margin-bottom: 24px;
}

.hero__eyebrow,
.section-head__eyebrow,
.package-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9f6f49;
}

.hero__title,
.section-head__title {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  color: #241813;
}

.hero__subtitle {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #6a5548;
}

.gallery {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
}

.thanks-summary-card {
  border: 1px solid rgba(80, 50, 26, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(58, 35, 21, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 28px;
}

.thanks-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.thanks-summary-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbf6f1 100%);
  border: 1px solid rgba(80, 50, 26, 0.08);
}

.thanks-summary-item__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9f6f49;
}

.thanks-summary-item__value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #241813;
  line-height: 1.45;
}

.thanks-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.thanks-detail-panel {
  border-radius: 20px;
  border: 1px solid rgba(80, 50, 26, 0.08);
  background: #fff;
  padding: 20px;
}

.thanks-detail-panel__title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9f6f49;
}

.thanks-detail-panel__content {
  color: #5c473b;
  line-height: 1.8;
}

.thanks-products-list {
  display: grid;
  gap: 12px;
}

.thanks-products-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(80, 50, 26, 0.12);
}

.thanks-products-list__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.thanks-products-list__name {
  color: #241813;
  font-weight: 600;
  line-height: 1.5;
}

.thanks-products-list__price {
  color: #9a3b00;
  font-weight: 800;
  white-space: nowrap;
}

.thanks-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff7ef;
  border: 1px solid rgba(154, 59, 0, 0.12);
  color: #7c4b28;
  line-height: 1.7;
}

.selected-package-card {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 22px;
  border: 1px solid rgba(80, 50, 26, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(58, 35, 21, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 20px;
  margin-bottom: 24px;
}

.selected-package-card__media {
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #f6ede5 0%, #fff8f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.selected-package-card__media--empty {
  display: none;
}

.selected-package-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.selected-package-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.selected-package-card__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  color: #241813;
}

.selected-package-card__description {
  color: #6d594d;
  line-height: 1.75;
}

.selected-package-card__price {
  font-size: 30px;
  font-weight: 800;
  color: #9a3b00;
}

.gallery__item {
  display: block;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
}

.packages {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.package-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  border-radius: 26px;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.package-card--selected {
  border-color: rgba(168, 96, 36, 0.45);
  box-shadow: 0 20px 54px rgba(168, 96, 36, 0.12);
}

.package-card__media {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #f6ede5 0%, #fff8f3 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.package-card__media--empty {
  display: none;
}

.package-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.package-card__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.package-card__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  color: #241813;
}

.package-card__description {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #6d594d;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.size-option {
  min-height: 44px;
  border: 1.5px solid #d7d0ca;
  background: #fff;
  color: #3d342e;
  border-radius: 11px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 160ms ease;
}

.size-option:hover {
  border-color: #7d695c;
  transform: translateY(-1px);
}

.size-option.is-selected {
  border-color: #332b26;
  background: #332b26;
  color: #fff;
  box-shadow: 0 6px 14px rgba(51, 43, 38, 0.22);
}

.size-option.is-selected::after {
  content: "  \2713";
  color: #e9d8cb;
}

.package-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.package-card__old-price {
  color: #a08f84;
  text-decoration: line-through;
  font-size: 17px;
}

.package-card__price {
  font-size: 34px;
  font-weight: 800;
  color: #9a3b00;
}

.package-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.package-card__meta-item {
  border-radius: 999px;
  background: #f7efe8;
  color: #7a573f;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.package-card__cta,
.submit-button {
  border: 0;
  border-radius: 18px;
  padding: 15px 24px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
  cursor: pointer;
}

.package-card__cta {
  width: 100%;
  align-self: stretch;
}

.submit-button {
  width: 100%;
  display: block;
}

.order-form-section {
  border-radius: 28px;
  padding: 20px 28px 28px;
}

.order-size-section {
  margin-top: 18px;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid #e7e2dc;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(38, 30, 23, 0.08);
}

.section-head--center {
  text-align: center;
}

.section-head__title--large {
  font-size: clamp(34px, 4.6vw, 56px);
}

.size-picker-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #29231f 0%, #4a3b32 100%);
}

.size-picker-header strong,
.size-picker-header small {
  display: block;
}

.size-picker-header strong {
  margin-bottom: 3px;
  font-size: 21px;
  line-height: 1.2;
}

.size-picker-header small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.size-picker-header__icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
}

.size-picker-header__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.size-picker-body {
  padding: 18px;
}

.size-picker-card {
  padding: 16px;
  border: 1px solid #ece8e3;
  border-radius: 14px;
  background: #fbfaf8;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.size-picker-card.has-selection {
  border-color: #b9a18e;
  background: #fff;
  box-shadow: 0 5px 16px rgba(50, 39, 31, 0.07);
}

.size-picker-card__heading,
.size-picker-card__label {
  display: flex;
  align-items: center;
}

.size-picker-card__heading {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.size-picker-card__label {
  gap: 10px;
  color: #322b26;
  font-size: 15px;
  font-weight: 700;
}

.size-picker-card__number {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #332b26;
  font-size: 13px;
}

.size-picker-card__status {
  color: #8b8179;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.size-picker-card.has-selection .size-picker-card__status {
  color: #397a52;
}

.order-size-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 9px;
}

.order-size-option {
  min-height: 48px;
  padding: 8px 10px;
  border: 1.5px solid #d7d0ca;
  border-radius: 11px;
  color: #3d342e;
  background: #fff;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.order-size-option:hover {
  border-color: #7d695c;
  transform: translateY(-1px);
}

.order-size-option:focus-visible {
  outline: 3px solid rgba(139, 107, 86, 0.25);
  outline-offset: 2px;
}

.order-size-option.is-selected {
  border-color: #332b26;
  color: #fff;
  background: #332b26;
  box-shadow: 0 6px 14px rgba(51, 43, 38, 0.22);
}

.order-size-option.is-selected::after {
  content: "  \2713";
  color: #e9d8cb;
}

.order-size-select {
  display: none;
}

.size-picker-error {
  margin-top: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: #573f31;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(88, 64, 46, 0.16);
  border-radius: 16px;
  background: #fff;
  color: #281b14;
  padding: 14px 16px;
  min-height: 53px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field select,
.order-size-select {
  height: 53px;
  line-height: 1.2;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(168, 96, 36, 0.5);
  box-shadow: 0 0 0 4px rgba(168, 96, 36, 0.08);
}

.field-error {
  min-height: 18px;
  margin: 0;
  color: #c23b26;
  font-size: 13px;
}

.form-feedback {
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
}

.form-feedback.is-error {
  background: #fff0ed;
  color: #b23120;
}

.form-feedback.is-success {
  background: #ecfff0;
  color: #1f7a35;
}

.submit-button[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

@media (max-width: 840px) {
  .thanks-summary-grid,
  .thanks-detail-layout {
    grid-template-columns: 1fr;
  }

  .selected-package-card {
    grid-template-columns: 1fr;
  }

  .package-card {
    grid-template-columns: 1fr;
  }

  .package-card__media {
    min-height: 200px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .size-picker-header {
    padding: 15px 16px;
  }

  .size-picker-header strong {
    font-size: 18px;
  }

  .size-picker-body {
    padding: 12px;
  }

  .size-picker-card {
    padding: 13px;
  }

  .order-size-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .order-size-option {
    min-height: 46px;
  }
}
