@charset "utf-8";

:root {
  --fx-line: rgba(17, 37, 48, 0.14);
  --fx-soft: #4f6673;
  --fx-ink: #112530;
  --fx-accent: #0a84bf;
  --fx-accent-strong: #08638f;
  --fx-ok: #1bb17f;
}

.fx-hero {
  padding-bottom: 1rem;
}

.fx-hero-card {
  grid-template-columns: 1.08fr 0.92fr;
}

.fx-hero-card h1 {
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.fx-chips {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fx-chips span {
  border: 1px solid rgba(8, 99, 143, 0.28);
  border-radius: 999px;
  background: rgba(10, 132, 191, 0.1);
  color: #0f4f72;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.36rem 0.62rem;
}

.fx-hero-side {
  border: 1px solid rgba(17, 37, 48, 0.1);
  border-radius: 16px;
  background: linear-gradient(150deg, #eef8ff, #f7fbfe);
  padding: 1rem;
}

.fx-hero-side h2 {
  margin: 0;
  font-family: "Bree Serif", serif;
  font-size: 1.45rem;
  line-height: 1.12;
  text-wrap: balance;
}

.fx-hero-side p {
  margin: 0.7rem 0 0;
  color: var(--fx-soft);
}

.fx-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fx-form-wrap {
  padding-top: 1.1rem;
}

.fx-form {
  border: 1px solid var(--fx-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(10, 35, 50, 0.12);
  padding: 1.2rem;
}

.fx-block + .fx-block {
  margin-top: 1.2rem;
  border-top: 1px solid var(--fx-line);
  padding-top: 1.2rem;
}

.fx-block-head h2 {
  margin: 0;
  font-family: "Bree Serif", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  text-wrap: balance;
}

.fx-block-head p {
  margin: 0.45rem 0 0;
  color: var(--fx-soft);
}

.fx-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.fx-field {
  display: grid;
  gap: 0.36rem;
}

.fx-field-wide {
  grid-column: 1 / -1;
}

.fx-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fx-ink);
}

.fx-required {
  color: #c13f3f;
}

.fx-field input,
.fx-field select,
.fx-field textarea {
  width: 100%;
  border: 1px solid rgba(17, 37, 48, 0.2);
  border-radius: 12px;
  background: #fbfdff;
  color: var(--fx-ink);
  font: inherit;
  padding: 0.7rem 0.74rem;
  outline: none;
  line-height: 1.3;
}

.fx-field textarea {
  resize: vertical;
}

.fx-field input:focus,
.fx-field select:focus,
.fx-field textarea:focus {
  border-color: rgba(10, 132, 191, 0.55);
  box-shadow: 0 0 0 3px rgba(10, 132, 191, 0.14);
}

.fx-help {
  color: var(--fx-soft);
  font-size: 0.8rem;
}

.fx-optional {
  margin-top: 1rem;
  border: 1px dashed rgba(8, 99, 143, 0.35);
  border-radius: 14px;
  background: rgba(10, 132, 191, 0.04);
  padding: 0.8rem;
}

.fx-optional summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f4f72;
}

.fx-grid-address {
  margin-top: 0.9rem;
}

.fx-submit {
  margin-top: 1.3rem;
  border-top: 1px solid var(--fx-line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
}

.fx-submit p {
  margin: 0;
  color: var(--fx-soft);
  font-size: 0.9rem;
}

.fx-submit-btn {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--fx-accent), var(--fx-accent-strong));
  color: #eefbff;
  font: inherit;
  font-weight: 800;
  padding: 0.78rem 1.28rem;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(10, 132, 191, 0.32);
  transition: transform 0.2s ease;
}

.fx-submit-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .fx-hero-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .fx-form {
    border-radius: 18px;
    padding: 1rem;
  }

  .fx-block + .fx-block {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .fx-grid {
    grid-template-columns: 1fr;
  }

  .fx-actions,
  .fx-submit {
    width: 100%;
  }

  .fx-submit {
    align-items: stretch;
  }

  .fx-submit-btn,
  .fx-actions .sp-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .fx-form-wrap {
    padding-top: 0.5rem;
  }

  .fx-hero-side {
    padding: 0.86rem;
    border-radius: 14px;
  }

  .fx-chips span {
    width: 100%;
    text-align: center;
  }

  .fx-form {
    padding: 0.84rem;
    border-radius: 16px;
  }

  .fx-grid {
    gap: 0.72rem;
  }

  .fx-field label {
    font-size: 0.87rem;
  }

  .fx-field input,
  .fx-field select,
  .fx-field textarea {
    padding: 0.66rem 0.68rem;
    font-size: 16px;
  }

  .fx-optional {
    padding: 0.72rem;
  }

  .fx-submit p {
    font-size: 0.86rem;
  }

  .fx-submit-btn {
    padding: 0.72rem 1rem;
  }
}
