/* Cancel or change an appointment (cancel.html, javascript/cancel.js) */
.cancel-wrap {
  max-width: 640px;
  margin: 0 auto !important;
  padding: 40px 20px 80px;
}
/* (the shared `.body div div` rule gives nested divs a 10% margin: switched off here, spacing comes from gap) */
.cancel-wrap div,
.cancel-wrap dl,
.cancel-wrap fieldset {
  margin: 0 !important;
}
.cancel-intro {
  margin-bottom: 26px;
  color: #444444;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}
.cancel-intro a,
.cancel-note a,
.cancel-check a,
.cancel-failure a {
  color: #b3242f;
  text-decoration: underline;
}

.cancel-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 30px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-top: 3px solid #d32f3b;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.cancel-card h2 {
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}
.cancel-card__lead {
  margin-top: -8px;
  color: #666666;
  text-align: center;
}

.cancel-type {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 0;
  border: 0;
}
.cancel-type legend {
  margin-bottom: 8px;
  font-weight: 700;
}
.cancel-type label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.cancel-type input {
  width: 18px;
  height: 18px;
  accent-color: #111111;
}

.cancel-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cancel-field label {
  font-size: 14px;
  font-weight: 700;
}
.cancel-field input,
.cancel-field select,
.cancel-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #dcdce0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.cancel-field textarea {
  min-height: 90px;
  resize: vertical;
}
.cancel-field input:hover,
.cancel-field select:hover,
.cancel-field textarea:hover {
  border-color: #b4b4bb;
}
.cancel-field input:focus,
.cancel-field select:focus,
.cancel-field textarea:focus {
  border-color: #111111;
  outline: none;
  box-shadow: 0 0 0 4px rgba(211, 47, 59, 0.12);
}
.cancel-field.has-error input,
.cancel-field.has-error select {
  border-color: #c92f3b;
}
.cancel-field__error {
  min-height: 0;
  color: #c92f3b;
  font-size: 12.5px;
}
.cancel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cancel-honey {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cancel-note {
  color: #666666;
  font-size: 13px;
  line-height: 1.7;
}

.cancel-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 12px;
}
.cancel-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.cancel-summary dt {
  color: #666666;
}
.cancel-summary dd {
  font-weight: 700;
  text-align: left;
}

.cancel-outcome {
  padding: 14px 16px;
  border-radius: 12px;
  line-height: 1.7;
}
.cancel-outcome strong {
  display: block;
  margin-bottom: 4px;
}
.cancel-outcome p {
  margin: 0;
  font-size: 14.5px;
}
.cancel-outcome--free {
  border: 1px solid #b7dfc2;
  background: #eef9f1;
}
.cancel-outcome--fee {
  border: 1px solid #f0d78a;
  background: #fff8e1;
}
.cancel-outcome--past {
  border: 1px solid #f0b3b8;
  background: #fdeced;
}

.cancel-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}
.cancel-check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #111111;
}
.cancel-check.has-error {
  color: #c92f3b;
}
.cancel-failure {
  padding: 12px 14px;
  border: 1px solid #f0b3b8;
  border-radius: 10px;
  background: #fdeced;
  font-size: 14px;
  line-height: 1.7;
}

.cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* buttons: the dark one hovers light, the light one hovers dark */
.cancel-btn {
  display: inline-block;
  padding: 13px 28px;
  border: 2px solid #111111;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, transform 0.25s;
}
.cancel-btn--dark {
  background: #111111;
  color: #ffffff;
}
.cancel-btn--dark:hover:not(:disabled),
.cancel-btn--dark:focus-visible {
  background: #ffffff;
  color: #111111;
}
.cancel-btn--light {
  background: #ffffff;
  color: #111111;
}
.cancel-btn--light:hover:not(:disabled),
.cancel-btn--light:focus-visible {
  background: #111111;
  color: #ffffff;
}
.cancel-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
@media (prefers-reduced-motion: no-preference) {
  .cancel-btn:hover:not(:disabled) {
    transform: translateY(-2px);
  }
}

.cancel-card--done {
  align-items: center;
  text-align: center;
}
.cancel-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #111111;
}
.cancel-card__icon svg {
  width: 30px;
  height: 30px;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 600px) {
  .cancel-card {
    padding: 26px 18px;
  }
  .cancel-row {
    grid-template-columns: 1fr;
  }
}