@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EDE8E0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1C1C1C;
  padding: 24px;
}

/* ── CARD ── */
.card {
  background: #FDFAF7;
  border-radius: 4px;
  padding: 44px 40px 40px;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

/* ── BRAND HEADER ── */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E0D9CF;
}

.brand-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #1C1C1C;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #9A9189;
  text-transform: uppercase;
}

/* ── AMOUNT ── */
.amount {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #1C1C1C;
  letter-spacing: 0.02em;
}

.amount span {
  color: #1C1C1C;
}

.service-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A09890;
  margin-top: -16px;
}

/* ── FIELD ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A7268;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #D6CFC4;
  border-radius: 2px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: #FDFAF7;
  color: #1C1C1C;
  transition: border-color 0.15s;
}

.field input::placeholder {
  color: #BEB8AE;
}

.field input:focus {
  border-color: #1C1C1C;
}

.field-hint {
  font-size: 11px;
  color: #A09890;
  line-height: 1.5;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: #E8E2D9;
  margin: -4px 0;
}

/* ── CHECKBOXES ── */
.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 12.5px;
  color: #5A5248;
  line-height: 1.55;
}

.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 1.5px solid #C4BCB0;
  border-radius: 2px;
  margin-top: 1px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  background: #FDFAF7;
}

.checkbox-row input[type="checkbox"]:checked {
  background: #1C1C1C;
  border-color: #1C1C1C;
}

.checkbox-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 5px;
  height: 9px;
  border: 1.5px solid #FDFAF7;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ── LINK BUTTONS ── */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: #1C1C1C;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  font-family: inherit;
  line-height: inherit;
}

.link-btn:hover {
  text-decoration-style: solid;
}

/* ── PAY BUTTON ── */
.pay-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  cursor: default;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  background: #CEC9C0;
  color: #A09890;
  margin-top: 2px;
}

.pay-btn:not(:disabled) {
  background: #1C1C1C;
  color: #FDFAF7;
  cursor: pointer;
}

.pay-btn:not(:disabled):hover {
  background: #333;
}

.pay-btn.loading {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.btn-hint {
  text-align: center;
  font-size: 11px;
  color: #B0A898;
  line-height: 1.5;
  margin-top: -8px;
}

.btn-hint.hidden {
  visibility: hidden;
}

.error-msg {
  text-align: center;
  font-size: 12px;
  color: #B94040;
  line-height: 1.5;
  margin-top: -8px;
}

/* ── FOOTER ── */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: -8px;
}

.card-footer span {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #BEB8AE;
  text-transform: uppercase;
}

.card-footer svg {
  opacity: 0.45;
}

/* ── MODAL ── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 24, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-content {
  background: #FDFAF7;
  border-radius: 4px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 16px;
  border-bottom: 1px solid #E8E2D9;
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #1C1C1C;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #A09890;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  flex-shrink: 0;
  margin-top: -2px;
}

.modal-close:hover {
  color: #1C1C1C;
}

.modal-body {
  font-size: 13.5px;
  color: #5A5248;
  line-height: 1.75;
  overflow-y: auto;
  padding: 20px 28px 28px;
}

@media (max-width: 480px) {
  .card {
    padding: 32px 22px 28px;
  }
}
