.contact {
  background-color: var(--page-bg);
  padding-block: clamp(22px, 3vh, 38px);
}

.contact-form {
  width: min(100%, 1100px);
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--md-shape-lg);
  padding: clamp(18px, 2.2vw, 30px);
}

.form-progress {
  --completed: 0%;
  list-style: none;
  padding: 0 0 14px;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}

.form-progress::before,
.form-progress::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 25%;
  height: 2px;
  z-index: -1;
}

.form-progress::before {
  width: 50%;
  background: var(--progress-track);
}

.form-progress::after {
  width: var(--completed);
  background: var(--progress-active);
  transition: width 0.28s var(--md-easing-emphasized);
}

.progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--step-done-text);
}

.progress-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1.5px solid var(--progress-number-border);
  font-size: 1rem;
  line-height: 1;
  transition:
    background-color 0.2s var(--md-easing-standard),
    border-color 0.2s var(--md-easing-standard),
    color 0.2s var(--md-easing-standard);
}

.progress-number svg {
  width: 18px;
  height: 18px;
}

.progress-item.is-current {
  color: var(--step-current-text);
}

.progress-item.is-current .progress-number {
  background: var(--step-marker-bg);
  border-color: var(--step-marker-bg);
  color: var(--step-marker-text);
}

.progress-item.is-done {
  color: var(--text);
  cursor: pointer;
}

.progress-item.is-done .progress-number {
  background: var(--selected-bg);
  border-color: var(--progress-done-border);
  color: var(--text);
}

.progress-item.is-done:hover .progress-number,
.progress-item.is-done:focus-visible .progress-number {
  border-color: var(--selected-border);
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.form-step:not([hidden]),
.quote-confirmation:not([hidden]) {
  animation: stepFadeIn 0.26s var(--md-easing-emphasized);
}

.cart-step-heading {
  margin: 0 0 4px;
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  font-weight: 700;
  text-align: center;
}

.cart-step-intro {
  margin: 0 auto 20px;
  text-align: center;
  font-size: 1.11rem;
  color: var(--muted);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.cart-picker {
  padding: clamp(17px, 2.25vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--md-shape-lg);
  background: var(--surface-alt);
  min-width: 0;
}

.cart-control {
  margin-bottom: 16px;
}

.cart-label,
.cart-delivery-selector legend {
  display: block;
  margin: 0 0 7px;
  font-size: 1.07rem;
  font-weight: 700;
  color: var(--text);
}

.cart-unit-hint {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
}

.cart-segments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-segment {
  min-height: 46px;
  flex: 1 1 0;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--md-shape-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 1.08rem;
  transition:
    background-color 0.17s var(--md-easing-standard),
    border-color 0.17s var(--md-easing-standard),
    color 0.17s var(--md-easing-standard);
}

.cart-segment:not(.is-active):hover {
  border-color: var(--selected-border);
  background: var(--selected-bg);
  color: var(--text);
}

.cart-segment.is-active,
.cart-segment.is-active:hover,
.cart-segment.is-active:focus-visible,
.cart-segment.is-active:active {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  border-color: var(--button-primary-bg);
}

.cart-variety-fieldset {
  border: 0;
  padding: 0;
  margin-inline: 0;
}

.cart-variety-radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cart-radio-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--md-shape-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.16s var(--md-easing-standard),
    border-color 0.16s var(--md-easing-standard),
    color 0.16s var(--md-easing-standard);
}

.cart-radio-option:hover {
  border-color: var(--hover-border);
}

.cart-radio-option:has(input:checked) {
  border-color: var(--selected-border);
  background: var(--selected-bg);
  color: var(--text);
}

.cart-radio-option input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--navy);
}

.cart-size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  width: 100%;
}

.cart-size-option {
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--md-shape-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color 0.16s var(--md-easing-standard),
    border-color 0.16s var(--md-easing-standard),
    color 0.16s var(--md-easing-standard);
}

.cart-size-option:not(.is-active):hover {
  border-color: var(--hover-border);
  background: var(--surface-alt);
  color: var(--text);
}

