:root {
  --pink: #f472b6;
  --pink-light: #fbcfe8;
  --pink-soft: #fdf2f8;
  --lilac: #c084fc;
  --text-dark: #4b2563;
  --text-mid: #9d6bb5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background: linear-gradient(135deg, #fff5fb 0%, #f0f7ff 60%, #fff0fb 100%);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5fb 0%, #f0f7ff 60%, #fff0fb 100%);
}

.bg-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 18px 0;
}

.bg-row.offset {
  transform: translateX(70px);
}

.ic {
  display: inline-block;
  width: 36px;
  height: 36px;
  opacity: 0.13;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
}

.ic.gift {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='9' width='18' height='13' rx='2'/%3E%3Cpath d='M3 9h18M12 9V22M12 9c0-2.5-3-4-3-4s1 3 3 4zm0 0c0-2.5 3-4 3-4s-1 3-3 4z'/%3E%3Cpath d='M9 5a3 3 0 0 0 3 4 3 3 0 0 0 3-4'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='9' width='18' height='13' rx='2'/%3E%3Cpath d='M3 9h18M12 9V22M12 9c0-2.5-3-4-3-4s1 3 3 4zm0 0c0-2.5 3-4 3-4s-1 3-3 4z'/%3E%3Cpath d='M9 5a3 3 0 0 0 3 4 3 3 0 0 0 3-4'/%3E%3C/svg%3E")
    no-repeat center / contain;
  background-color: #93c5fd;
}

.ic.star {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E")
    no-repeat center / contain;
  background-color: #c4b5fd;
}

.ic.heart {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E")
    no-repeat center / contain;
  background-color: #f9a8d4;
}

.ic.balloon {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='9' rx='7' ry='9'/%3E%3Cpath d='M12 18 L12 22'/%3E%3Cpath d='M10 22 Q12 20 14 22'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='9' rx='7' ry='9'/%3E%3Cpath d='M12 18 L12 22'/%3E%3Cpath d='M10 22 Q12 20 14 22'/%3E%3C/svg%3E")
    no-repeat center / contain;
  background-color: #6ee7b7;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 60px;
}

.top-nav {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.top-logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  text-decoration: none;
}

.top-logo .kado {
  background: linear-gradient(135deg, #f9a8d4, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-logo .kita {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(244, 114, 182, 0.35);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(244, 114, 182, 0.6);
  color: var(--pink);
  transform: translateX(-2px);
}

.btn-back:active {
  transform: translateX(0) scale(0.97);
}

.btn-back svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-header {
  text-align: center;
  margin-bottom: 32px;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-header .icon-wrap {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #fde8f6, #fbcfe8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.page-header .icon-wrap svg {
  width: 36px;
  height: 36px;
  stroke: #ec4899;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-header h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--pink);
  margin-bottom: 8px;
}

.page-header p {
  font-size: 0.92rem;
  color: var(--text-mid);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(244, 114, 182, 0.18);
  border-radius: 28px;
  padding: 40px 36px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 8px 40px rgba(244, 114, 182, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeUp 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 600px) {
  .form-card {
    padding: 28px 20px;
  }
}

.upload-area {
  border: 2px dashed rgba(244, 114, 182, 0.35);
  border-radius: 18px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s;
  position: relative;
  background: rgba(253, 242, 248, 0.5);
}

.upload-area:hover {
  border-color: rgba(244, 114, 182, 0.7);
  background: rgba(253, 242, 248, 0.9);
}

.upload-area.has-image {
  padding: 0;
  border-style: solid;
  border-color: rgba(244, 114, 182, 0.4);
  overflow: hidden;
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-placeholder {
  pointer-events: none;
}

.upload-placeholder .upload-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #fde8f6, #fbcfe8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.upload-placeholder .upload-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ec4899;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-placeholder p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.upload-placeholder span {
  font-size: 0.78rem;
  color: var(--text-mid);
}

.preview-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: none;
  border-radius: 16px;
}

.preview-img.show {
  display: block;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-group label svg {
  width: 14px;
  height: 14px;
  stroke: var(--pink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-group input,
.field-group textarea {
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: rgba(253, 242, 248, 0.6);
  border: 1.5px solid rgba(244, 114, 182, 0.2);
  border-radius: 14px;
  padding: 13px 16px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  resize: none;
  width: 100%;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #c4a8d4;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: rgba(244, 114, 182, 0.6);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.12);
  background: #fff;
}

.field-group textarea {
  height: 130px;
  line-height: 1.6;
}

.char-count {
  font-size: 0.75rem;
  color: #c4b5fd;
  text-align: right;
  margin-top: -4px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  border: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: rgba(244, 114, 182, 0.6);
  background-size: initial;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-submit:hover{
  background: #f472b6; /* pink solid */
  box-shadow: 0 8px 28px rgba(244, 114, 182, 0.45);
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 4px 14px rgba(244, 114, 182, 0.25);
}

.btn-submit svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(244, 114, 182, 0.15);
  padding: 40px 40px 28px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
}

.footer-logo .kado {
  background: linear-gradient(135deg, #f9a8d4, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-logo .kita {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 0.82rem;
  color: #a78bfa;
  margin-top: 6px;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #c084fc;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: #9d6bb5;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #f472b6;
}

.footer-col a svg {
  display: inline-block;
  vertical-align: middle;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.footer-bottom {
  max-width: 900px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 114, 182, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #c4b5fd;
  flex-wrap: wrap;
  gap: 8px;
}