/**
about\contacts\formstyle.css
*/

/** bs fix */
.form-container {
  margin: 0 auto;
  margin-bottom: 5rem;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    sans-serif;
}
.input-group span,
label,
.rating-label,
.rating-question,
.rating-group .rating-question .sub,
.open-questions-block .section-sub,
input,
select,
textarea {
  font-size: 1.4rem !important;
}
[for='consent'] {
  display: flex;
  line-height: normal;
  flex-wrap: wrap;
}
button.star {
  font-size: 3rem;
}
.form-subtitle {
  font-size: 1.4rem;
  margin-top: unset;
}
div#ratingHint {
  font-size: 1.2rem;
}
.input-group span {
  margin-bottom: 0.8rem;
}
button#spoilerBtn {
  font-size: 1.2rem !important;
}
button.submit-btn {
  font-size: 1.4rem !important;
}
.rating-hint {
  font-size: 1.4rem !important;
}

/** bs fix */

.form-container {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 40px -12px rgba(0, 20, 60, 0.15);
  width: 100%;
  max-width: 720px;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 51, 102, 0.06);
}

.form-inner {
  padding: 36px 32px 28px;
}

.form-title {
  -font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 700;
  color: #003366;
  margin-bottom: 6px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.form-subtitle {
  -font-size: clamp(0.9rem, 3vw, 1rem);
  color: #4a5b6e;
  margin-bottom: 28px;
  border-left: 4px solid #003366;
  padding-left: 16px;
  font-weight: 400;
}

/* --- БЛОК РЕЙТИНГА (главный) --- */
.rating-section {
  margin-bottom: 24px;
  background: #f8faff;
  border-radius: 24px;
  padding: 24px 20px 20px;
  border: 1px solid #e6edf5;
}

.rating-label {
  font-weight: 600;
  -font-size: 1rem;
  color: #1a2a3a;
  margin-bottom: 12px;
  text-align: center;
}

.stars-container {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

.star {
  -font-size: 2.6rem;
  cursor: pointer;
  color: #d1d9e6;
  transition:
    transform 0.15s ease,
    color 0.2s;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}
.star:hover {
  transform: scale(1.1);
  color: #f5a623;
}
.star.selected {
  color: #f5a623;
}

.rating-hint {
  -font-size: 0.8rem;
  color: #6b7f92;
  text-align: center;
  margin-top: 4px;
}

.short-comment-group {
  margin-top: 16px;
}
.short-comment-group label {
  -font-size: 0.85rem;
  font-weight: 500;
  color: #1a2a3a;
  margin-bottom: 6px;
  display: block;
}
.short-comment-group input,
.short-comment-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  -font-size: 0.95rem;
  transition: all 0.2s;
  background: #fff;
  font-family: inherit;
  color: #1a2a3a;
}
.short-comment-group input:focus,
.short-comment-group textarea:focus {
  border-color: #003366;
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.08);
  outline: none;
}
.short-comment-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- СПОЙЛЕР --- */
.spoiler-wrapper {
  margin: 12px 0 24px;
}

.spoiler-btn {
  background: #eef3f9;
  border: none;
  width: 100%;
  padding: 14px 20px;
  -font-size: 0.95rem;
  font-weight: 600;
  color: #003366;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.spoiler-btn:hover {
  background: #e2e9f2;
}

.spoiler-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0;
}
.spoiler-content.open {
  max-height: 3000px;
  margin-top: 20px;
}

/* --- БЛОКИ ДЕТАЛЬНОЙ ФОРМЫ --- */
.input-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

label {
  -font-size: 0.9rem;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.optional-badge {
  -font-size: 0.7rem;
  font-weight: normal;
  color: #8a9aa8;
  margin-left: 6px;
}

input,
select,
textarea {
  font-family: inherit;
  -font-size: 1rem;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  transition: all 0.2s;
  width: 100%;
  outline: none;
  color: #1a2a3a;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #003366;
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.08);
}
textarea {
  resize: vertical;
  min-height: 100px;
}

.double-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.double-group .input-group {
  flex: 1;
  min-width: calc(50% - 16px);
}