.cart-size-option.is-active,
.cart-size-option.is-active:hover,
.cart-size-option.is-active:focus-visible {
  background: var(--selected-bg);
  border-color: var(--selected-border);
  color: var(--text);
}

.cart-quantity-stepper {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 9px;
  width: 100%;
  align-items: stretch;
}

.cart-quantity-stepper button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--selected-border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--md-shape-sm);
  transition: background-color 0.16s var(--md-easing-standard);
}

.cart-quantity-stepper button svg {
  width: 18px;
  height: 18px;
}

.cart-quantity-stepper button:hover {
  background: var(--selected-bg);
}

.cart-quantity-stepper input {
  width: 100%;
  height: 48px;
  min-height: 48px;
  text-align: center;
  border-color: var(--line);
  border-radius: var(--md-shape-sm);
  background: var(--field-bg);
  color: var(--text);
  font-size: 1.16rem;
  font-weight: 700;
}

.cart-quantity-stepper input::-webkit-outer-spin-button,
.cart-quantity-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-quantity-stepper input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.cart-quantity-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.cart-preset-btn {
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--md-shape-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
  transition:
    background-color 0.16s var(--md-easing-standard),
    border-color 0.16s var(--md-easing-standard),
    color 0.16s var(--md-easing-standard);
}

.cart-preset-btn:hover,
.cart-preset-btn:focus-visible {
  background: var(--selected-bg);
  border-color: var(--selected-border);
  color: var(--text);
}

.cart-add-btn {
  width: 100%;
  min-height: 50px;
  gap: 8px;
}

.cart-add-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

[data-cart-has-items][hidden] {
  display: none !important;
}

.cart-review-help {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--muted);
  margin: 12px 0 0;
}

.cart-error {
  color: var(--error-text);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 10px 0 0;
}

.cart-sidebar {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--md-shape-lg);
  background: var(--surface);
  padding: clamp(16px, 2vw, 24px);
  min-width: 0;
  height: 0;
  min-height: 100%;
}

.cart-sidebar:has(.cart-empty) {
  justify-content: center;
  align-items: center;
}

.cart-sidebar-head,
.cart-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-sidebar-head h4,
.cart-review-head h4 {
  font-size: 1.4rem;
  margin: 0;
}

.cart-review-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-total-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding-inline: 7px;
  border-radius: var(--md-shape-full);
  background: var(--selected-bg);
  border: 1px solid var(--selected-border);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  transform-origin: center;
}

@keyframes cartBadgeBounce {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.cart-total-badge.cart-badge-bounce {
  animation: cartBadgeBounce 0.36s var(--md-easing-emphasized);
}

.cart-items {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1 1 0;
  overflow-wrap: anywhere;
}

.cart-items:has(.cart-empty) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: none;
  padding-right: 0;
  overflow: visible;
}

.cart-group-title {
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.065em;
  font-size: 0.85rem;
  margin: 14px 0 3px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.cart-item-size {
  font-size: 1.13rem;
  color: var(--text);
  line-height: 1.2;
}

.cart-item-sub {
  font-size: 1rem;
  color: var(--muted);
}

.cart-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.cart-item-stepper {
  display: inline-flex;
  align-items: center;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--md-shape-sm);
  background: var(--surface);
  overflow: hidden;
}

.cart-item-step {
  width: 32px;
  height: 100%;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  transition: background-color 0.16s var(--md-easing-standard);
}

.cart-item-step svg {
  width: 14px;
  height: 14px;
}

.cart-item-step:hover:not(:disabled),
.cart-item-step:focus-visible:not(:disabled) {
  background: var(--selected-bg);
}

.cart-item-step:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.cart-item-qty {
  min-width: 28px;
  padding-inline: 4px;
  text-align: center;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
}

.cart-item-remove {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--md-shape-sm);
  background: var(--surface);
  color: var(--text);
  transition:
    background-color 0.16s var(--md-easing-standard),
    border-color 0.16s var(--md-easing-standard),
    color 0.16s var(--md-easing-standard);
}

.cart-item-remove svg {
  width: 17px;
  height: 17px;
}

.cart-item-remove:hover,
.cart-item-remove:focus-visible {
  background: rgba(188, 60, 69, 0.1);
  border-color: var(--error-text);
  color: var(--error-text);
}

