/* Import Sansation font */
@import url('https://fonts.googleapis.com/css2?family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

.titanbase-signup {
  font-family: 'Sansation', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f5f7fa;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  color: #222;
  animation: fadeInBody 0.6s ease-out;
}

@keyframes fadeInBody {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card container */
.titanbase-signup .container.wrap {
  background: #fff;
  padding: 2rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  max-width: 480px;
  width: 100%;
  animation: popIn 0.5s ease-out;
}

@keyframes popIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Logo + branding */
.titanbase-signup .logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}
.titanbase-signup .logo img {
  max-height: 4rem;
  margin-bottom: 0.5rem;
  animation: slideDown 0.8s ease-out;
}
.titanbase-signup .logo::after {
  content: "Titanbase Dispatch";
  font-size: 1.4rem;
  font-weight: 700;
  color: #db2627;
  margin-top: 0.25rem;
}
.titanbase-signup .logo::before {
  content: "Product updates & release notes straight to your inbox";
  font-size: 0.9rem;
  font-weight: 400;
  color: #555;
  order: 2;
  margin-top: 0.4rem;
}

@keyframes slideDown {
  0% { transform: translateY(-15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Replace only the main Subscribe heading */
.titanbase-signup section > h2 {
  font-size: 0; /* hide original text */
  position: relative;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
.titanbase-signup section > h2::after {
  content: "Stay Updated With Titanbase";
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
}

/* Form layout */
.titanbase-signup form.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.titanbase-signup form.form p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
}
.titanbase-signup form.form p:nth-child(1) { animation-delay: 0.2s; }
.titanbase-signup form.form p:nth-child(2) { animation-delay: 0.4s; }
.titanbase-signup form.form .lists { animation-delay: 0.6s; }

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(10px); }
}

/* Labels */
.titanbase-signup form.form label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

/* Inputs */
.titanbase-signup form.form input[type="email"],
.titanbase-signup form.form input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.15s;
}
.titanbase-signup form.form input[type="email"]:focus,
.titanbase-signup form.form input[type="text"]:focus {
  outline: none;
  border-color: #db2627;
  box-shadow: 0 0 0 3px rgba(219,38,39,0.2);
  transform: scale(1.01);
}

/* Lists */
.titanbase-signup ul.lists {
  list-style: none;
  padding: 0;
  margin: 0;
}
.titanbase-signup ul.lists h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: left;
  font-weight: 700;
}
.titanbase-signup ul.lists li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.titanbase-signup ul.lists input[type="checkbox"] {
  accent-color: #db2627;
}

/* Captcha styling */
.titanbase-signup .captcha {
  margin: 1rem 0;
  padding: 1rem;
  border: 1.5px solid #ddd;
  border-radius: 0.5rem;
  background: #fafafa;
  display: flex;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.titanbase-signup .captcha:hover {
  border-color: #db2627;
  box-shadow: 0 0 0 3px rgba(219,38,39,0.1);
}
.titanbase-signup .captcha label {
  font-size: 0.95rem;
  color: #333;
}
.titanbase-signup .captcha input[type="checkbox"] {
  accent-color: #db2627;
  width: 1.1rem;
  height: 1.1rem;
}

/* Submit button */
.titanbase-signup button.button {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #db2627;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.titanbase-signup button.button:hover {
  background: #b41e1f;
  box-shadow: 0 4px 12px rgba(219,38,39,0.3);
}
.titanbase-signup button.button:active {
  transform: scale(0.98);
}

/* Footer and archive link */
.titanbase-signup footer.container,
.titanbase-signup p.right {
  display: none !important;
}