/* --- ДЕТАЛЬНЫЕ РЕЙТИНГИ (в спойлере) --- */
.rating-group {
  background: #fafcfe;
  border-radius: 20px;
  padding: 18px 16px 14px;
  margin-bottom: 16px;
  border: 1px solid #e6edf5;
}

.rating-group .rating-question {
  font-weight: 600;
  -font-size: 0.95rem;
  color: #003366;
  margin-bottom: 6px;
}
.rating-group .rating-question .sub {
  font-weight: 400;
  color: #4a5b6e;
  -font-size: 0.85rem;
}

.rating-group .stars-container {
  gap: 12px;
  margin-bottom: 4px;
}
.rating-group .stars-container .star {
  -font-size: 2.2rem;
}
.rating-group .rating-hint {
  -font-size: 0.7rem;
  color: #6b7f92;
}

/* --- БЛОК ОТКРЫТЫХ ВОПРОСОВ --- */
.open-questions-block {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px dashed #e2e8f0;
}

.open-questions-block .section-title {
  font-weight: 700;
  -font-size: 1.05rem;
  color: #003366;
  margin-bottom: 16px;
}
.open-questions-block .section-sub {
  font-weight: 400;
  color: #4a5b6e;
  -font-size: 0.9rem;
  margin-bottom: 20px;
}

.photo-upload {
  border: 2px dashed #d1d9e6;
  border-radius: 20px;
  padding: 16px;
  background: #f8faff;
  transition: all 0.2s;
  cursor: pointer;
}
.photo-upload:hover {
  border-color: #003366;
  background: #f0f5ff;
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #003366;
}
.upload-label span:first-child {
  -font-size: 2rem;
}
.upload-label span:last-child {
  -font-size: 0.85rem;
}
#photoInput {
  display: none;
}

.photos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}
.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.remove-photo {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  -font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.1s;
}
.remove-photo:hover {
  background: #e53e3e;
}

/* --- БЛОК ОТПРАВКИ --- */
.submit-block {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.checkbox-group input {
  width: 20px;
  height: 20px;
  accent-color: #003366;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
.checkbox-group label {
  margin-bottom: 0;
  font-weight: 500;
  -font-size: 0.85rem;
  color: #1a2a3a;
}
.checkbox-group a {
  color: #003366;
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 51, 102, 0.2);
}
.checkbox-group a:hover {
  border-bottom: 1px solid #003366;
}

.submit-btn {
  background: #003366;
  color: white;
  font-weight: 600;
  -font-size: 1.05rem;
  padding: 16px 28px;
  border: none;
  border-radius: 40px;
  width: 100%;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.2);
  letter-spacing: 0.5px;
}
.submit-btn:hover {
  background: #002244;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 51, 102, 0.25);
}
.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.15);
}

.form-message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 16px;
  -font-size: 0.9rem;
  text-align: center;
  transition: 0.2s;
}
.success {
  background: #e6f0e6;
  color: #1a5a3a;
  border: 1px solid #bcd9bc;
}
.error {
  background: #fce8e8;
  color: #7a2a2a;
  border: 1px solid #f5c2c2;
}

.form-footer {
  padding: 18px 32px 22px;
  border-top: 1px solid #e6edf5;
  background: #f8faff;
}
.copyright {
  -font-size: 0.7rem;
  color: #8a9aa8;
  text-align: center;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 640px) {
  .form-inner {
    padding: 24px 16px 20px;
  }
  .form-footer {
    padding: 14px 16px 18px;
  }
  .double-group {
    gap: 12px;
  }
  .double-group .input-group {
    min-width: 100%;
  }
  .rating-group .stars-container .star {
    -font-size: 1.8rem;
  }
  .star {
    -font-size: 2rem;
  }
  .spoiler-btn {
    -font-size: 0.85rem;
    padding: 12px 16px;
  }
}

@media (max-width: 380px) {
  .rating-group .stars-container .star {
    -font-size: 1.6rem;
  }
  .star {
    -font-size: 1.6rem;
  }
}

.side-tab .text span {
  font-size: 14px;
}
