/*
 * am-webhost.com — Shop component styles
 * Nav, footer, body: Tailwind (layout.php)
 * This file: forms, cards, domain results, buttons — migrated page by page
 */

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 24px 48px -12px rgba(26, 28, 28, 0.08);
  padding: 2rem;
  max-width: 480px;
  margin: 2rem auto;
}
.form-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1c1c;
  margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #444935;
  margin-bottom: 0.35rem;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #e2e2e2;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #1a1c1c;
  transition: background 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(77, 103, 0, 0.2);
}
.form-hint  { font-size: 0.8rem; color: #747a63; margin-top: 0.3rem; }
.form-error { color: #ba1a1a;    font-size: 0.82rem; margin-top: 0.3rem; }

.form-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #747a63;
}
.form-footer a { color: #4d6700; text-decoration: none; font-weight: 600; }
.form-footer a:hover { opacity: 0.8; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, #4d6700 0%, #99c706 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(77, 103, 0, 0.25);
}
.btn-primary:hover { opacity: 0.92; }

.btn-secondary {
  background: #eeeeee;
  color: #1a1c1c;
}
.btn-secondary:hover { background: #e2e2e2; }

.btn-danger {
  background: #ba1a1a;
  color: #fff;
}
.btn-danger:hover { opacity: 0.9; }

.btn-full {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #4d6700 0%, #99c706 100%);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(77, 103, 0, 0.25);
  transition: opacity 0.15s;
  margin-top: 0.5rem;
}
.btn-full:hover { opacity: 0.9; }

/* ── Domain results table ──────────────────────────────────────────────────── */
.domain-results {
  width: 100%;
  border-collapse: collapse;
}
.domain-results th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #747a63;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f3f3f3;
}
.domain-results td {
  padding: 0.875rem 1rem;
}
.domain-results tr.available { background: #fff; }
.domain-results tr.available:hover { background: #f9f9f9; }
.domain-results tr.taken { background: #f9f9f9; color: #747a63; }
.domain-name strong { font-size: 1rem; font-weight: 600; }
.domain-price { color: #4d6700; font-weight: 700; }
.domain-action { text-align: right; white-space: nowrap; }

.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(153, 199, 6, 0.15);
  color: #4d6700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-taken {
  display: inline-flex;
  align-items: center;
  background: rgba(186, 26, 26, 0.08);
  color: #ba1a1a;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-add-cart {
  background: linear-gradient(135deg, #4d6700 0%, #99c706 100%);
  color: #fff;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(77, 103, 0, 0.2);
  transition: opacity 0.15s;
}
.btn-add-cart:hover    { opacity: 0.88; }
.btn-add-cart:disabled { background: #e2e2e2; color: #747a63; box-shadow: none; cursor: default; }

/* ── Legacy layout helpers (used by non-migrated pages) ────────────────────── */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1c1c;
  margin-bottom: 0.5rem;
}
.hero .subline {
  color: #747a63;
  margin-bottom: 2rem;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero h1   { font-size: 1.75rem; }
  .form-card { padding: 1.5rem; margin: 1rem; max-width: none; }
}
