#setting-targets-2 {
  --primary-blue: #002d62;
  --primary-orange: #d85604;
  --bg-color: #f2f9fc;
  --text-color: #333;
  --error-red: #d32f2f;

  * {
    box-sizing: border-box;
  }

  .layout-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  .sidebar {
    width: 25%;
    min-width: 280px;
    background-color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eee;
    flex-shrink: 0;
  }

  .back-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    width: fit-content;
  }

  .puzzle-container {
    position: relative;
    width: 100%;
    max-width: 200px;
    height: 180px;
    align-self: center;
    opacity: 0.9;
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .puzzle-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .title-container {
    padding: 0px 0px 15px 0px;

    h1 {
      color: --primary-blue;
      font-size: 25px;
      margin: 0;
      font-weight: 500;
      line-height: 1.2;
      text-transform: capitalize;
      width: 100%;
    }

    .subtitle {
      color: --primary-blue;
      font-size: 16px;
      margin-top: 2px;
      text-transform: none;
      width: 80%;
    }
  }

  .main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 60px;
    overflow: hidden;
    min-width: 0;
    background-color: #f5fafd;
  }

  h1 {
    color: var(--primary-blue);
    font-size: 25px;
    margin-bottom: 5px;
    margin-top: 0;
    font-weight: 500;
    line-height: 1.2;
    text-transform: capitalize;
  }

  h2 {
    font-size: 16px;
    color: black;
    font-weight: 500;
    margin-bottom: 25px;
  }

  .question-label {
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 20px;
    text-align: left;
    max-width: 90%;
    padding-top: 10px;
  }

  .input-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
  }

  .textarea-container {
    flex: 1;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    height: 200px;
    position: relative;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .textarea-container.error {
    border: 2px solid var(--error-red);
    animation: shake 0.4s ease-in-out;
  }

  @keyframes shake {
    0%,
    100% {
      transform: translateX(0);
    }

    25% {
      transform: translateX(-5px);
    }

    75% {
      transform: translateX(5px);
    }
  }

  textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    color: #555;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
  }

  textarea::placeholder {
    color: #aaa;
  }

  .char-counter {
    position: absolute;
    bottom: 10px;
    left: 20px;
    font-size: 13px;
    color: #666;
    font-weight: bold;
    display: none;
    z-index: 2;
  }

  .char-counter.is-focused {
    display: block;
  }

  .char-counter.limit-reached {
    color: var(--error-red);
  }

  .example-box {
    position: absolute;
    right: 20px;
    top: 30%;
    transform: translateY(-50%);
    width: 260px;
    background-color: #fff5ee;
    border: 2px solid var(--primary-orange);
    border-radius: 8px;
    padding: 15px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: none;
    gap: 10px;
    align-items: flex-start;
    animation: fadeIn 0.3s ease-in-out forwards;
    z-index: 10;
  }

  .example-icon {
    color: var(--primary-orange);
    font-size: 18px;
    margin-top: 2px;
    width: 20px;
    height: 20px;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-50%) translateX(10px);
    }

    to {
      opacity: 1;
      transform: translateY(-50%) translateX(0);
    }
  }

  .close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
  }

  .close-btn:hover {
    color: #a04000;
  }

  .bulb-icon {
    color: var(--primary-orange);
    font-size: 20px;
    margin-top: 2px;
  }

  .tips-btn {
    display: inline-block;
    cursor: pointer;
    line-height: 0;
    transition: transform 0.2s ease;
    user-select: none;
  }

  .tips-btn img {
    width: 45px;
    height: 45px;
    display: block;
    object-fit: contain;
  }

  .tips-btn:hover {
    filter: brightness(1.1);
  }

  .tips-btn:active {
    transform: scale(0.92);
  }

  .footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
  }

  .continue-btn {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  .continue-btn:hover {
    background-color: #bf4500;
  }

  @media (max-width: 900px) {
    .layout-wrapper {
      flex-direction: column;
      height: auto;
      overflow-y: auto;
    }

    .sidebar {
      width: 100%;
      height: auto;
      min-width: 0;
      padding: 20px;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      border-right: none;
      border-bottom: 1px solid #eee;
    }

    .puzzle-container {
      margin: 0;
      height: 60px;
      width: 60px;
    }

    .main-content {
      overflow-y: visible;
      padding: 20px;
      display: block;
    }

    .input-wrapper {
      flex-direction: column;
      align-items: stretch;
    }

    .tips-btn {
      align-self: flex-end;
    }

    .footer {
      padding-bottom: 40px;
    }
  }
}