.cart-add-another {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid var(--selected-border);
  border-radius: var(--md-shape-full);
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 0.16s var(--md-easing-standard),
    border-color 0.16s var(--md-easing-standard),
    color 0.16s var(--md-easing-standard);
}

.cart-add-another svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.cart-add-another:hover,
.cart-add-another:focus-visible {
  background: var(--selected-bg);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 32px 16px;
  text-align: center;
  margin: auto 0;
}

.cart-empty-icon {
  display: inline-grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1.5px solid var(--line);
  color: var(--muted);
}

.cart-empty-icon svg {
  width: 36px;
  height: 36px;
}

.cart-empty p {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 1.9vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.cart-empty small {
  display: block;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.4vw, 1.18rem);
  line-height: 1.45;
}

.cart-sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
}

.cart-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.cart-delivery-details {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cart-delivery-selector {
  border: 0;
  padding: 0;
  margin: 0;
}

.delivery-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--md-shape-sm);
  background: var(--surface);
  color: var(--text);
  transition:
    background-color 0.16s var(--md-easing-standard),
    border-color 0.16s var(--md-easing-standard);
}

.delivery-choice:hover {
  border-color: var(--hover-border);
}

.delivery-choice:has(input:checked) {
  border-color: var(--selected-border);
  background: var(--selected-bg);
}

.delivery-choice input {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: var(--navy);
}

.delivery-choice strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.2;
}

.delivery-choice small {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.cart-delivery-details .field label {
  font-size: 1.05rem;
  font-weight: 700;
}

.cart-delivery-details .form-control {
  background: var(--field-bg);
  border: 1px solid var(--line);
  color: var(--text);
  min-height: 44px;
  font-size: 1.07rem;
  border-radius: var(--md-shape-sm);
}

.cart-delivery-details textarea.form-control {
  resize: none;
  height: 84px;
  min-height: 84px;
  max-height: 84px;
  overflow-y: auto;
}

.shipping-hint {
  font-size: 0.96rem;
  color: var(--muted);
  margin: -6px 0 0;
}

.cart-review {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--md-shape-lg);
  background: var(--surface-alt);
  padding: 18px;
  min-width: 0;
  height: 0;
  min-height: 100%;
}

.cart-review-items {
  min-height: 0;
}

.cart-checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.cart-checkout-actions .button {
  min-width: 0;
}

.cart-checkout-actions #send-whatsapp {
  flex: 0 1 275px;
}

.button-icon {
  width: 1.16em;
  height: 1.16em;
}

.cart-mobile-bar {
  display: flex;
  gap: 9px;
  padding-top: 15px;
}

.cart-mobile-bar > button {
  flex: 1 1 50%;
  min-height: 49px;
}

.cart-mobile-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-alt);
  color: var(--text);
  border-radius: var(--md-shape-sm);
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-weight: 700;
}

.cart-mobile-chevron {
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.cart-mobile-chevron svg {
  width: 16px;
  height: 16px;
}

.cart-mobile-offcanvas {
  background: var(--surface);
  color: var(--text);
  z-index: 1060;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cart-mobile-offcanvas .offcanvas-header {
  padding: 16px 21px 12px;
  border-bottom: 1px solid var(--line);
}

.cart-mobile-offcanvas .offcanvas-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.5rem;
}

.cart-mobile-offcanvas .offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 12px 22px;
  overflow-y: auto;
}

.cart-mobile-offcanvas .cart-items {
  max-height: none;
}

.cart-mobile-offcanvas-foot {
  padding: 12px 20px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.quote-confirmation {
  padding: 30px 12px;
}

.quote-confirmation .confirm-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--selected-bg);
  border: 2px solid var(--selected-border);
  color: var(--text);
}

.quote-confirmation .confirm-icon svg {
  width: 26px;
  height: 26px;
}

.quote-confirmation h3 {
  font-size: 1.75rem;
}

.quote-confirmation p {
  max-width: 500px;
  margin: 12px auto;
  font-size: 1.1rem;
  color: var(--muted);
}

.confirm-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}

.cart-whatsapp-link {
  display: inline-flex;
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
  color: var(--text);
}
