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

body {
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  background: linear-gradient(135deg, #e9f0ff, #fdfbff);
}

/* Card */
.card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 20px;
  
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.6s ease;
  transition: 0.3s;
  animation: cardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card:hover {
  transform: translateY(-5px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image */
.design-img {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.design-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: imageReveal 0.8s ease forwards;
}

@keyframes imageReveal {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Heading */
.card h2 {
  text-align: center;
  color: #1e6dfb;
  margin-bottom: 5px;
}

.card p {
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* Helper Text */
.helper {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin: 10px 0 15px;
}
.card h2 {
  animation: textRise 0.5s ease forwards;
}

.card p {
  animation: textRise 0.5s ease forwards;
  animation-delay: 0.12s;
  opacity: 0;
}

.helper {
  animation: textRise 0.5s ease forwards;
  animation-delay: 0.22s;
  opacity: 0;
}

@keyframes textRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Textarea */
.label {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 14px;
  transition: 0.3s;
}

textarea::placeholder {
  color: #aaa;
  font-style: italic;
}

textarea:focus {
  outline: none;
  border-color: #1e6dfb;
  box-shadow: 0 0 0 2px rgba(30, 109, 251, 0.2);
}
textarea {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

textarea:focus {
  transform: translateY(-1px);
}


/* Counter */
.counter {
  text-align: right;
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  animation: counterFade 0.4s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

@keyframes counterFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Button */
button {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e6dfb, #6a9cff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success */
.success {
  margin-top: 12px;
  text-align: center;
  color: green;
  font-size: 14px;
  display: none;
 animation: successFade 0.45s ease forwards;
}

@keyframes successFade {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Footer note */
.footer-note {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #888;
}

/* Mobile */
@media (max-width: 480px) {
  .card {
    padding: 20px;
  }
}
