@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --blue-primary: #29b6f6;
  --blue-dark: #0288d1;
  --blue-light: #b3e5fc;
  --blue-pale: #e1f5fe;
  --white: #ffffff;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow-md: 0 8px 32px rgba(41, 182, 246, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f0f9ff;
  color: var(--gray-800);
  min-height: 100vh;
  overflow-x: hidden;
}

/* HERO */
.hero { position: relative; width: 100%; height: 320px; overflow: hidden; }
.hero-banner { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(2,136,209,0.1), rgba(2,136,209,0.45));
}

/* LOGO FLOAT */
.logo-float { display: flex; justify-content: center; margin-top: -60px; position: relative; z-index: 10; }
.logo-float img {
  width: 140px; height: 140px; object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(41,182,246,0.5));
  animation: floatLogo 3s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* CONTAINER */
.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* HEADING */
.heading-section {
  text-align: center; padding: 16px 24px 32px;
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.2s;
}
.heading-section h1 {
  font-family: 'Nunito', sans-serif; font-size: 2rem; font-weight: 900;
  color: var(--blue-dark); line-height: 1.2;
}
.heading-section h1 span { color: var(--blue-primary); }
.heading-section p { margin-top: 10px; font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; }

.cat-laugh {
  font-size: 1.3rem; display: inline-block; vertical-align: middle;
  animation: catBounce 1.8s ease-in-out infinite;
}
@keyframes catBounce {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50%       { transform: rotate(8deg) scale(1.15); }
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-pale); color: var(--blue-dark);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 16px;
  border-radius: 99px; margin-bottom: 12px; border: 1px solid var(--blue-light);
}

/* FORM CARD */
.form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow-md);
  border: 1px solid rgba(41,182,246,0.15);
  animation: fadeUp 0.8s ease forwards; opacity: 0; animation-delay: 0.4s;
}
.form-card h2 {
  font-family: 'Nunito', sans-serif; font-size: 1.3rem;
  font-weight: 800; color: var(--gray-800); margin-bottom: 6px;
}
.form-card p.subtitle { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 28px; line-height: 1.6; }
.divider {
  height: 3px; background: linear-gradient(90deg, var(--blue-primary), var(--blue-light));
  border-radius: 99px; margin-bottom: 28px;
}

/* FORM GROUPS */
.form-group { margin-bottom: 20px; position: relative; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--gray-600); margin-bottom: 7px; letter-spacing: 0.3px;
}
.form-group label .req { color: var(--blue-primary); margin-left: 3px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  color: var(--gray-800); background: var(--gray-100);
  transition: all 0.25s ease; outline: none; -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-primary); background: var(--white);
  box-shadow: 0 0 0 4px rgba(41,182,246,0.12); transform: translateY(-1px);
}
.form-group textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap .icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--gray-400); pointer-events: none;
}
.input-icon-wrap input,
.input-icon-wrap select { padding-left: 40px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.char-counter { text-align: right; font-size: 0.72rem; color: var(--gray-400); margin-top: 4px; }

/* SUBMIT BUTTON */
.btn-submit {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  color: var(--white); font-family: 'Nunito', sans-serif;
  font-size: 1rem; font-weight: 800; letter-spacing: 0.5px;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  margin-top: 8px; position: relative; overflow: hidden;
  transition: all 0.3s ease; box-shadow: 0 6px 20px rgba(41,182,246,0.4);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(41,182,246,0.5); }
.btn-submit:active { transform: translateY(0); }
.btn-submit::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-submit:hover::after { opacity: 1; }

/* RESULT SECTION */
.result-section { display: none; margin-top: 32px; }
.result-section.active { display: block; animation: fadeUp 0.6s ease forwards; }

.result-card {
  background: linear-gradient(135deg, #e0f7fa, #e1f5fe);
  border: 2px solid var(--blue-light); border-radius: var(--radius);
  padding: 28px 32px; position: relative; overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(41,182,246,0.15), transparent 70%);
  border-radius: 50%;
}

.result-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.result-header .cat-icon {
  font-size: 2.2rem;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  display: inline-block;
}
.result-header h3 {
  font-family: 'Nunito', sans-serif; font-size: 1.2rem;
  font-weight: 900; color: var(--blue-dark); margin: 0;
}
.result-header p { font-size: 0.82rem; color: var(--gray-600); margin: 2px 0 0 0; }

.result-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 11px 0; border-bottom: 1px solid rgba(41,182,246,0.2);
}
.result-item:last-child { border-bottom: none; }
.result-label {
  font-size: 0.75rem; font-weight: 700; color: var(--blue-dark);
  text-transform: uppercase; letter-spacing: 0.6px; min-width: 110px; padding-top: 2px;
}
.result-value { font-size: 0.9rem; color: var(--gray-800); line-height: 1.5; word-break: break-word; }

@keyframes popIn {
  0%   { transform: scale(0) rotate(-10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* FOOTER */
footer { text-align: center; padding: 40px 24px 60px; font-size: 0.8rem; color: var(--gray-400); }
footer a { color: var(--blue-primary); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* PARTICLES */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute; width: 6px; height: 6px;
  background: var(--blue-light); border-radius: 50%;
  opacity: 0; animation: drift linear infinite;
}
@keyframes drift {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.15; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* VALIDATION */
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #ef4444; background: #fff5f5; }
.error-msg { font-size: 0.74rem; color: #ef4444; margin-top: 5px; display: none; font-weight: 500; }
.error-msg.show { display: block; animation: fadeUp 0.3s ease; }

/* STEPPER */
.stepper { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; }
.stepper-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); transition: all 0.3s; }
.stepper-dot.active { width: 24px; border-radius: 4px; background: var(--blue-primary); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero { height: 200px; }
  .logo-float img { width: 110px; height: 110px; }
  .logo-float { margin-top: -50px; }
  .heading-section h1 { font-size: 1.5rem; }
  .form-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  .hero { height: 160px; }
  .heading-section { padding: 12px 16px 24px; }
  .heading-section h1 { font-size: 1.3rem; }
  .form-card h2 { font-size: 1.1rem; }
  .result-label { min-width: 90px; font-size: 0.7rem; }
  .result-header .cat-icon { font-size: 1.8rem; }
}
