/* Модалка «ПЕРЕЗВОНИТЕ МНЕ» (форма callme-8march): на всех страницах с design-8march.
   Раньше часть правил жила только в 8march_index_page_design.css (подключался лишь на главной). */

body.design-8march #callme-modal:not(.callme-modal--open) {
  display: none !important;
}

body.design-8march #callme-modal.callme-modal--open.callme-8march {
  background: transparent !important;
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.callme-8march__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 2rem 1.75rem;
  background: #f8f4f0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.callme-8march__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #2d2d2d;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.callme-8march__close:hover {
  color: #000;
}

.callme-8march__title {
  font-family: var(--8march-font-body, 'Inter', system-ui, sans-serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2d2d2d;
  margin: 0 0 1.5rem;
  padding-right: 2rem;
}

.callme-8march__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.callme-8march__field {
  margin-bottom: 1rem;
}

.callme-8march__label {
  display: block;
  font-family: var(--8march-font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #6b6363;
  margin-bottom: 0.35rem;
}

.callme-8march__input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #3B3036;
  background: #fff;
  border: 1px solid #e0d9d2;
  border-radius: 6px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.callme-8march__input:focus {
  border-color: #b5a99a;
  outline: none;
}

.callme-8march__input::placeholder {
  color: #9a9191;
}

.callme-8march__form .form-group.privacy-policy {
  margin: 1rem 0 1.25rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #6b6363;
}

.callme-8march__submit {
  width: 100%;
  padding: 0.7rem 1.25rem;
  font-family: var(--8march-font-body, 'Inter', system-ui, sans-serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #fff;
  background: #d4a5a5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.callme-8march__submit:hover {
  background: #c49090;
}

.callme-8march__form .form-group--error .callme-8march__input,
.callme-8march__form .form-group.form-group--error .callme-8march__input {
  border-color: #c44;
}

.callme-8march__form .error-text {
  display: block;
  font-size: 0.8rem;
  color: #c44;
  margin-top: 0.25rem;
}

.callme-8march__form .form-message--success {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  font-family: var(--8march-font-body, 'Inter', system-ui, sans-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: #2d5a2d;
  background: #e8f5e9;
  border-radius: 8px;
  text-align: center;
}
