.gdf-donation-form {
  --gdf-green: #8400ff;
  --gdf-dark: #181818;
  --gdf-red: #8400ff;
  --gdf-red-dark: #6b00cf;
  --gdf-border: #e8d5ff;
  --gdf-muted: #62557a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 760px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.gdf-donation-form .gdf-card {
  background: #fff;
  border: 2px solid var(--gdf-green);
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 1.25rem;
}

.gdf-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding-top: 10px;
  padding-bottom: 20px;
  margin-bottom: 1rem;
}

.gdf-music-toggle {
  position: absolute;
  top: 6px;
  right: 2px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d0b3ff;
  background: #ffffff;
  color: #6d1fd0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 3px 10px rgba(132, 0, 255, 0.15);
  overflow: visible;
}

.gdf-music-toggle:hover {
  background: #efe5ff;
  border-color: #6d1fd0;
}

.gdf-music-toggle.is-paused {
  background: #8400ff;
  border-color: #6d1fd0;
  color: #ffffff;
  opacity: 1;
}

.gdf-music-icon {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 18px;
  height: 18px;
  line-height: 1;
}

.gdf-music-icon span {
  display: block;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
}

.gdf-music-toggle.is-playing .gdf-music-icon span:nth-child(1) {
  animation: gdfEq 0.8s infinite ease-in-out;
}

.gdf-music-toggle.is-playing .gdf-music-icon span:nth-child(2) {
  animation: gdfEq 0.8s infinite ease-in-out 0.1s;
}

.gdf-music-toggle.is-playing .gdf-music-icon span:nth-child(3) {
  animation: gdfEq 0.8s infinite ease-in-out 0.2s;
}

.gdf-music-toggle.is-paused .gdf-music-icon span {
  display: none;
}

.gdf-music-toggle.is-paused .gdf-music-icon::before {
  content: "||";
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  color: currentColor;
}

.gdf-music-notice {
  position: absolute;
  top: 48px;
  right: 2px;
  background: #111111;
  color: #ffffff;
  border: 1px solid #2b2b2b;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  line-height: 1.2;
  white-space: nowrap;
  z-index: 4;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.gdf-music-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gdfEq {
  0%, 100% { height: 5px; }
  50% { height: 14px; }
}

.gdf-top-summary-wrap {
  margin-bottom: 1rem;
}

.gdf-top-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #6d1fd0;
  background: #8400ff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  margin-bottom: 0;
  width: 100%;
}

.gdf-top-summary-toggle {
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
}

.gdf-top-summary-toggle:hover {
  background: #111111;
  border-color: #111111;
}

.gdf-top-summary-toggle[aria-expanded="true"] {
  background: #111111;
  border-color: #111111;
}

.gdf-summary-caret {
  display: inline-block;
  font-size: 16px;
  transition: transform 0.18s ease;
}

.gdf-top-summary-toggle[aria-expanded="true"] .gdf-summary-caret {
  transform: rotate(180deg);
}

.gdf-progress-line {
  position: absolute;
  top: 20px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: #eadfff;
  z-index: 0;
}

.gdf-progress-step {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--gdf-muted);
}

.gdf-progress-step span {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #d6c0ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #fff;
}

.gdf-progress-step.is-active span,
.gdf-progress-step.is-done span {
  border-color: var(--gdf-green);
  background: var(--gdf-green);
  color: #fff;
}

.gdf-progress-step small {
  display: block;
  margin-top: 0.4rem;
  font-size: 12px;
}

.gdf-step2-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #e5d5ff;
  background: #faf6ff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.6rem;
}

.gdf-step2-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #efe5ff;
  font-weight: 600;
  font-size: 13px;
}

.gdf-step2-summary-value {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.gdf-step2-summary-icon {
  font-size: 21px;
  opacity: 1;
}

.gdf-top-summary-panel {
  border: 1px solid #e5d5ff;
  border-top: 0;
  background: #fff;
  border-radius: 0 0 8px 8px;
  padding: 0.55rem 0.7rem;
}

.gdf-top-summary-panel p {
  margin: 0.3rem 0;
  font-size: 13px;
  color: #403a4d;
}

.gdf-top-summary-panel p strong {
  color: #5e5080;
}

.gdf-summary-jump {
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 0;
}

.gdf-summary-jump:hover {
  color: #efe5ff;
}

.gdf-step {
  display: none;
  animation: gdfFade 0.25s ease;
}

.gdf-step.is-active {
  display: block;
}

.gdf-step-1 h2 {
  text-align: center;
}

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

.gdf-pill-group,
.gdf-amount-grid,
.gdf-method-list,
.gdf-actions,
.gdf-donor-fields {
  display: grid;
  gap: 0.75rem;
}

.gdf-pill-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
}

.gdf-section-divider {
  border-top: 1px dashed #d9bdfc;
  margin: 0.2rem 0 0.65rem;
}

.gdf-pill input { display: none; }

.gdf-pill span,
.gdf-amount-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gdf-border);
  border-radius: 10px;
  padding: 0.58rem 0.9rem;
  background: #fff;
  cursor: pointer;
  width: 100%;
}

.gdf-pill span {
  min-height: 46px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(132, 0, 255, 0.06) inset;
}

