* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f1ea;
  color: #1f2933;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.rg-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.rg-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e6ded2;
  backdrop-filter: blur(10px);
}

.rg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.rg-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1f2933;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.rg-brand strong,
.rg-brand small {
  display: block;
}

.rg-brand small {
  color: #6b7280;
  font-size: 13px;
}

.rg-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 999px;
  background: #7a5c38;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.rg-hero {
  padding: 58px 0 42px;
}

.rg-hero .rg-wrap {
  text-align: center;
}

.rg-eyebrow {
  margin: 0 0 10px;
  color: #7a5c38;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.rg-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.rg-lead {
  max-width: 760px;
  margin: 0 auto 16px;
  font-size: 18px;
  color: #4b5563;
}

.rg-direct-note {
  display: inline-flex;
  max-width: 780px;
  margin: 0 auto 30px;
  padding: 12px 16px;
  border: 1px solid #dfd5c5;
  border-radius: 999px;
  background: #fffdf8;
  color: #43301d;
  font-weight: 800;
}

.rg-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.rg-choice-card {
  min-height: 178px;
  padding: 22px 18px;
  border: 1px solid #ded6c8;
  border-radius: 20px;
  background: #fff;
  text-align: left;
  color: #1f2933;
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.rg-choice-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.rg-choice-card small {
  display: block;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.45;
}

.rg-choice-card:hover,
.rg-choice-card.is-active {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.09);
  border-color: #8a6a3f;
}

.rg-form-area {
  padding: 10px 0 54px;
}

.rg-form {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e5e0d7;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.07);
}

.rg-form[hidden] {
  display: none !important;
}

.rg-form h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.rg-form > p {
  margin: 0 0 26px;
  font-size: 17px;
  color: #4b5563;
}

.rg-form fieldset {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #e6ded2;
  border-radius: 18px;
  background: #fbfaf7;
}

.rg-form legend {
  padding: 0 10px;
  color: #7a5c38;
  font-size: 18px;
  font-weight: 900;
}

.rg-form label,
.rg-field-label {
  display: block;
  margin: 16px 0 7px;
  color: #26313d;
  font-weight: 800;
}

.rg-field-label span {
  color: #7a281d;
}

.rg-form input[type="text"],
.rg-form input[type="tel"],
.rg-form input[type="email"],
.rg-form input[type="file"],
.rg-form select,
.rg-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d6d0c6;
  border-radius: 12px;
  background: #fff;
  color: #1f2933;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.rg-form input:focus,
.rg-form select:focus,
.rg-form textarea:focus {
  border-color: #8a6a3f;
  box-shadow: 0 0 0 3px rgba(138, 106, 63, .16);
}

.rg-form textarea {
  min-height: 150px;
  resize: vertical;
}

.rg-form small {
  display: block;
  margin: 8px 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.rg-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 8px 0 18px;
}

.rg-check-grid label,
.rg-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 12px;
  border: 1px solid #e1d9cc;
  border-radius: 12px;
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}

.rg-check-grid label:hover,
.rg-consent:hover {
  border-color: #9b7a4f;
  background: #fffdf8;
}

.rg-check-grid input,
.rg-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.rg-form button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  padding: 17px 22px;
  border: 0;
  border-radius: 14px;
  background: #1f2933;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.rg-form button[type="submit"]:hover {
  background: #111827;
}

.rg-after-submit {
  margin: 16px 0 0 !important;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f7f4ef;
  font-size: 15px !important;
  color: #4b5563;
}

.rg-hp {
  display: none !important;
}

.rg-error-message {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #fff1f0;
  color: #7a281d;
  font-weight: 800;
}

.rg-footer {
  padding: 34px 0;
  border-top: 1px solid #e2d8c9;
  background: #1f2933;
  color: #fff;
}

.rg-footer p {
  max-width: 700px;
  color: rgba(255,255,255,.78);
}

@media (max-width: 980px) {
  .rg-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .rg-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .rg-phone {
    width: 100%;
  }

  .rg-direct-note {
    border-radius: 16px;
  }

  .rg-choice-grid,
  .rg-check-grid {
    grid-template-columns: 1fr;
  }

  .rg-choice-card {
    min-height: auto;
  }

  .rg-form {
    padding: 18px;
    border-radius: 18px;
  }

  .rg-form fieldset {
    padding: 18px;
    border-radius: 16px;
  }
}


.rg-status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f1ea;
}

.rg-status-card {
  width: min(760px, 100%);
  padding: 34px;
  border: 1px solid #e5e0d7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.rg-status-card h1 {
  margin: 18px 0 10px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.05;
}

.rg-status-card p,
.rg-status-card li {
  color: #4b5563;
  font-size: 17px;
}

.rg-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.rg-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border: 1px solid #d6d0c6;
  border-radius: 999px;
  background: #fff;
  color: #1f2933;
  text-decoration: none;
  font-weight: 800;
}
