:root {
  --green: #329516;
  --deep-green: #23790e;
  --gold: #a37815;
  --ink: #3d3d3d;
  --muted: #777;
  --paper: #f6f4ef;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  background: #fff;
  font-size: 15px;
  line-height: 1.65;
}

.site-header {
  min-height: 180px;
  padding: 24px 0 20px;
  box-shadow: none;
}

.nav-wrap {
  max-width: 1040px;
  align-items: flex-start !important;
}

.logo img {
  width: 218px;
  max-width: 52vw;
  height: auto;
}

.site-header .navbar-brand {
  margin: 0 0 12px;
  padding: 0;
}

.site-header .navbar-collapse {
  width: 100%;
  justify-content: flex-start !important;
}

.nav-link {
  color: #111;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  padding: .5rem 1.1rem !important;
}

.nav-link.active,
.nav-link:hover {
  color: var(--green);
}

.hero-image {
  min-height: 455px;
  background-image: url("../images/hero-basket.webp");
  background-size: cover;
  background-position: center;
}

.hero-paper,
.paper-section,
.contact-section {
  background: #f7f6f2 url("../images/paper-texture.png") center top / cover repeat;
  background-image: url("../images/bg-paper.webp");
  background-repeat: repeat;
  background-size: auto;
}

.hero-paper {
  min-height: 390px;
  position: relative;
}

.intro-card {
  width: min(935px, calc(100% - 34px));
  margin: 0 auto;
  padding: 68px 70px 58px;
  background: #fff;
  border: 5px solid #c79d45;
  box-shadow: 14px 18px 20px rgba(0,0,0,.34);
  text-align: center;
  transform: translateY(-238px);
}

h1, h2, h3, .section-title {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.22;
}

.intro-card h1 {
  max-width: 620px;
  margin: 0 auto;
  color: var(--green);
  font-size: 35px;
  text-transform: uppercase;
}

.intro-card h2 {
  color: #3d3d3d;
  font-size: 20px;
}

.divider {
  width: 55px;
  height: 3px;
  margin: 18px auto 26px;
  background: var(--green);
}

.green-btn {
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: var(--deep-green);
  --bs-btn-hover-border-color: var(--deep-green);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  border-radius: 0;
  padding: 10px 24px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.section {
  padding: 95px 0;
}

.narrow {
  max-width: 900px;
}

.text-block {
  max-width: 760px;
}

.section-title {
  margin: 0 auto;
  text-align: center;
  font-size: 35px;
  text-transform: uppercase;
}

.section-title span {
  color: var(--green);
}

.lead-copy {
  margin: 0 auto 80px;
  color: #777;
  text-align: center;
  font-family: var(--serif);
  font-size: 20px;
}

.concept-row {
  max-width: 720px;
  margin: 0 auto;
}

.concept-copy {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 22px;
}

.concept-copy h3,
.concept-copy p {
  grid-column: 2;
}

.concept-copy h3 {
  margin-bottom: 8px;
  color: #4f4f4f;
  font-size: 15px;
}

.concept-copy h3::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 5px;
  background: var(--green);
}

.leaf-mark {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--green);
  font-size: 34px;
  font-weight: 700;
  transform: rotate(-32deg);
}

.leaf-mark.dot {
  width: 32px;
  height: 24px;
  border-radius: 55% 45% 55% 45%;
  background: var(--green);
}

.soft-heading {
  margin-bottom: 34px;
  color: #888;
  text-align: center;
  font-size: 21px;
  font-weight: 400;
}

.gain-section {
  color: #fff;
  text-align: center;
  background-image: linear-gradient(rgba(0,0,0,.44), rgba(0,0,0,.44)), url("../images/bg-agriculture.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.gain-overlay {
  padding: 90px 0;
  background: rgba(0,0,0,.18);
}

.gain-section h2 {
  color: #fff;
  font-size: 39px;
  text-transform: uppercase;
}

.gain-section p {
  max-width: 820px;
  margin: 26px auto 34px;
  color: #fff;
  font-size: 17px;
}

.vital-section {
  padding-top: 90px;
}

.vital-form {
  max-width: 1080px;
  margin: 45px auto 0;
  padding: 34px;
  background: rgba(255,255,255,.92);
  border: 1px solid #dfd8c8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vital-form label,
.choice-field legend,
.privacy-block legend {
  color: #414141;
  font-weight: 700;
}

.vital-form input,
.vital-form textarea,
.mini-contact input,
.mini-contact textarea {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  padding: 10px 12px;
  color: #444;
  background: #fff;
}

.choice-field,
.privacy-block {
  margin: 28px 0;
  border: 1px solid #dfd8c8;
  padding: 18px;
}

.choice-field label,
.privacy-block label,
.question-card label {
  width: auto;
  margin-right: 24px;
  font-weight: 400;
}

.choice-field input,
.privacy-block input,
.question-card input {
  width: auto;
  min-height: auto;
  margin: 0 7px 0 0;
}

.question-intro {
  color: #444;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.question-card {
  margin-bottom: 15px;
  padding: 18px;
  border-left: 4px solid var(--green);
  background: #fff;
}

.question-card h3 {
  margin-bottom: 8px;
  color: #3f3f3f;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
}

.question-card .english,
.question-card .hint {
  margin: 5px 0 10px;
  color: #777;
}

.signature-wrap {
  margin-top: 30px;
}

#signaturePad {
  display: block;
  width: 100%;
  height: 220px;
  margin: 9px 0 12px;
  border: 1px solid #b8b8b8;
  background: #fff;
  touch-action: none;
}

.submit-btn {
  display: block;
  min-width: 250px;
  margin: 32px auto 0;
}

.form-status {
  margin-top: 20px;
  text-align: center;
  font-weight: 700;
}

.send-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1080;
  max-width: min(390px, calc(100vw - 44px));
  padding: 15px 18px;
  border-left: 4px solid var(--green);
  box-shadow: 0 14px 35px rgba(0,0,0,.18);
  background: #fff;
  color: #333;
  font-weight: 700;
}

