:root {
  --bg: #030303;
  --bg-soft: #0b0b0b;
  --card: rgba(20, 20, 20, 0.55);
  --line: rgba(205, 205, 205, 0.15);
  --text: #f6f6f6;
  --muted: #b2b6bc;
  --red: #b92a20;
  --red-soft: rgba(185, 42, 32, 0.34);
  --red-glow: rgba(192, 46, 35, 0.72);
  --red-neon: rgba(204, 63, 42, 0.9);
  --steel: #9ea4ad;
  --radius-lg: 26px;
  --radius-md: 14px;
  --shadow-card: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 90px rgba(180, 48, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 52% 8%, rgba(139, 144, 151, 0.14), transparent 35%),
    radial-gradient(circle at 78% 92%, rgba(181, 54, 39, 0.12), transparent 28%),
    linear-gradient(180deg, #050505 0%, #010101 100%);
  overflow-x: hidden;
  isolation: isolate;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
}

.page {
  min-height: 100vh;
  padding: 28px 16px;
  display: grid;
  place-items: center;
}

.refund-card {
  position: relative;
  width: min(860px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 8% -4%, rgba(255, 52, 52, 0.2), transparent 30%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 4vw, 44px);
  overflow: hidden;
  animation: cardReveal 760ms cubic-bezier(0.2, 0.75, 0.18, 1) both;
}

.refund-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 64, 64, 0.16) 100%);
  pointer-events: none;
}

.refund-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 96, 96, 0.35);
  box-shadow: inset 0 0 36px rgba(255, 22, 22, 0.05);
}

.card-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.brand-mark {
  width: 118px;
  height: 118px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(165, 170, 177, 0.15), rgba(186, 49, 36, 0.55));
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.58),
    0 0 24px rgba(191, 57, 39, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  animation: logoFloat 4.5s ease-in-out infinite;
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  filter: contrast(1.1) saturate(0.8);
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #d5847c;
}

h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.subtitle {
  margin: 0 auto;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.65;
}

.cta {
  margin: 30px auto 8px;
  width: min(360px, 100%);
  min-height: 62px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c24235, #7a140f);
  color: #fff;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 10px 35px rgba(179, 54, 36, 0.4);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease, letter-spacing 220ms ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 14px 42px rgba(176, 56, 39, 0.56), 0 0 24px rgba(204, 70, 49, 0.48);
  filter: saturate(1.08);
  letter-spacing: 0.03em;
}

.cta:active {
  transform: translateY(0) scale(0.995);
}

.form-area {
  max-height: 0;
  opacity: 0;
  transform: translateY(12px);
  overflow: hidden;
  transition: max-height 540ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 350ms ease, transform 350ms ease;
}

.refund-card.open .form-area {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 18px;
}

.refund-form {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.5), rgba(9, 9, 9, 0.35));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(14px, 2vw, 24px);
}

.grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.refund-form > .field {
  margin-bottom: 14px;
}

.field > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #d5d9df;
}

.field .icon-lucide,
.cta .icon-lucide,
.file-btn .icon-lucide {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  color: #d78880;
  flex: 0 0 auto;
}

.cta .icon-lucide {
  color: #fff;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  font: inherit;
  outline: none;
  transition: border-color 200ms ease, box-shadow 220ms ease, background-color 200ms ease, transform 200ms ease;
}

textarea {
  resize: vertical;
  min-height: 112px;
}

input::placeholder,
textarea::placeholder {
  color: #878787;
}

input:focus,
textarea:focus {
  border-color: rgba(190, 69, 55, 0.72);
  box-shadow: 0 0 0 3px rgba(179, 58, 42, 0.2), 0 0 24px rgba(189, 64, 49, 0.22);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.file-field {
  margin-top: 4px;
}

.file-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(194, 74, 58, 0.48);
  background: rgba(185, 63, 47, 0.08);
  padding: 12px;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 700;
  color: #f7e5e3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(191, 73, 56, 0.48), rgba(89, 18, 14, 0.45));
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.file-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(185, 66, 49, 0.3);
  filter: brightness(1.04);
}

.file-name {
  margin: 0;
  color: #cfcfcf;
  font-size: 0.92rem;
}

.ghost-submit {
  width: 100%;
  margin-top: 14px;
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 30, 30, 0.08));
  color: #f2f2f2;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.95;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ghost-submit:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 90, 75, 0.52);
  box-shadow: 0 12px 30px rgba(170, 50, 35, 0.22);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  z-index: -1;
  animation: pulse 5.5s ease-in-out infinite;
}

.bg-glow-1 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at center, var(--red-neon) 0%, rgba(175, 40, 25, 0.08) 70%);
  top: -50px;
  left: -40px;
}

.bg-glow-2 {
  width: 290px;
  height: 290px;
  background: radial-gradient(circle at center, rgba(194, 72, 55, 0.7) 0%, rgba(175, 40, 25, 0.08) 72%);
  bottom: -110px;
  right: -70px;
  animation-delay: 0.9s;
}

.refund-card.open .grid,
.refund-card.open .field,
.refund-card.open .ghost-submit {
  animation: fieldReveal 580ms cubic-bezier(0.23, 0.76, 0.27, 1) both;
}

.refund-card.open .grid:nth-of-type(1) { animation-delay: 70ms; }
.refund-card.open .grid:nth-of-type(2) { animation-delay: 120ms; }
.refund-card.open .field:nth-of-type(3) { animation-delay: 160ms; }
.refund-card.open .file-field { animation-delay: 200ms; }
.refund-card.open .ghost-submit { animation-delay: 240ms; }

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fieldReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.52;
  }
  50% {
    transform: scale(1.16);
    opacity: 0.72;
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .refund-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .cta {
    width: 100%;
  }

  .file-name {
    width: 100%;
    padding-left: 1px;
  }

  .brand-mark {
    width: 94px;
    height: 94px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
