/* 420 Plugins — Support Page
   Styling only (no markup/JS changes). */

.ra-support-card{
  margin: 22px auto;
  max-width: 860px;
  padding: clamp(16px, 2.6vw, 26px);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;

  background:
    radial-gradient(140% 140% at 12% 15%, rgba(177,79,255,.20), transparent 55%),
    radial-gradient(120% 140% at 88% 85%, rgba(0,224,198,.16), transparent 58%),
    linear-gradient(135deg,
      rgba(16,16,28,.92) 0%,
      rgba(12,18,24,.92) 55%,
      rgba(8,26,30,.96) 100%
    );

  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 26px 78px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 50px rgba(0,224,198,.07);
}

.ra-support-card::before{
  content:"";
  position:absolute;
  inset:-3.5rem;
  pointer-events:none;
  z-index:-1;
  background:
    radial-gradient(80% 120% at 10% 50%, rgba(177,79,255,.12), transparent 60%),
    radial-gradient(80% 120% at 90% 50%, rgba(0,224,198,.10), transparent 62%),
    radial-gradient(120% 100% at 50% 30%, rgba(0,0,0,0) 40%, rgba(12,15,17,.70) 78%, #0c0f11 100%);
  filter: blur(18px);
  opacity: .95;
}

.ra-support-card header{
  text-align: center;
  margin-bottom: 16px;
}

.ra-support-card header h2{
  margin: 0 0 8px;
  font-weight: 950;
  letter-spacing: .2px;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  line-height: 1.08;
}

.ra-support-card header .muted{
  margin: 0;
  color: var(--muted, #b6c0cc);
  font-weight: 700;
  font-size: 1.02rem;
  opacity: 1;
}

/* --- Form layout --- */
.support-form{ margin-top: 8px; }
.support-form .field{ margin-bottom: 16px; }

.support-form label{
  display:block;
  margin-bottom: 8px;
  font-weight: 900;
  letter-spacing: .18px;
  font-size: .98rem;
  color: #eef2f5;
}

.support-form .grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* --- Inputs (shared) --- */
.support-form .ra-input{
  width:100%;
  display:block;

  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;

  color: var(--text, #eef2f5);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset;

  padding: 12px 14px;
  font-size: 1.10rem;
  font-weight: 650;
  line-height: 1.2;

  transition:
    border-color .16s ease,
    box-shadow .18s ease,
    background .18s ease,
    transform .12s ease;
}

.support-form input.ra-input,
.support-form select.ra-input{
  height: 56px;
}

.support-form textarea.ra-input{
  min-height: 170px;
  resize: vertical;
  padding-top: 12px;
  padding-bottom: 12px;
}

.support-form .ra-input::placeholder{
  color: #a7b0b7;
  font-weight: 600;
}

.support-form .ra-input:focus{ outline: none; }

.support-form .ra-input:focus-visible{
  border-color: var(--brand-2, #00e0c6);
  background: rgba(0,0,0,.36);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand-2, #00e0c6) 34%, transparent),
    0 0 30px color-mix(in srgb, var(--brand-2, #00e0c6) 22%, transparent),
    0 0 0 1px rgba(255,255,255,.05) inset;
}

.support-form .ra-input:hover{
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

/* --- Select dropdown: custom caret “pill” that's inset from the edge --- */
.support-form select.ra-input{
  cursor: pointer;

  /* remove native arrow so we can style it */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* leave room for the custom caret pill */
  padding-right: 64px;

  /* keep the same base surface */
  background-color: rgba(0,0,0,.30);

  /* 1) a subtle rounded “pill” behind the caret, 2) the caret itself */
  background-image:
    radial-gradient(circle at center,
      rgba(255,255,255,.10) 0 58%,
      rgba(255,255,255,0) 62%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.25l4 4 4-4' fill='none' stroke='%23e9ebff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat, no-repeat;

  /* size the pill + caret */
  background-size: 30px 30px, 14px 14px;

  /* pull it away from the far-right edge (more obvious “dropdown”) */
  background-position: right 20px center, right 28px center;
}

/* extra clarity on hover */
.support-form select.ra-input:hover{
  border-color: rgba(255,255,255,.20);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 18px rgba(233,235,255,.06);
}

/* --- Actions row --- */
.support-form .actions{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 10px;
}

/* Submit button — match primary CTA, NO shimmer */
.ra-support-card .actions .pill.brand{
  position: relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height: 56px;
  padding: 0 1.25rem;
  border-radius: 14px;
  border: 0;

  font-size: 1.10rem;
  font-weight: 950;
  letter-spacing: .22px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;

  color: #fff;
  background: linear-gradient(90deg, #b14fff 0%, #00e0c6 100%);
  background-size: 200% 100%;

  box-shadow:
    0 14px 30px rgba(177,79,255,.30),
    0 0 0 1px rgba(255,255,255,.05) inset;

  transform: translateZ(0);
  transition:
    transform .14s ease,
    box-shadow .20s ease,
    background-position .35s ease,
    color .12s ease,
    filter .12s ease;
}

/* explicitly remove any shimmer layer */
.ra-support-card .actions .pill.brand::before{
  content: none !important;
  display: none !important;
}

.ra-support-card .actions .pill.brand:hover{
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(180deg, #41eb88, #22d86a);
  color: #0b0c10;
  box-shadow:
    0 20px 40px rgba(46,232,112,.30),
    0 0 0 1px rgba(0,0,0,.08) inset;
}

.ra-support-card .actions .pill.brand:active{
  transform: translateY(0) scale(1.0);
}

.ra-support-card .actions .pill.brand:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--brand-2, #00e0c6) 40%, transparent),
    0 0 30px color-mix(in srgb, var(--brand-2, #00e0c6) 30%, transparent),
    0 0 0 1px rgba(0,0,0,.06) inset;
}

.ra-support-card .actions .pill.brand[disabled]{
  opacity:.55;
  cursor:not-allowed;
  filter:saturate(.4);
}

/* Inline loader pill
   IMPORTANT: respect the [hidden] attribute so it only shows while submitting */
.inline-loader{
  display:inline-flex;
  align-items:center;
  gap: 8px;

  padding: .45rem .75rem;
  border-radius: 999px;

  font-weight: 800;
  font-size: .95rem;
  color: var(--muted, #b6c0cc);

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
  opacity: .95;
}

/* This fixes the “persistent Sending…” issue */
.inline-loader[hidden]{
  display:none !important;
}

/* Success / error banners */
.support-success,
.support-error{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 850;
  font-size: 1.02rem;
  line-height: 1.35;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
}

.support-success{
  color: #bbf7d0;
  border-color: rgba(65,235,136,.45);
  background: linear-gradient(180deg, rgba(65,235,136,.12), rgba(0,0,0,.26));
}
.support-success::before{ content:"✔ "; color: #41eb88; }

.support-error{
  color: #fecaca;
  border-color: rgba(248,113,113,.45);
  background: linear-gradient(180deg, rgba(248,113,113,.12), rgba(0,0,0,.26));
}
.support-error::before{ content:"⚠ "; color: #fb7185; }

/* Mobile */
@media (max-width: 640px){
  .support-form .grid-2{ grid-template-columns: 1fr; }

  .ra-support-card{
    border-radius: 18px;
    padding: 16px;
  }

  .support-form input.ra-input,
  .support-form select.ra-input{
    height: 54px;
    font-size: 1.05rem;
  }

  /* keep caret inset on narrow screens too */
  .support-form select.ra-input{
    padding-right: 62px;
    background-position: right 18px center, right 26px center;
  }

  .support-form .actions{
    flex-direction: column;
    align-items: stretch;
  }

  .ra-support-card .actions .pill.brand{
    width: 100%;
  }

  .inline-loader{
    justify-content: center;
    width: 100%;
  }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce){
  .support-form .ra-input,
  .ra-support-card .actions .pill.brand{
    transition: none !important;
  }
}
