:root {
  font-family: Inter, system-ui, -apple-system, Arial, sans-serif;
  color: #182d2a;
  background: #f0f5f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 90% 5%, #d7e9df, transparent 35%), #f0f5f2;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 22px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 52px;
}

.brand {
  font-size: 25px;
  letter-spacing: 0.09em;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.34em;
  margin-left: 3px;
}

header button {
  background: white;
  border: 1px solid #d0dfd6;
  border-radius: 50px;
  padding: 10px 18px;
  cursor: pointer;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 46px;
  box-shadow: 0 18px 60px #203d3015;
}

.eyebrow {
  color: #5a866e;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
}

h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 10px 0 14px;
  line-height: 1.13;
}

.lead {
  line-height: 1.65;
  color: #65736d;
  margin-bottom: 32px;
}

form > label:not(.check) {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 20px 0 8px;
}

input:not([type=checkbox]) {
  width: 100%;
  padding: 15px 17px;
  border: 1px solid #d7e1dc;
  border-radius: 9px;
  font: inherit;
  outline-color: #40795b;
}

.amount {
  display: flex;
  align-items: center;
  border: 1px solid #d7e1dc;
  border-radius: 9px;
  padding-left: 16px;
  font-size: 20px;
}

.amount input {
  border: 0;
  font-size: 20px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #52645b;
}

.check input {
  margin-top: 4px;
}

.primary {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 18px;
  background: #1c5b46;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.primary:hover {
  background: #154735;
}

.notice {
  font-size: 12px;
  color: #8a6741;
  text-align: center;
  margin-top: 18px;
}

.error {
  color: #ae3535;
  font-size: 13px;
}

footer {
  text-align: center;
  margin-top: 35px;
  font-size: 12px;
  line-height: 1.9;
  color: #728078;
}

@media (max-width: 520px) {
  header {
    margin-bottom: 28px;
  }

  .card {
    padding: 26px 22px;
  }

  .wrap {
    padding: 22px 14px;
  }
}

/* Payment Terms - Layout Adjustment */

.payment-terms-expanded {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 36px;
}

.payment-terms-expanded input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 5px;
}

.payment-terms-expanded .terms-text {
    flex: 1;
    min-width: 0;
    line-height: 1.7;
    white-space: normal;
    overflow-wrap: break-word;
}

.payment-terms-expanded .terms-text .additional-terms {
    display: block;
    margin-top: 12px;
    line-height: 1.7;
}

/* Mobile Responsive */

@media (max-width: 600px) {
    .payment-terms-expanded {
        gap: 12px;
        margin-bottom: 32px;
    }

    .payment-terms-expanded .terms-text {
        line-height: 1.6;
    }
}