/* ================================================
   Upload Module — upload.css
   ================================================ */

.upload-section {
  padding: 64px 24px 80px;
}

.upload-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.upload-title {
  width: 100%;
  margin-bottom: 24px;
}

.upload-intro {
  margin-bottom: 32px;
}

.upload-form {
  /* display: flex;
  justify-content: center;
  align-items: center; */
}

/* Форма — ~50% ширини */
.upload-form-wrap {
  max-width: 75%;
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .upload-form-wrap {
    max-width: 100%;
    /* margin: 0 auto; */
  }
}

/* ── Flash ── */
.upload-flash {
  display: none; /* JS керує через style.display */
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.4;
}

.upload-flash svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.upload-flash--success {
  background: #d6f5ec;
  color: #0e5940;
  border: 1.5px solid #42796c;
}

.upload-flash--error {
  background: #fdecea;
  color: #7d1c1c;
  border: 1.5px solid #d9534f;
}

/* ── Поля — один стовпчик ── */
.upload-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.upload-field label {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #124651;
  letter-spacing: 0.02em;
}

.upload-field .req {
  color: #e05252;
}

.upload-field input,
.upload-field textarea,
.upload-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-family: "Philosopher", serif;
  font-size: 16px;
  color: #1a1a1a;
  background: #fff;
  border: 2px solid #d6e8e5;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.upload-field textarea {
  resize: vertical;
  min-height: 100px;
}

.upload-field select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%2342796c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
  cursor: pointer;
}

.upload-field input:focus,
.upload-field textarea:focus,
.upload-field select:focus {
  border-color: #42796c;
}

.upload-field__error {
  display: none;
  font-size: 12px;
  color: #e05252;
  font-family: "Montserrat", sans-serif;
}

.upload-field.has-error input,
.upload-field.has-error textarea {
  border-color: #e05252;
}

.upload-field.has-error .upload-field__error {
  display: block;
}

/* ── Dropzone ── */
.upload-dropzone {
  border: 2px dashed #8dd9c6;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  background: #f5fcfa;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  margin-bottom: 8px;
}

.upload-dropzone:hover,
.upload-dropzone.is-over {
  background: #e8f7f3;
  border-color: #42796c;
}

.upload-dropzone.has-file {
  border-style: solid;
  border-color: #42796c;
  background: #edf8f5;
}

.upload-dropzone__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  transition: transform 0.2s;
}

.upload-dropzone:hover .upload-dropzone__icon {
  transform: translateY(-4px);
}

.upload-dropzone__text {
  font-family: "Philosopher", serif;
  font-size: 16px;
  color: #414141;
  margin: 0 0 6px;
  line-height: 1.5;
}

.upload-dropzone__text span {
  font-size: 14px;
  color: #666;
}

.upload-dropzone__link {
  background: none;
  border: none;
  padding: 0;
  color: #42796c;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.upload-dropzone__hint {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* Preview — керується через JS (display:none / display:flex) */
.upload-dropzone__preview {
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #8dd9c6;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #124651;
  font-weight: 600;
  word-break: break-all;
  text-align: left;
}

.upload-dropzone__preview svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.upload-dropzone__preview span {
  flex: 1;
}

.upload-dropzone__remove {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
  padding: 0 0 0 8px;
  line-height: 1;
  transition: color 0.15s;
}

.upload-dropzone__remove:hover {
  color: #e05252;
}

.upload-file-error {
  display: none; /* JS керує */
  font-size: 12px;
  color: #e05252;
  margin: 0 0 12px;
  font-family: "Montserrat", sans-serif;
}

/* ── Submit ── */
.upload-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #124651, #42796c);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
}

.upload-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.upload-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.upload-submit svg {
  width: 18px;
  height: 18px;
}
