:root {
  --primary: #00ff9d;
  --background: #0f172a;
  --card-bg: #1e293b;
  --text: #f8fafc;
  --error: #ef4444;
  --border: #00ff9d;
  --secondary: #334155;
  --led-bg: #1e293b; /* Dark blue for LED background */
}

* {
  box-sizing: border-box;
  user-select: none;
}

input {
  user-select: text;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #0ea5e9, #0891b2);
  color: var(--text);
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  flex: 1;
}

.left, .right {
  flex: 1 1 100%;
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.left:hover, .right:hover {
  transform: translateY(-4px);
}

.left img {
  width: 100%;
  border-radius: 12px;
  max-height: 200px;
  object-fit: cover;
  margin-top: 16px;
}

h2, h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 600;
}

p {
  font-size: 15px;
  margin: 6px 0;
  line-height: 1.6;
}

p.note {
  color: var(--error);
  font-weight: bold;
}

label {
  display: block;
  margin-top: 18px;
  font-weight: 500;
  font-size: 14px;
}

input {
  width: 100%;
  max-width: 400px;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background-color: transparent;
  color: var(--text);
  margin-top: 6px;
  transition: border-color 0.2s ease;
}

input::placeholder {
  color: #94a3b8;
}

input:focus {
  border-color: #22d3ee;
  outline: none;
}

input[readonly] {
  background-color: var(--secondary);
}

button {
  width: 100%;
  max-width: 400px;
  padding: 14px 20px;
  margin-top: 28px;
  background-color: var(--primary);
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:disabled {
  background-color: #64748b;
  cursor: not-allowed;
}

button:hover:enabled {
  background-color: #06d6a0;
}

.info-box {
  font-size: 13px;
  margin-top: 10px;
  color: var(--error);
}

.error-text {
  color: var(--error);
  font-size: 14px;
  text-align: center;
  display: none;
}

.closed-notice {
  background-color: var(--error);
  color: var(--text);
  padding: 18px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  border-radius: 12px;
  margin-bottom: 20px;
  max-width: 960px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.led-notice {
  background-color: var(--led-bg);
  padding: 18px;
  text-align: center;
  font-size: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  max-width: 960px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden; /* Ensure scrolling text stays within bounds */
}

.led-marquee {
  display: inline-block;
  white-space: nowrap;
  color: #ffffff; /* White text */
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace; /* LED-like font */
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Glow effect for LED look */
  animation: marquee 15s linear infinite; /* Scroll from right to left */
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.footer {
  text-align: center;
  font-size: 14px;
  color: var(--text);
  padding: 20px 0;
  margin-top: auto;
}

.hidden {
  display: none;
}

@media (max-width: 767px) {
  input, button {
    max-width: 100%;
  }

  h2, h3 {
    font-size: 18px;
  }

  .left img {
    max-height: 160px;
  }

  .led-notice {
    padding: 10px;
    font-size: 15px; /* Larger font size for mobile */
    max-width: 100%; /* Match form column width */
  }

  .led-marquee {
    font-size: 15px; /* Larger font size for mobile */
    animation: marquee-mobile 10s linear infinite; /* Scroll for mobile */
    display: inline-block;
    white-space: nowrap;
    width: 100%; /* Ensure full width for smooth scrolling */
  }

  .led-marquee::after {
    content: none; /* Remove duplicated text */
  }

  @keyframes marquee-mobile {
    0% {
      transform: translateX(100%); /* Start from right */
    }
    100% {
      transform: translateX(-250%); /* Move to left, showing full text */
    }
  }
}

@media (min-width: 768px) {
  .container {
    flex-wrap: nowrap;
  }

  .left, .right {
    flex: 1;
  }

  .left img {
    max-height: 250px;
  }
}