/**
 * Форма зворотного зв'язку — modules/tscm/front feedback.component
 */

.feedback-section {
  padding-bottom: clamp(48px, 8vw, 96px);
}

.feedback {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  margin: 0 auto;
  max-width: 560px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 16px;
  background: linear-gradient(
    162.29deg,
    rgba(0, 0, 0, 0.3) 37.08%,
    rgba(197, 12, 31, 0.3) 100%
  );
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .feedback {
    width: 100%;
    border-radius: 12px;
    padding: 20px 16px;
  }
}

.feedback-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.feedback-title {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
}

.feedback-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.feedback-messengers {
  display: flex;
  flex-direction: row;
  gap: 50px;
  justify-content: center;
  margin-bottom: 8px;
}

.feedback-messengers a {
  display: block;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.feedback-messengers a:hover {
  opacity: 1;
}

.feedback-messengers img {
  display: block;
  width: 32px;
  height: 32px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
}

.feedback-form .form-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid rgba(41, 41, 41, 0.5);
}

.feedback-form .form-block > label:first-child {
  font-weight: 300;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.feedback-form input:not([type="radio"]),
.feedback-form textarea {
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  font-family: inherit;
  resize: none;
  padding: 4px 0;
  width: 100%;
  box-sizing: border-box;
}

.feedback-form input:not([type="radio"])::placeholder,
.feedback-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.feedback-form input:not([type="radio"]):focus,
.feedback-form textarea:focus {
  outline: 2px solid #c91f2b;
  padding: 8px;
}

.feedback-form .form-block.is-invalid input:not([type="radio"]),
.feedback-form .form-block.is-invalid textarea {
  outline: 2px solid #ef1a33;
}

.feedback-form .form-error {
  color: #ef1a33;
  font-size: 14px;
  line-height: 1.2;
  margin-top: 4px;
}

.feedback-form .form-success {
  color: #a6f4c5;
  font-size: 15px;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(166, 244, 197, 0.08);
}

.feedback-form .radio-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
}

.feedback-form .radio-group label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
}

.feedback-form .radio-group input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #292929;
  background: #151515;
  margin: 0;
  cursor: pointer;
}

.feedback-form .radio-group input[type="radio"]::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 4px auto;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s ease-out;
}

.feedback-form .radio-group input[type="radio"]:checked {
  border-color: #c50c1f;
}

.feedback-form .radio-group input[type="radio"]:checked::before {
  background: #c50c1f;
}

.feedback-form .radio-group input[type="radio"]:focus {
  outline: none;
}

.feedback-form .contact-field[hidden] {
  display: none !important;
}

.feedback-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: #c91f2b;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.feedback-submit:hover:not(:disabled) {
  background: #a81822;
}

.feedback-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  text-align: center;
}
