/* Second-round jury submission form */

.round2-body {
  --round2-ink: #1f1712;
  --round2-muted: #6d5c50;
  --round2-accent: #c45c26;
  --round2-line: #e8ddd3;
  --round2-soft: #faf6f1;
  overflow-x: hidden;
}

.round2-shell {
  max-width: 100%;
  box-sizing: border-box;
}

.round2-form,
.round2-intro,
.round2-section {
  max-width: 100%;
  box-sizing: border-box;
}

.round2-intro .fest-title {
  letter-spacing: 0.02em;
  font-size: clamp(22px, 4.2vw, 34px);
  line-height: 1.25;
  word-break: break-word;
}

.round2-intro .fest-subtitle {
  font-size: clamp(16px, 2.6vw, 22px);
  line-height: 1.35;
}

.round2-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--round2-accent);
}

.round2-deadline {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff4ea;
  color: #8a3d12;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  box-sizing: border-box;
}

.round2-deadline svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.round2-section__note {
  margin: 8px 0 0;
  color: var(--round2-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.round2-form .fest-select,
.round2-form .fest-input {
  max-width: 100%;
  box-sizing: border-box;
}

.round2-form select.fest-select {
  text-overflow: ellipsis;
  white-space: normal;
  height: auto;
  min-height: 48px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* intl-tel-input: fill field width on all viewports */
.round2-form .iti {
  width: 100%;
  display: block;
}

.round2-form .iti input.fest-input,
.round2-form .iti input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
}

.round2-form .iti__country-list {
  max-width: min(100vw - 32px, 360px);
  z-index: 40;
}

.round2-upload {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--round2-line);
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
  max-width: 100%;
}

.round2-upload.is-collapsed {
  display: none;
}

.round2-upload.is-invalid {
  border-color: #d9776f;
  background: #fff8f7;
}

.round2-upload.is-invalid .fest-error {
  display: block;
}

.round2-upload.is-invalid .round2-file__ui {
  border-color: #d9776f;
}

.round2-upload__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.round2-upload__num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d9783c, #c45c26);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.round2-upload__title {
  margin: 0;
  font-size: clamp(15px, 2.4vw, 17px);
  font-weight: 600;
  color: var(--round2-ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.round2-upload__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efe6df;
  color: var(--round2-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.round2-upload__help {
  margin: 6px 0 0;
  color: var(--round2-muted);
  font-size: 14px;
  line-height: 1.55;
}

.round2-file {
  display: block;
  cursor: pointer;
  max-width: 100%;
}

.round2-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.round2-file__ui {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px dashed #d7c7b8;
  border-radius: 12px;
  background: var(--round2-soft);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.round2-file:hover .round2-file__ui,
.round2-file__input:focus-visible + .round2-file__ui {
  border-color: #d9a07a;
  background: #fff;
  box-shadow: 0 8px 24px rgba(196, 92, 38, 0.08);
}

.round2-upload.has-file .round2-file__ui {
  border-style: solid;
  border-color: #c9dfc0;
  background: #f4faf1;
}

.round2-file__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--round2-accent);
  border: 1px solid var(--round2-line);
}

.round2-file__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.round2-file__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--round2-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.round2-file__meta {
  font-size: 12.5px;
  color: var(--round2-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.round2-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.round2-progress[hidden] {
  display: none !important;
}

.round2-progress__track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #ebe4dd;
  overflow: hidden;
}

.round2-progress__bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #be7950, #9a5a38);
  transition: width 0.15s ease;
}

.round2-progress__label {
  min-width: 40px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--round2-muted);
}

.round2-upload.is-uploading .round2-file__ui {
  border-color: var(--round2-accent);
  background: #fff8f3;
}

.round2-upload.is-uploaded .round2-file__ui {
  border-color: #2f6b4f;
  background: #f3faf6;
}

.round2-upload.is-uploaded .round2-file__meta {
  color: #2f6b4f;
  font-weight: 600;
}

.round2-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--round2-ink);
  cursor: pointer;
}

.round2-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--round2-accent);
  flex: 0 0 auto;
}

.round2-check span {
  min-width: 0;
  flex: 1 1 auto;
}

.round2-actions {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  justify-items: start;
  width: 100%;
}

.round2-submit {
  min-width: min(100%, 280px);
  max-width: 100%;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-sizing: border-box;
}

.round2-actions__hint {
  margin: 0;
  color: var(--round2-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.round2-submit-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e8c9a8;
  background: #fff7ef;
  color: #8a4b28;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

.round2-submit-hint[hidden] {
  display: none !important;
}

.round2-submit-hint.is-warn {
  border-color: #e8c9a8;
  background: #fff7ef;
  color: #8a4b28;
}

body.round2-lock {
  overflow: hidden;
}

.round2-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(28, 18, 12, 0.55);
  backdrop-filter: blur(4px);
  padding: 20px;
  box-sizing: border-box;
}

.round2-overlay[hidden] {
  display: none !important;
}

.round2-overlay__card {
  width: min(420px, 100%);
  text-align: center;
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.round2-overlay__spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid #efe6df;
  border-top-color: var(--round2-accent);
  animation: round2-spin 0.85s linear infinite;
}

@keyframes round2-spin {
  to { transform: rotate(360deg); }
}

.round2-overlay__title {
  margin: 0;
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 700;
  color: var(--round2-ink);
}

.round2-overlay__text {
  margin: 8px 0 0;
  color: var(--round2-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Tablet */
@media (max-width: 980px) {
  .round2-shell .fest-banner__partners {
    max-width: min(100%, 320px);
  }

  .round2-deadline {
    width: 100%;
  }
}

/* Mobile / small tablet — stack paired fields early for long category labels */
@media (max-width: 860px) {
  .round2-form .fest-row--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .round2-shell {
    width: calc(100% - 12px);
    margin-inline: auto;
  }

  .round2-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .round2-section__note {
    font-size: 13.5px;
  }

  .round2-upload {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
  }

  .round2-upload__head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .round2-upload__num {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .round2-upload__help {
    font-size: 13.5px;
  }

  .round2-file__ui {
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .round2-file__icon {
    width: 40px;
    height: 40px;
  }

  .round2-file__name {
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .round2-check {
    font-size: 14.5px;
    gap: 10px;
  }

  .round2-actions {
    margin-top: 22px;
    justify-items: stretch;
  }

  .round2-submit {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .round2-actions__hint {
    font-size: 13px;
  }

  .round2-form .iti__country-list {
    max-width: calc(100vw - 24px);
    left: 0 !important;
  }
}

@media (max-width: 480px) {
  .round2-deadline {
    font-size: 13px;
    padding: 10px 12px;
  }

  .round2-upload {
    padding: 12px;
  }

  .round2-file__ui {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .round2-file__icon {
    width: 38px;
    height: 38px;
  }

  .round2-overlay {
    padding: 14px;
  }

  .round2-overlay__card {
    padding: 22px 16px;
  }
}

@media (max-width: 360px) {
  .round2-upload__title {
    font-size: 14.5px;
  }

  .round2-check {
    font-size: 13.5px;
  }
}
