/* Small, isolated revision for the existing compiled /brief page. */
.brief-kicker,
.brief-promise > span:first-child {
  display: none !important;
}

.brief-promise > strong:first-of-type {
  margin-top: 0;
}

.brief-format-choice {
  grid-column: 2;
  width: 100%;
  margin-top: calc(14px - clamp(36px, 8vw, 100px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: start;
}

.brief-format-button {
  min-height: 52px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #181127;
  border: 2px solid #7448e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 18, 76, .1);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .035em;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.brief-format-button:hover {
  transform: translateY(-1px);
  color: #fff;
  background: #5f35d3;
  box-shadow: 0 14px 30px rgba(78, 38, 169, .22);
}

.brief-format-button.is-current {
  color: #fff;
  border-color: #5f35d3;
  background: linear-gradient(135deg, #5f35d3, #7448e8);
  box-shadow: 0 14px 30px rgba(78, 38, 169, .24);
}

.brief-format-button.is-current:hover {
  background: linear-gradient(135deg, #5127c8, #683bdc);
}

.brief-format-button:focus-visible {
  outline: 3px solid #22c9ed;
  outline-offset: 3px;
}

/*
 * Give the writing fields the same refined, tactile character as the rest of
 * VedStyle. The stronger edge and placeholder contrast are especially
 * important on mobile screens, where the former pale fields disappeared into
 * the white card.
 */
.brief-grid label {
  color: #3e354a;
  font-size: 11px;
}

.brief-grid small {
  color: #706778;
  font-size: 11px;
}

.brief-grid input:not([type="checkbox"]),
.brief-grid select,
.brief-grid textarea {
  color: #171126;
  caret-color: #7448e8;
  background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
  border: 1.5px solid #b9aec4;
  border-radius: 10px;
  min-height: 58px;
  padding-inline: 17px;
  font-size: 16px;
  box-shadow:
    0 7px 18px rgba(31, 20, 50, .055),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    transform .18s ease;
}

.brief-grid textarea {
  min-height: 132px;
  padding-block: 15px;
  line-height: 1.55;
}

.brief-grid select {
  appearance: none;
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, #5b5065 50%),
    linear-gradient(135deg, #5b5065 50%, transparent 50%),
    linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
  background-position:
    calc(100% - 23px) 50%,
    calc(100% - 17px) 50%,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

.brief-grid input:not([type="checkbox"])::placeholder,
.brief-grid textarea::placeholder {
  color: #716978;
  opacity: 1;
}

.brief-grid input:not([type="checkbox"]):hover,
.brief-grid select:hover,
.brief-grid textarea:hover {
  border-color: #8f7ca6;
  box-shadow:
    0 9px 22px rgba(31, 20, 50, .075),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

.brief-grid input:not([type="checkbox"]):focus,
.brief-grid select:focus,
.brief-grid textarea:focus {
  background-color: #fff;
  border-color: #7448e8;
  box-shadow:
    0 0 0 4px rgba(116, 72, 232, .14),
    0 12px 28px rgba(72, 38, 126, .12);
}

.brief-grid input:not([type="checkbox"]):focus-visible,
.brief-grid select:focus-visible,
.brief-grid textarea:focus-visible {
  outline: none;
}

.brief-consent input[type="checkbox"] {
  border: 1.5px solid #756c7d;
  border-radius: 4px;
}

/* Keep the React form untouched; only mirror the quick-form success wording. */
#lead-modal-title {
  font-size: 0;
}

#lead-modal-title::after {
  content: "Заявка принята VedStyle";
  font-size: 30px;
}

@media (max-width: 760px) {
  .brief-format-choice {
    grid-column: 1;
    margin-top: calc(14px - clamp(36px, 8vw, 100px));
  }

  .brief-grid input:not([type="checkbox"]),
  .brief-grid select,
  .brief-grid textarea {
    min-height: 60px;
  }

  .brief-grid textarea {
    min-height: 138px;
  }
}

@media (max-width: 560px) {
  #lead-modal-title::after {
    font-size: 26px;
  }
}

@media (max-width: 360px) {
  .brief-format-choice {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brief-format-button {
    transition: none;
  }
}
