/* ============================================
   SelfEvents V1 — Checkout Page Styles
   ============================================ */

.checkout-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #E8DED4;
  transition: box-shadow 0.2s ease;
}

.checkout-card:hover {
  box-shadow: 0 4px 20px rgba(45, 41, 38, 0.04);
}

.checkout-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E8DED4;
  border-radius: 12px;
  font-size: 0.875rem;
  background: white;
  color: #2D2926;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.checkout-input:focus {
  border-color: #BA2257;
  box-shadow: 0 0 0 3px rgba(186, 34, 87, 0.10);
}

.checkout-input::placeholder {
  color: #9E9490;
}

.checkout-input.error {
  border-color: #BA2257;
  box-shadow: 0 0 0 3px rgba(186, 34, 87, 0.14);
}

.checkout-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E8DED4;
  border-radius: 12px;
  font-size: 0.875rem;
  background: white;
  color: #2D2926;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237A6F68' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 01.708 0L8 8.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.checkout-select:focus {
  border-color: #BA2257;
  box-shadow: 0 0 0 3px rgba(186, 34, 87, 0.10);
}

.checkout-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E8DED4;
  border-radius: 12px;
  font-size: 0.875rem;
  background: white;
  color: #2D2926;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: vertical;
  min-height: 80px;
}

.checkout-textarea:focus {
  border-color: #BA2257;
  box-shadow: 0 0 0 3px rgba(186, 34, 87, 0.10);
}

.checkout-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #2D2926;
  margin-bottom: 6px;
}

.checkout-label .required {
  color: #BA2257;
  margin-left: 2px;
}

.field-error {
  font-size: 0.75rem;
  color: #BA2257;
  margin-top: 4px;
  display: none;
}

.field-error.visible {
  display: block;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border: 2px solid #E8DED4;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.radio-card:hover {
  border-color: #C9A87C;
}

.radio-card.selected {
  border-color: #BA2257;
  background: #FFFAF5;
}

.radio-card input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #E8DED4;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
  position: relative;
}

.radio-card.selected input[type="radio"] {
  border-color: #BA2257;
}

.radio-card.selected input[type="radio"]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: #BA2257;
  border-radius: 50%;
}

.radio-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #2D2926;
}

.radio-inline input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #E8DED4;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.radio-inline input[type="radio"]:checked {
  border-color: #BA2257;
}

.radio-inline input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: #BA2257;
  border-radius: 50%;
}

.checkout-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #E8DED4;
  border-radius: 5px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.checkout-checkbox:checked {
  background: #BA2257;
  border-color: #BA2257;
}

.checkout-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.section-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.checkout-summary-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #E8DED4;
}

.checkout-summary-item:last-child {
  border-bottom: none;
}

@media (min-width: 1024px) {
  .checkout-summary-sticky {
    top: calc(72px + var(--announce-h, 0px) + 16px);
  }
}

@media (max-width: 1023px) {
  .checkout-summary-sticky {
    position: static !important;
  }
}
