* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 40px 20px;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.4;
}

.form {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

h1 {
  font-size: 22px;
  margin: 0 0 28px;
}

.field {
  margin-top: 20px;
}

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field-hint {
  font-size: 13px;
  color: #666;
  margin: 4px 0 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.required {
  color: #c0392b;
  margin-left: 2px;
}

.hidden {
  display: none !important;
}

.info-box {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 14px;
  margin-top: 20px;
}

.info-box.warning {
  background: #fff8e6;
  border-color: #e8c968;
}

/* --- Combobox (searchable Country field) --- */

.combobox {
  position: relative;
}

.combobox-list {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.combobox-option {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 15px;
}

.combobox-option:hover,
.combobox-option.active {
  background: #f0f0f0;
}

/* --- Shipping options --- */

.shipping-options {
  margin-top: 8px;
}

.shipping-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 8px;
  cursor: pointer;
}

.shipping-option:has(input:checked) {
  border-color: #333;
  background: #fafafa;
}

.shipping-option input {
  width: auto;
}

.shipping-option-label {
  flex: 1;
}

.shipping-option-price {
  color: #555;
}

.empty-note {
  font-size: 14px;
  color: #777;
  margin-top: 8px;
}

/* --- Buttons --- */

button {
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}

.submit-button {
  margin-top: 28px;
  width: 100%;
  padding: 12px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
}

.submit-button:disabled {
  background: #999;
  cursor: default;
}

.error-box {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fdecea;
  border: 1px solid #f5b7b1;
  border-radius: 4px;
  color: #922;
  font-size: 14px;
}

/* --- Confirmation page --- */

.confirmation dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 20px 0;
}

.confirmation dt {
  font-weight: 600;
}

.confirmation dd {
  margin: 0;
}

.payment-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #222;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}
