* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  height: 100%;
  background: url('https://source.unsplash.com/1600x900/?dark,technology') no-repeat center center fixed;
  background-size: cover;
}

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #a78bfa;
  --background: #f7f9fb;
  --surface: #ffffff;
  --text: #222e3a;
  --text-light: #5a6a85;
  --error: #e53935;
  --success: #43a047;
  --border: #e0e6ed;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.overlay {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content {
  background: var(--surface);
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px rgba(124, 58, 237, 0.08);
  padding: 2.5rem 2rem;
  max-width: 620px;
  width: 100%;
  margin: 2rem;
}

h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

form {
  margin-top: 1.5rem;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  font-size: 1.2rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"] {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--background);
  color: var(--text);
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--primary);
  outline: none;
}

button[type="submit"] {
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
  transition: background 0.2s;
  width: 100%;
  margin-top: 0.5rem;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background: var(--primary-dark);
}

.message {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  background: var(--success);
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.message:empty {
  display: none;
}

footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-light);
}

footer a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.3em;
  transition: color 0.2s;
}

footer a:hover,
footer a:focus {
  color: var(--accent);
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 2.5rem 0 2rem 0;
}
.countdown-box {
  background: rgba(255,255,255,0.85);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(124,58,237,0.08);
  padding: 1.2rem 1.1rem 0.7rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}
.countdown-number {
  font-size: 2.7rem;
  font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.countdown-label {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 0.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 600px) {
  .content {
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
  }
  h1 {
    font-size: 1.3rem;
  }
  .countdown-wrapper {
    gap: 0.5rem;
  }
  .countdown-box {
    min-width: 45px;
    padding: 0.7rem 0.5rem 0.4rem 0.5rem;
  }
  .countdown-number {
    font-size: 1.3rem;
  }
  .countdown-label {
    font-size: 0.8rem;
  }
}
