:root {

  --gap: 1.3em;
  --radius: 6px;
  --main: #111;
  --accent: #2586ff;
  --label: #1a2b3c;
  --legend: #1a2b3c;
  --input-bg: #ffffff;
  --bg: #f8f9fb;
}

body {
  background: var(--bg);
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 860px;
  margin: 40px auto;
  padding: 2.4em 2em 1.4em 2em;
  border-radius: 10px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
}

h2 {
  text-align: center;
  font-size: 2.1em;
  font-weight: 700;
  margin-bottom: 0.25em;
  letter-spacing: 0.02em;
  color: #01608b;
}

p {
  text-align: center;
  font-size: 1.07em;
  margin-bottom: 2em;
  color: #29304a;
}

fieldset {
  border: var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.7em;
  padding: 1.6em 1.4em 1.1em 1.4em;
  background: #fcfcfc;
}

legend {
  font-weight: 700;
  font-size: 1.13em;
  color: var(--legend);
  margin-bottom: 0.6em;
  letter-spacing: 0.01em;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-bottom: 0.9em;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 220px;
}
.form-group.col-md-6 {
  flex: 1 1 48%;
}
.form-group.col-md-12 {
  flex: 1 1 100%;
}

label {
  font-weight: 600;
  color: var(--label);
  margin-bottom: 0.25em;
  font-size: 1em;
  letter-spacing: 0.01em;
}

label span {
  color: var(--accent);
  font-weight: 800;
}

input[type="text"],
input[type="email"],
select,
textarea {
  background: var(--input-bg);
  border: 1.2px solid #d6d7db;
  border-radius: 6px;
  font-size: 1.04em;
  padding: 0.63em 0.95em;
  margin-bottom: 0.2em;
  outline: none;
  transition: border 0.13s;
}

textarea {
  min-height: 63px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

.form-check {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  font-size: 0.97em;
}

.form-check-input {
  margin-right: 0.65em;
  accent-color: var(--accent);
}

.form-check-label a {
  color: var(--accent);
  text-decoration: underline;
}

.btn-group {
  text-align: center;
  margin-top: 1.5em;
}

.btn {
  background: var(--accent);
  color: #fff;
  font-size: 1.14em;
  border: none;
  border-radius: 7px;
  padding: 0.56em 2.4em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.btn:hover {
  background: #01709c;
}

/* RESPONSIVE */
@media (max-width: 730px) {
  .container {
    padding: 1.1em 0.6em;
  }
  .form-row {
    flex-direction: column;
    gap: 0.8em;
  }
  .form-group {
    min-width: 0;
  }
}

@media (max-width: 490px) {
  h2 {
    font-size: 1.45em;
  }
  .container {
    padding: 0.5em 0.4em;
  }
  fieldset {
    padding: 0.9em 0.6em;
  }
  legend {
    font-size: 1em;
  }
}
