.forecast-season-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
}

.forecast-season-dialog {
  width: min(860px, 100%);
  max-width: 860px;
  max-height: calc(100vh - 48px);
  margin: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.forecast-season-dialog > div:first-child {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.forecast-season-dialog > div:first-child h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.forecast-season-dialog > div:first-child p {
  margin: 4px 0 0;
}

.forecast-season-dialog > div:first-child > button {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin: -4px -6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.forecast-season-dialog > div:first-child > button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.forecast-season-dialog > div:nth-child(2) {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px 20px;
  padding: 22px 24px 24px;
  box-sizing: border-box;
}

.forecast-season-dialog > div:nth-child(2) > label {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: start;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
}

.forecast-season-dialog > div:nth-child(2) > label.md\:col-span-2 {
  grid-column: 1 / -1;
}

.forecast-season-dialog input,
.forecast-season-dialog textarea,
.forecast-season-dialog select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  outline: none;
}

.forecast-season-dialog input,
.forecast-season-dialog select {
  min-height: 44px;
  padding: 9px 12px;
}

.forecast-season-dialog textarea {
  min-height: 82px;
  padding: 11px 12px;
  resize: vertical;
}

.forecast-season-dialog input:focus,
.forecast-season-dialog textarea:focus,
.forecast-season-dialog select:focus {
  border-color: #15803d;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.13);
}

.forecast-season-dialog > div:nth-child(2) > label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.forecast-season-dialog > div:nth-child(2) > label.flex {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
}

.forecast-season-dialog > div:nth-child(2) > label.flex input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: #15803d;
}

.forecast-season-dialog > div:last-child {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.forecast-season-dialog > div:last-child button {
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 720px) {
  .forecast-season-modal {
    padding: 8px;
    align-items: stretch;
  }

  .forecast-season-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: 10px;
  }

  .forecast-season-dialog > div:first-child {
    padding: 16px;
  }

  .forecast-season-dialog > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 16px;
  }

  .forecast-season-dialog > div:nth-child(2) > label.md\:col-span-2,
  .forecast-season-dialog > div:nth-child(2) > label.flex {
    grid-column: auto;
  }

  .forecast-season-dialog > div:nth-child(2) > label > div {
    grid-template-columns: minmax(0, 1fr) 132px;
  }

  .forecast-season-dialog > div:last-child {
    padding: 12px 16px;
  }
}

@media (max-width: 420px) {
  .forecast-season-dialog > div:nth-child(2) > label > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .forecast-season-dialog > div:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
