/* contact page — BEM: .contact-page / .contact-form (scoped, no edits to style.css) */

.contact-page {
  padding-top: 120px;
}

.contact-page__inner {
  max-width: 960px;
}

.contact-form {
  margin-top: 8px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__label {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}

.contact-form__req {
  display: inline-block;
  margin-left: 4px;
  color: #c62828;
  font-weight: 700;
  font-size: 1.4rem;
}

.contact-form__hint {
  font-size: 1.3rem;
  color: #666;
  font-weight: 400;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.6rem;
  line-height: 1.5;
  font-family: inherit;
  color: #111;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: #de141e;
  box-shadow: 0 0 0 2px rgba(222, 20, 30, 0.12);
}

.contact-form__textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form__fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.contact-form__legend {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.contact-form__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.contact-form__radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  cursor: pointer;
}

.contact-form__radio input {
  width: 18px;
  height: 18px;
  accent-color: #de141e;
  cursor: pointer;
}

.contact-form__privacy-head {
  font-size: 1.5rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.contact-form__privacy-scroll {
  height: 200px;
  overflow-y: auto;
  padding: 16px 18px;
  font-size: 1.4rem;
  line-height: 1.75;
  color: #333;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.contact-form__privacy-scroll p {
  margin: 0 0 12px;
}

.contact-form__privacy-scroll p:last-child {
  margin-bottom: 0;
}

.contact-form__privacy-title {
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 6px;
}

.contact-form__privacy-scroll .contact-form__privacy-title:first-child {
  margin-top: 0;
}

.contact-form__agree {
  margin-top: 16px;
  padding: 12px 0;
}

.contact-form__agree-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1.6;
}

.contact-form__agree-label input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #de141e;
  cursor: pointer;
}

.contact-form__actions {
  margin-top: 32px;
  padding-top: 8px;
  text-align: center;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 14px 40px;
  font-size: 1.6rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.06em;
  color: #fff;
  background: #de141e;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.contact-form__submit:hover {
  background: #c4111a;
}

.contact-form__submit:focus-visible {
  outline: 2px solid #de141e;
  outline-offset: 3px;
}
