.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.contact-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card h3,
.info-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.contact-card p,
.info-card p {
  color: var(--muted);
  line-height: 1.7;
}

.card-head {
  margin-bottom: 18px;
}

.card-head p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* FORM SIDE */
.form-card {
  padding: 26px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #232327;
  color: #f3f3f3;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.contact-form textarea {
  min-height: 180px;
  height: 180px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9d9d9d;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "⌄";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #d0d0d0;
  pointer-events: none;
  font-size: 1rem;
}

.contact-form select {
  padding-right: 44px;
  cursor: pointer;
}

.contact-form select option {
  background: #232327;
  color: #f3f3f3;
}

.submit-btn {
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, #696969, #a2a2a2);
  color: white;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  min-height: 52px;
  transition: 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.submit-btn.loading {
  pointer-events: none;
  opacity: 0.9;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loader {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* DISCORD SIDE */
.discord-panel {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.discord-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.discord-badge-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.discord-subtitle {
  color: var(--muted-2);
  font-size: 0.9rem;
}

.discord-main {
  margin-bottom: 24px;
}

.discord-main h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.1;
  color: #ffffff;
}

.discord-main p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 420px;
}

.discord-points {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.discord-point {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dddddd;
  font-size: 0.95rem;
}

.point-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfcfcf;
  flex-shrink: 0;
}

.discord-btn {
  width: fit-content;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* BOTTOM INFO */
.contact-extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.info-card h3 {
  margin-bottom: 12px;
}

/* TOAST */
.toast {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 1400;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(32, 32, 36, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* SUCCESS PAGE */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.success-card {
  width: 100%;
  max-width: 760px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 34px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.success-card h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.success-card p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn-primary,
.btn-secondary {
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #696969, #a2a2a2);
  color: white;
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: white;
  border: 1px solid var(--border);
}

/* FOOTER */
.contact-footer {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-extra {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .input-row {
    grid-template-columns: 1fr;
  }

  .discord-main h2 {
    font-size: 1.6rem;
  }

  .success-card {
    padding: 26px;
  }

  .success-card h1 {
    font-size: 2.2rem;
  }
}

.discord-badge-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}