/* Форма обратной связи */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal:target {
    opacity: 1;
    pointer-events: auto;
}

.modal__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    cursor: pointer;
}

.modal__content {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 1240px;
    width: 90%;
    max-height: 680px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 10;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 25px;
  font-weight: 500;
}


.modal_header-text {
  display: inline-block;
  border-bottom: 2px solid #222;
  white-space: nowrap;
}

.modal__close-button {
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  transition: color 0.3s ease;
}

.modal__close-button:hover {
  color: #999;
}



.modal__form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.label-container {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label-container label {
  font-weight: 400;
  font-size: 18px;
}

.form-row input,
.form-row textarea {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #39B8FF;
}

.captcha-button-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.captcha-input-container {
  display: flex;
  flex-direction: column;
}

.captcha-action-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}


.captcha-input-container input {
  width: 250px;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.captcha-input-container input:focus {
  outline: none;
  border-color: #39B8FF;
}

.captcha-agreement-text {
  font-size: 18px;
  text-align: right;
}

.submit-button {
  padding: 15px 30px;
  font-size: 25px;
  font-weight: 600;
  border-radius: 20px;
  background-color: #39B8FF;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.submit-button:hover {
  background-color: #1c8ad6;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #39B8FF;
}
