:root{
  --bg:#151516;
  --surface:#181921;
  --surface-alt:#1f2028;
  --border:#262734;
  --text:#ffffff;
  --muted:#cfd2dc;
  --accent:#FF4136;
  --accent-soft:#ff5c52;
  --gold:#ffd166;
}

/* ===== YLEINEN TAUSTA (sama kuin leaderboard) ===== */

body {
  background: var(--bg);
  color: var(--text);
}

/* ===== CONTACT-SIVUN KUORI ===== */

.contact-shell {
  max-width: 1180px;
  margin: 28px auto 72px;
  padding: 0 18px;
}

/* ===== HERO (sama fiilis kuin lb-header) ===== */

.hero {
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.hero p {
  margin: 0;
  max-width: 720px;
  font-size: .95rem;
  color: var(--muted);
}

/* ===== GRID & CARDIT – leaderboard-henkinen panel look ===== */

.contact-grid,
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 10px;
}

/* Yleinen kortti, sama henki kuin podium + lb-paneelit */
.card {
  position: relative;
  background: #202022ff;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.55),
    inset 0 0 12px rgba(255,255,255,0.02);
  transform: translateY(0);
  transition:
    transform .22s cubic-bezier(.22,1,.36,1),
    box-shadow .22s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.6),
    inset 0 0 14px rgba(255,255,255,0.05);
}

/* Contact form -kortti: pysyy vakaana (ei hover-lift) */
.card.contactform {
  transition: none;
}
.card.contactform:hover {
  transform: none;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.55),
    inset 0 0 12px rgba(255,255,255,0.02);
}

/* Eyebrow, title, kuvaus – sama typografia kuin lb-sub jne. */

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
}

.title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.desc {
  font-size: .9rem;
  color: #dde1f0;
  line-height: 1.6;
}

/* ===== NAPIT (sama vibra kuin navin / leaderboardin painikkeet) ===== */

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.btnx {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.btnx i {
  font-size: .95rem;
}

.btnx:hover {
  background: var(--accent-soft);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.16);
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== DISCORD-WIDGET-KORTTI ===== */

.card.widget iframe {
  width: 100%;
  min-height: 260px;
  border-radius: 12px;
  border: 1px solid #2a2b36;
  background: #151516;
}

/* ===== CONTACT-FORMIN LAYOUT ===== */

.contact-form {
  margin-top: 6px;
  display: grid;
  gap: 10px;
}

/* Yhtenäiset label + field -tyylit */

.contact-form label {
  display: block;
}

.contact-form .field-label {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-form select,
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #2a2a32;
  background: #18181f;
  color: #ffffff;
  font-size: .9rem;
  outline: none;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.contact-form select:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(255,65,54,0.55);
  background: #171821;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit-nappi käyttää valmiiksi .btnx-tyyliä */

#contactSubmit[disabled] {
  opacity: .7;
  cursor: wait;
}

/* Notice / palauteviesti */

#contactNotice {
  margin-top: 2px;
  font-size: .9rem;
}

/* ===== RESPONSIVE GRID ===== */

/* Desktop-spesifi asettelu, vähän leaderboard-tyyliin “paneelit” */

@media (min-width: 960px) {
  .grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "contactform contactform"
      "email       community"
      "selfhelp    widget";
  }

  .card.contactform { grid-area: contactform; }
  .card.email       { grid-area: email; }
  .card.community   { grid-area: community; }
  .card.selfhelp    { grid-area: selfhelp; }
  .card.widget      { grid-area: widget; }

  .card.selfhelp,
  .card.widget {
    height: 100%;
  }
}

/* Mobiilissa kaikki vain pinossa nätisti */

@media (max-width: 600px) {
  .contact-shell {
    padding: 0 14px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btnx,
  .btn-ghost {
    justify-content: center;
    width: 100%;
  }
}
