* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #8b93a7, #70788a, #626a7c);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.page-wrap {
  width: 100%;
  max-width: 520px;
}

.compose-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 18px 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.top-bar h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d1d5db;
}

form {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.98rem;
  font-weight: 700;
  color: #3f4a57;
  margin-top: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfd5dd;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.98rem;
  color: #111827;
  outline: none;
  background: #fff;
}

input:focus,
textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.send-btn {
  margin-top: 16px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #17a34a, #14a44d);
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.send-btn:hover {
  filter: brightness(1.03);
}

.mini-note {
  margin-top: 14px;
  color: #6b7280;
  font-size: 0.86rem;
  text-align: center;
}

.message-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.back-link {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
  color: #4f46e5;
  font-weight: 700;
}

@media (max-width: 560px) {
  body {
    padding: 10px;
  }

  .compose-card {
    padding: 18px 14px 16px;
  }
}
