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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.5;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.logo {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.brand-dark {
  color: #1a2a4a;
}

.brand-green {
  color: #1a5c4a;
}

.subheadline {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 28px;
  line-height: 1.4;
}

.form-card {
  background: #f2f2f2;
  padding: 28px 24px;
  border-radius: 4px;
  position: relative;
}

.form-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(242, 242, 242, 0.92);
  border-radius: 4px;
}

.form-loader[hidden] {
  display: none;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #1b6e3f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-loader p {
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
}

.form-error {
  background: #fdecea;
  color: #c62828;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid #f5c6cb;
}

.form-error[hidden] {
  display: none;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label.question {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.required {
  color: #d32f2f;
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #444;
  cursor: pointer;
}

.radio-options input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #1a5c4a;
  cursor: pointer;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.input-wrap input:focus {
  border-color: #1a5c4a;
}

.input-wrap .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1rem;
  pointer-events: none;
}

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

.error-msg {
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-group.has-error input {
  border-color: #d32f2f;
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 16px 24px;
  margin-top: 8px;
  background: #1b6e3f;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #155a33;
}

/* Below-form content */
.below-form {
  margin-top: 36px;
  text-align: center;
}

.benefits {
  margin-top: 32px;
  text-align: left;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.benefits h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 16px;
  text-align: center;
}

.benefits ul {
  list-style: none;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #444;
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #1b6e3f;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Confirmation page */
.confirm-page {
  background: #fff;
}

.confirm-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 60px;
  text-align: center;
}

.confirm-header {
  margin-bottom: 36px;
}

.confirm-header .logo {
  margin-bottom: 0;
}

.confirm-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 28px;
  line-height: 1.3;
}

.confirm-message {
  max-width: 560px;
  margin: 0 auto;
}

.confirm-message p {
  font-size: 0.98rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 18px;
}

.confirm-divider {
  border: none;
  border-top: 1px dashed #ccc;
  margin: 40px auto 0;
  max-width: 100%;
}

.site-footer {
  text-align: center;
  padding: 24px 20px 40px;
  border-top: 1px solid #eee;
  margin-top: 20px;
}

.site-footer a {
  color: #666;
  font-size: 0.85rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: #1a5c4a;
  text-decoration: underline;
}

/* Terms page */
.terms-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.terms-wrap h1 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 24px;
  text-align: center;
}

.terms-wrap h2 {
  font-size: 1.05rem;
  color: #333;
  margin: 24px 0 10px;
}

.terms-wrap p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 12px;
}
