.udm-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}

.udm-booking-form {
  padding: 0;
  overflow: hidden;
}

.udm-form-section {
  position: relative;
  padding: 34px;
  border-bottom: 1px solid var(--ud-line, #cbd9ec);
}

.udm-form-section:last-child {
  border-bottom: 0;
}

.udm-form-section h2 {
  margin: 0 0 24px 48px;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.udm-step {
  position: absolute;
  top: 35px;
  left: 34px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ud-blue, #1647b8);
  color: #fff;
  font-weight: 800;
}

.udm-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.udm-type-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--ud-line, #cbd9ec);
  border-radius: 16px;
  cursor: pointer;
}

.udm-type-card:has(input:checked) {
  border-color: var(--ud-blue, #1647b8);
  background: var(--ud-light, #edf4ff);
}

.udm-type-card input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: var(--ud-blue, #1647b8);
}

.udm-type-card strong,
.udm-type-card small {
  display: block;
}

.udm-type-card small {
  margin-top: 4px;
  color: var(--ud-muted, #536273);
}

.udm-service-list {
  display: grid;
  gap: 10px;
}

.udm-service-list label {
  display: grid;
  align-items: center;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--ud-line, #cbd9ec);
  border-radius: 12px;
  cursor: pointer;
}

.udm-service-list label:has(input:checked) {
  border-color: var(--ud-blue, #1647b8);
  background: var(--ud-light, #edf4ff);
}

.udm-service-list input,
.udm-delivery input {
  width: 21px;
  height: 21px;
  accent-color: var(--ud-blue, #1647b8);
}

.udm-delivery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 25px 0 0;
  padding: 0;
  border: 0;
}

.udm-delivery legend {
  width: 100%;
  margin-bottom: 6px;
  color: var(--ud-navy, #061f4f);
  font-weight: 800;
}

.udm-delivery label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.udm-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--ud-navy, #061f4f);
  color: #fff;
  font-weight: 800;
}

.udm-total strong {
  font-family: "Poppins", sans-serif;
  font-size: 1.65rem;
}

.udm-confirmation .ud-consent {
  margin: 16px 0;
}

.udm-order-summary {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--ud-line, #cbd9ec);
  border-radius: 14px;
  background: #f7faff;
}

.udm-order-summary h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.udm-order-summary p:last-child,
.udm-cancellation-intro p:last-child {
  margin-bottom: 0;
}

.udm-cancellation-intro {
  margin-bottom: 26px;
  padding: 22px 24px;
  border-left: 5px solid var(--ud-blue, #1647b8);
  border-radius: 0 14px 14px 0;
  background: var(--ud-light, #edf4ff);
}

.udm-cancellation-form .ud-form-submit {
  margin-top: 24px;
}

.udm-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.udm-pay-button {
  width: 100%;
  margin-top: 12px;
}

.udm-pay-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.udm-sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 112px;
}

.udm-sidebar .ud-card p {
  margin-bottom: 10px;
}

.udm-result {
  padding: 34px;
  border: 2px solid var(--ud-blue, #1647b8);
  border-radius: 20px;
  background: var(--ud-light, #edf4ff);
}

.udm-result--success {
  border-color: #3e8f2f;
  background: #f3fbf0;
}

.udm-result--error {
  border-color: #9c3333;
  background: #fff5f5;
}

[hidden] {
  display: none !important;
}

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

  .udm-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .udm-form-section {
    padding: 24px 20px;
  }

  .udm-form-section h2 {
    margin-left: 44px;
  }

  .udm-step {
    top: 25px;
    left: 20px;
  }

  .udm-type-grid {
    grid-template-columns: 1fr;
  }

  .udm-service-list label {
    grid-template-columns: 24px 1fr;
  }

  .udm-service-list label strong {
    grid-column: 2;
  }
}