.send-toast::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 2px solid #d3e6cc;
  border-top-color: var(--green);
  border-radius: 50%;
  vertical-align: -3px;
  animation: spin .8s linear infinite;
}

.send-toast.is-done::before {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 0;
  background: var(--green);
  clip-path: polygon(14% 48%, 0 63%, 39% 100%, 100% 16%, 84% 0, 36% 65%);
  animation: none;
}

.send-toast.is-error {
  border-left-color: #b42b2b;
}

.send-toast.is-error::before {
  border-top-color: #b42b2b;
}

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

.analysis-timer {
  max-width: 520px;
  margin: 22px auto 0;
  padding: 16px 18px;
  border: 1px solid #d8e4d2;
  background: #fbfdf9;
  color: #3c3c3c;
}

.timer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-weight: 700;
}

.timer-head strong {
  color: var(--green);
  font-size: 22px;
}

.timer-bar {
  height: 9px;
  overflow: hidden;
  background: #e2e2dc;
}

.timer-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 1s linear;
}

.recommendation-result {
  margin-top: 30px;
  padding: 26px;
  border: 2px solid var(--green);
  background: #fff;
  color: #333;
}

.recommendation-result h3,
.result-modal .modal-title {
  color: var(--green);
  font-size: 24px;
  text-transform: uppercase;
}

.result-modal .modal-content {
  border: 0;
  border-radius: 0;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
}

.result-modal .modal-header {
  border-bottom: 1px solid #e5dfd2;
  background: #fbfaf6;
  padding: 22px 26px;
}

.result-modal .modal-body {
  padding: 28px;
  color: #333;
}

.recommendation-result li {
  margin-bottom: 7px;
}

.contact-section {
  padding: 86px 0 78px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 560px);
  gap: 45px;
  max-width: 980px;
  align-items: start;
}

.contact-details {
  color: #333;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.42;
}

.contact-details .section-title {
  color: var(--green);
  font-size: 29px;
  font-weight: 700;
  text-transform: none;
}

.contact-details .divider {
  width: 60px;
  height: 2px;
  margin: 12px 0 26px 24px;
}

.contact-heading {
  margin: 0 0 4px 66px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.info-icon {
  align-self: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 15px;
}

.mini-contact input,
.mini-contact textarea {
  min-height: 45px;
  margin-top: 0;
  border: 0;
  padding: 8px 15px;
  color: #222;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

.mini-contact textarea {
  height: 138px;
  resize: vertical;
}

.terms-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 15px 0 12px;
  color: #333;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

.terms-line input {
  width: 13px;
  min-height: 13px;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}

.captcha-row {
  display: grid;
  grid-template-columns: 142px 101px 44px;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.captcha-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-style: italic;
  letter-spacing: 3px;
  background:
    linear-gradient(13deg, transparent 46%, rgba(0,0,0,.65) 47%, rgba(0,0,0,.65) 49%, transparent 50%),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(0,0,0,.08) 9px 11px),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(0,0,0,.08) 7px 9px),
    #efefef;
}

.captcha-input {
  width: 101px !important;
  min-height: 46px !important;
}

.captcha-refresh {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 38px;
  line-height: 1;
}

.mini-contact .green-btn {
  min-height: 48px;
  padding: 8px 18px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  text-transform: none;
}

.site-footer {
  border-top: 1px solid #f3f3f3;
  border-bottom: 6px solid #050505;
  background: #fff;
  color: #111;
  font-size: 23px;
  font-weight: 500;
  line-height: 29px;
}

.site-footer .container-fluid {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 991px) {
  .site-header {
    min-height: auto;
    padding: 20px 0;
  }
  .site-header .navbar-brand {
    margin-bottom: 12px;
  }
  .site-header .navbar-toggler {
    position: absolute;
    right: 16px;
    top: 34px;
  }
  .intro-card {
    padding: 42px 26px;
    transform: translateY(-145px);
  }
  .hero-paper { min-height: 250px; }
  .intro-card h1,
  .section-title { font-size: 28px; }
  .concept-copy { margin-bottom: 34px; }
}

@media (max-width: 767px) {
  .logo img { max-width: 72vw; }
  .nav-link { text-align: center; }
  .hero-image { min-height: 300px; }
  .intro-card { transform: translateY(-95px); }
  .form-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 58px 0; }
  .contact-heading { margin-left: 0; }
  .contact-details { font-size: 17px; }
  .mini-contact input,
  .mini-contact textarea,
  .terms-line,
  .site-footer { font-size: 17px; }
  .captcha-row {
    grid-template-columns: minmax(132px, 1fr) 96px 40px;
    gap: 10px;
  }
  .vital-form { padding: 20px; }
  .section { padding: 65px 0; }
  .gain-section { background-attachment: scroll; }
}
