* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff7ef;
  color: #101828;
}

.tool-wrapper {
  width: 100%;
  padding: 20px;
}

.tool-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #ffe0c2;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.tag {
  display: inline-block;
  background: #ffe7cf;
  color: #e95620;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  text-align: center;
}

.intro {
  text-align: center;
  color: #475467;
  margin: 12px auto 28px;
  max-width: 480px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  margin-bottom: 8px;
  color: #26364f;
}

select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #ffc58f;
  border-radius: 14px;
  background: #fffaf5;
  font-size: 16px;
  color: #101828;
}

select:focus {
  outline: none;
  border-color: #e95620;
  box-shadow: 0 0 0 3px rgba(233, 86, 32, 0.15);
}

.main-btn,
.actions button {
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.main-btn {
  background: #e95620;
  color: #ffffff;
  margin-top: 8px;
}

.main-btn:hover {
  background: #d94c18;
}

.result {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #ffe0c2;
}

.result h2 {
  text-align: center;
  margin-bottom: 18px;
}

.plan-output {
  display: grid;
  gap: 12px;
}

.day-card {
  background: #fffaf5;
  border: 1px solid #ffe0c2;
  border-radius: 16px;
  padding: 16px;
}

.day-card strong {
  display: block;
  color: #e95620;
  margin-bottom: 6px;
  font-size: 17px;
}

.day-card span {
  color: #26364f;
  line-height: 1.4;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.actions button {
  flex: 1;
  background: #101828;
  color: #ffffff;
}

.actions button:hover {
  opacity: 0.9;
}

.note {
  margin-top: 18px;
  font-size: 14px;
  color: #667085;
  line-height: 1.5;
  text-align: center;
}

.hidden {
  display: none;
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .main-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .tool-wrapper {
    padding: 12px;
  }

  .tool-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: 24px;
  }

  .intro {
    font-size: 14px;
  }

  select,
  .main-btn,
  .actions button {
    font-size: 15px;
  }

  .actions {
    flex-direction: column;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .tool-card {
    box-shadow: none;
    border: none;
  }

  form,
  .actions,
  .note {
    display: none;
  }

  .result {
    display: block !important;
  }
}