.gdf-amount-btn {
  color: #8400ff;
  border-radius: 8px;
  min-height: 56px;
  font-size: 15px;
  font-weight: 600;
  border-color: #dcc7ff;
  box-shadow: 0 2px 10px rgba(132, 0, 255, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.gdf-amount-btn:hover:not(.is-selected) {
  background: #efe5ff;
  border-color: #ccb0ff;
  color: #6b00cf;
  box-shadow: 0 5px 16px rgba(132, 0, 255, 0.12);
  transform: translateY(-1px);
}

.gdf-pill input:checked + span,
.gdf-amount-btn.is-selected {
  background: var(--gdf-dark);
  color: #fff;
  border-color: var(--gdf-dark);
}

.gdf-amount-btn.is-selected {
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
}

.gdf-amount-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.gdf-custom-amount-wrap input,
.gdf-donor-fields input,
.gdf-details-note textarea {
  width: 100%;
  border: 1px solid #d8ded9;
  border-radius: 10px;
  padding: 0.65rem;
}

.gdf-details-note {
  margin: 0 0 0.8rem;
  border: 1px dashed #dcc7ff;
  border-radius: 12px;
  background: #fcf9ff;
  padding: 0.15rem 0.75rem 0.7rem;
}

.gdf-details-divider {
  border-top: 1px dashed #d9bdfc;
  margin: 0.8rem 0 0.75rem;
}

.gdf-details-note summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.2rem;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  color: #5a4a82;
  font-weight: 600;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.gdf-details-note summary::-webkit-details-marker {
  display: none;
}

.gdf-details-note summary::before {
  content: "✎";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #cdb0ff;
  background: #ffffff;
  color: #6d1fd0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 20px;
}

.gdf-details-note summary::after {
  content: "▾";
  margin-left: auto;
  color: #6d1fd0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.16s ease;
}

.gdf-details-note[open] summary::after {
  transform: rotate(180deg);
}

.gdf-details-note summary:hover {
  background: #efe5ff;
  color: #1f1f1f;
}

.gdf-details-note textarea {
  margin-top: 0.45rem;
  background: #fff;
  border-color: #d8c3ff;
}

.gdf-donor-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gdf-donor-fields label {
  font-weight: 700;
}

.gdf-total-box {
  margin: 0.75rem 0 1rem;
  border: 1px solid #e5d5ff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gdf-method-item {
  border: 1px solid #e5d5ff;
  border-radius: 12px;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.65rem;
}

.gdf-method-item input {
  margin: 0;
  align-self: center;
}

.gdf-method-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  grid-column: 2;
}

.gdf-method-icon-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 3px;
  flex: 0 0 32px;
}

.gdf-card-method-logo {
  width: 96px;
  height: 44px;
  border-radius: 0;
  flex: 0 0 96px;
}

.gdf-method-panel {
  display: none;
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #dcc7ff;
}

.gdf-method-item.is-selected .gdf-method-panel { display: block; }

#gdf-card-element {
  border: 1px solid #dcc7ff;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  min-height: 44px;
  box-sizing: border-box;
}

#gdf-card-errors {
  margin-top: 8px;
  color: #b91c1c;
  font-size: 13px;
}

.gdf-momo-box {
  background: #faf6ff;
  border: 1px solid #e6d7ff;
  border-radius: 12px;
  padding: 0.8rem;
}

.gdf-cover-fee {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0;
}

.gdf-cover-fee input {
  margin-top: 2px;
}

.gdf-cover-fee-card {
  border: 1px solid #e5d5ff;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: #faf6ff;
}

.gdf-fee-total-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  margin: 0.9rem 0 0.8rem;
}

.gdf-fee-total-row .gdf-cover-fee {
  margin: 0;
  height: 100%;
}

.gdf-fee-total-row .gdf-total-box {
  margin: 0;
  height: 100%;
}

.gdf-cover-fee-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.25;
}

.gdf-cover-fee-text small {
  color: #6f6290;
  font-size: 12px;
}

.gdf-btn {
  border: 0;
  text-decoration: none;
  cursor: pointer;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.gdf-btn-primary {
  background: var(--gdf-red);
  color: #fff;
  width: 100%;
  font-weight: 700;
  border: 1px solid transparent;
}

.gdf-btn-primary:hover { background: var(--gdf-red-dark); }

.gdf-step-3 .gdf-btn-primary:hover {
  background: #efe5ff;
  color: #6b00cf;
  border-color: #ccb0ff;
}

.gdf-btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.gdf-btn-secondary {
  background: #6d1fd0;
  color: #fff;
}

.gdf-btn-secondary:hover {
  background: #111111;
  color: #ffffff;
}

.gdf-back-link {
  border: 0;
  background: transparent;
  color: #6d1fd0;
  text-decoration: underline;
  justify-self: start;
  border-radius: 8px;
  padding: 0.2rem 0.35rem;
}

.gdf-back-link:hover {
  background: #f8f8f8;
  color: #1f1f1f;
  text-decoration: none;
}

.gdf-success-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #8400ff;
  color: #fff;
  font-size: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.8rem;
}

.gdf-summary-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.gdf-summary-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #ececec;
}

.gdf-step-3 .gdf-btn-primary {
  margin-top: 0.85rem;
}

.gdf-form-message {
  border-radius: 8px;
  padding: 0.65rem;
  background: #fef3f2;
  color: #7f1d1d;
  margin: 0 0 0.75rem;
}

.gdf-step-2 #gdf-form-message {
  margin-top: 0.85rem;
}

.gdf-donation-form .gdf-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}

@media (max-width: 640px) {
  .gdf-amount-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gdf-donor-fields { grid-template-columns: 1fr; }
  .gdf-fee-total-row { grid-template-columns: 1fr; }
  .gdf-top-summary-wrap { margin-bottom: 0.8rem; }
  .gdf-step2-summary-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .gdf-step2-summary-value {
    font-size: 15px;
  }

  .gdf-method-icon-logo {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .gdf-card-method-logo {
    width: 82px;
    height: 38px;
    flex: 0 0 82px;
  }
}
