@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --primary: #3B82F6;
  --primary-deep: #2563EB;
  --primary-soft: #60A5FA;
  --cyan: #22D3EE;
  --indigo: #6366F1;
  --white: #fff;
  --bg-1: #FFFFFF;
  --bg-2: #E8F3FF;
  --text: #0F172A;
  --text-soft: #64748B;
  --border: #E2E8F0;
  --shadow-card: 0 18px 50px rgba(37, 99, 235, 0.10), 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 10px 28px rgba(37, 99, 235, 0.32);
  --radius-card: 24px;
  --radius-ctl: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

body {
  font-family: Inter, Montserrat, system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(59, 130, 246, 0.18), transparent 62%),
    radial-gradient(640px 380px at 100% 100%, rgba(34, 211, 238, 0.14), transparent 52%),
    radial-gradient(560px 340px at 0% 85%, rgba(99, 102, 241, 0.12), transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F0F7FF 52%, #E8F2FF 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 28%, black 18%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 28%, black 18%, transparent 72%);
}





.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 15px;
  padding-top: 30px;
  width: 100%;
  box-sizing: border-box;
}

.header-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 15px 30px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-card);
}

.site-title {
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin: 0;
  letter-spacing: 1px;
}

.glass-frame {
  z-index: 2;
  overflow: visible;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-card);
  padding: 30px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-card);
}

.glass-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.28));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}


.form-title {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.45;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
}

.glass-input {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-ctl);
  padding: 14px 18px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.glass-input::placeholder { color: #94A3B8; }

.glass-input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
  transform: translateY(-1px);
}

.glass-button {
  background: linear-gradient(180deg, #4C8DFA 0%, #3B82F6 52%, #2563EB 100%);
  border: 0;
  border-radius: var(--radius-ctl);
  padding: 22px 22px;
  min-height: 64px;
  font-size: 1.02rem;
  font-weight: 800;
  font-family: inherit;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-glow);
}

.glass-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: left 0.55s ease;
}

.glass-button:hover::before { left: 130%; }
.glass-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}
.glass-button:active { transform: translateY(0); }

.countdown-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 22px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.countdown-title {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 15px;
}

.timer-number {
  background: linear-gradient(180deg, #4C8DFA 0%, #3B82F6 100%);
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 800;
  padding: 10px 10px;
  border-radius: 12px;
  width: 62px;
  text-align: center;
  border: 0;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.timer-label {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 8px;
}

.countdown-footer {
  color: #334155;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.45;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  gap: 32px;
}

.custom-dropdown { position: relative; width: 100%; z-index: 40; }

.form-container.dropdown-open {
  z-index: 30;
  transition: all 0.3s ease;
}
.form-container.dropdown-open .glass-button {
  margin-top: 8px;
  transition: all 0.3s ease;
}


.dropdown-selected {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.dropdown-selected:focus,
.dropdown-selected:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}
.dropdown-selected:hover,
.dropdown-selected.active {
  background: #fff;
  border-color: var(--primary-soft);
}

.selected-text { color: var(--text); font-size: 1rem; }
.dropdown-arrow { color: #64748B; transition: transform 0.3s ease; margin-left: 10px; }
.dropdown-selected.active .dropdown-arrow { transform: rotate(180deg); }

.glass-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
  z-index: 50;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.glass-dropdown.show {
  max-height: 280px;
  opacity: 1;
}

.dropdown-option {
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.18s ease;
  border-bottom: 1px solid #F1F5F9;
  position: relative;
}

.dropdown-option:last-child { border-bottom: none; }
.dropdown-option:hover {
  background: #EFF6FF;
  color: var(--primary-deep);
  padding-left: 22px;
}
.dropdown-option.selected {
  background: #DBEAFE;
  color: var(--primary-deep);
  font-weight: 700;
}
.dropdown-option.selected::after {
  content: "✓";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-weight: 800;
}

.dropdown-options {
  background: #fff;
}

@media (max-width: 768px) {
  .main-content { gap: 15px; }
  .container { justify-content: flex-start; }
  .header-glass { width: 100%; max-width: 350px; padding: 15px 25px; margin-bottom: 30px; text-align: center; }
  .site-title { font-size: 1.5rem; letter-spacing: 1px; }
  .countdown-container { box-sizing: border-box; padding: 18px 14px; margin: 0 auto; }
  .countdown-title { font-size: 1rem; }
  .countdown-timer { gap: 8px; }
  .timer-number { font-size: 1.4rem; padding: 10px 6px; width: 52px; }
  .timer-label { font-size: 0.75rem; }
  .countdown-footer { font-size: 0.92rem; }
  .glass-frame { padding: 26px 18px; margin: 0 auto; width: 100%; }
  .form-title { font-size: 1.18rem; }
  .glass-input { padding: 12px 16px; }
  .glass-button { padding: 20px 16px; min-height: 60px; }
  .dropdown-option { padding: 12px 16px; font-size: 0.88rem; }
  .selected-text { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .container { padding: 10px; padding-top: 22px; }
  .glass-frame { padding: 22px 14px; }
  .form-title { font-size: 1.05rem; margin-bottom: 18px; }
  .timer-number { font-size: 1.2rem; width: 44px; padding: 8px 4px; }
  .glass-button { font-size: 0.92rem; }
}


.ai-word {
  background: linear-gradient(90deg, #0F172A 0%, #1D4ED8 28%, #22D3EE 50%, #2563EB 72%, #0F172A 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aiShine 5.5s linear infinite;
}

@keyframes aiShine {
  to { background-position: 220% center; }
}


.glass-button {
  animation: btnPulse 2.8s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 99, 235, 0.32); }
  50% { box-shadow: 0 10px 28px rgba(37, 99, 235, 0.42), 0 0 0 7px rgba(59, 130, 246, 0.16); }
}

.timer-number {
  animation: tickGlow 1.6s ease-in-out infinite;
}

@keyframes tickGlow {
  0%, 100% { box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28); filter: brightness(1); }
  50% { box-shadow: 0 8px 22px rgba(34, 211, 238, 0.38); filter: brightness(1.08); }
}

.glass-input:focus {
  background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, #3B82F6, #22D3EE, #6366F1, #3B82F6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-color: transparent;
}

.node-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 10px #22D3EE, 0 0 18px rgba(59, 130, 246, 0.8);
  animation: spark 3.4s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}
.node-spark.s1 { top: 18px; left: 18px; }
.node-spark.s2 { top: 18px; right: 18px; animation-delay: -1.1s; background: #3B82F6; }
.node-spark.s3 { bottom: 18px; left: 22px; animation-delay: -2.2s; background: #6366F1; }
.node-spark.s4 { bottom: 18px; right: 22px; animation-delay: -0.6s; }

@keyframes spark {
  0%, 100% { transform: scale(0.7); opacity: 0.35; }
  50% { transform: scale(1.25); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-word, .glass-button, .timer-number, .node-spark { animation: none; }
}
