/* PolyLinks support pages — form styles
   Inherits the dark, document-like base from legal.css and adds form chrome. */

@import url('../legal/legal.css');

/* Failsafe: re-declare footer centering in case @import is blocked */
.footer,
.legal-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  line-height: 1.7;
}

/* Subhead under H1 */
.lead {
  font-size: 17px;
  color: #C8C8C8;
  margin-bottom: 32px;
  line-height: 1.6;
}
.lead a { color: #FFD100; }

/* Form layout */
form { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.01em;
}
.field .hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: -2px;
}
.field .req { color: #FFD100; margin-left: 2px; }

/* Inputs */
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: #242424;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 14px;
  color: #FFFFFF;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #FFD100;
  background: #2A2A2A;
}
input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23FFD100' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Two columns on wider screens */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* Submit button — yellow brand button */
button[type="submit"] {
  background: #FFD100;
  color: #1A1A1A;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(255, 209, 0, 0.18);
}
button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 209, 0, 0.28);
}
button[type="submit"]:active { transform: translateY(0); }
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Status messages */
.status {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px;
  margin-top: 8px;
  display: none;
}
.status.show { display: block; }
.status.success {
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.4);
  color: #4ECDC4;
}
.status.error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #FF6B6B;
}

/* Success card replaces form on success */
.success-card {
  background: rgba(255, 209, 0, 0.06);
  border: 1px solid rgba(255, 209, 0, 0.2);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  display: none;
}
.success-card.show { display: block; }
.success-card .check {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: #FFD100;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #1A1A1A;
  font-weight: 800;
}
.success-card h2 { margin-top: 0; margin-bottom: 8px; }
.success-card p { color: #C8C8C8; margin-bottom: 0; }

/* Tabs / navigation between support pages */
.support-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.support-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  background: #242424;
  color: #C8C8C8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, color 0.15s ease;
}
.support-nav a:hover {
  background: #2A2A2A;
  color: #FFFFFF;
}
.support-nav a.active {
  background: #FFD100;
  color: #1A1A1A;
  border-color: #FFD100;
}
