* {
  box-sizing: border-box;
}

:root {
  --ink: #18312b;
  --muted: #66756f;
  --line: #dbe4df;
  --green: #16744f;
  --green-dark: #105a3d;
  --green-soft: #edf7f2;
  --gold: #efb94c;
  --error: #b42318;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 48px 16px;
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 185, 76, 0.16), transparent 24rem),
    linear-gradient(135deg, #edf5f1 0%, #f8faf9 58%, #f3f7f5 100%);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

.card {
  max-width: 680px;
  margin: 0 auto;
  padding: 34px 38px 38px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 228, 223, 0.9);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(24, 49, 43, 0.10),
    0 3px 10px rgba(24, 49, 43, 0.04);
}

.form-header {
  margin-bottom: 28px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--gold);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.form-header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.form-header .form-note {
  margin-top: 6px;
  font-size: 13px;
}

.field {
  margin-bottom: 20px;
}

label,
legend {
  display: block;
  margin-bottom: 8px;
  color: #314640;
  font-size: 14px;
  font-weight: 700;
}

.optional {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}

fieldset legend {
  width: 100%;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 16px;
}

fieldset .field {
  margin-bottom: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 49, 43, 0.025);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #98a69f;
}

input:hover,
select:hover {
  border-color: #bccac3;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 116, 79, 0.11);
}

input.invalid,
select.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.input-icon {
  position: relative;
}

.input-icon svg {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: #7c9188;
  pointer-events: none;
}

.input-icon input {
  padding-left: 43px;
}

.phone {
  display: flex;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.phone:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 116, 79, 0.11);
}

.phone.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

.phone select,
.phone input {
  height: 44px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.phone select {
  width: 92px;
  flex: 0 0 92px;
  border-right: 1px solid var(--line);
  padding: 0 8px 0 12px;
  background: #f7faf8;
}

.phone input:focus,
.phone select:focus {
  box-shadow: none;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.85fr;
  gap: 14px;
}

.address-row {
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  margin-bottom: 14px;
}

.row .field {
  margin-bottom: 0;
}

.dropzone {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  margin: 0;
  border: 2px dashed #b9c9c1;
  border-radius: 12px;
  background: #fbfdfc;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: 160ms ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.dropzone svg {
  width: 28px;
  height: 28px;
  fill: var(--green);
}

.dropzone u {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 3px;
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(22, 116, 79, 0.18);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 22px rgba(16, 90, 61, 0.22);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.62;
  box-shadow: none;
  cursor: wait;
  transform: none;
}

#status {
  min-height: 21px;
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
}

#status.ok {
  color: var(--green-dark);
}

#status.error {
  color: var(--error);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 560px) {
  body {
    padding: 18px 10px;
  }

  .card {
    padding: 26px 18px 24px;
    border-radius: 14px;
  }

  .form-header {
    margin-bottom: 22px;
  }

  .brand {
    margin-bottom: 14px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .row .field {
    margin-bottom: 0;
  }
}
