:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-panel: rgba(255, 255, 255, 0.03);
  --bg-panel-hover: rgba(255, 255, 255, 0.05);
  --bg-overlay: rgba(0, 0, 0, 0.8);
  
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  
  --accent-primary: #00d4ff;
  --accent-secondary: #0099cc;
  --accent-success: #00ff88;
  --accent-warning: #ffaa00;
  --accent-danger: #ff4444;
  --accent-info: #4488ff;
  
  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.15);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
          --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 24px 96px rgba(0, 0, 0, 0.8);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-number {
  position: absolute;
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 800;
  color: rgba(0, 212, 255, 0.02);
  animation: float 25s infinite linear;
  user-select: none;
  opacity: 0;
  transform: translateY(50px);
}

.floating-number:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 30s;
}

.floating-number:nth-child(2) {
  top: 65%;
  right: 15%;
  animation-delay: -7s;
  animation-duration: 35s;
}

.floating-number:nth-child(3) {
  bottom: 25%;
  left: 20%;
  animation-delay: -14s;
  animation-duration: 40s;
}

.floating-number:nth-child(4) {
  top: 35%;
  right: 25%;
  animation-delay: -21s;
  animation-duration: 45s;
}

.floating-number.animate-in {
  animation: numberLoadIn 1.5s ease-out forwards;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(90deg); }
  50% { transform: translateY(-60px) rotate(180deg); }
  75% { transform: translateY(-30px) rotate(270deg); }
  100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes numberLoadIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  50% {
    opacity: 0.3;
    transform: translateY(-10px) scale(1.1);
  }
  100% {
    opacity: 0.02;
    transform: translateY(0px) scale(1);
  }
}

/* App Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main Navigation */
.main-navigation {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand .site-title {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid transparent;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.05);
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.nav-icon {
  font-size: 1rem;
  transition: var(--transition);
}

.nav-link:hover .nav-icon {
  transform: scale(1.1);
}

.nav-link span:last-child {
  z-index: 1;
  position: relative;
}

/* Header */
.header {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.8rem;
}

.brand-number {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text {
  color: var(--text-primary);
}

.header-stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  min-width: 100px;
}

.stat-item:hover {
  background: var(--bg-panel-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

/* Main OPT PLANNER Heading */
.main-heading {
  text-align: center;
  margin: 8px 0 8px 0;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 153, 204, 0.05));
  border-radius: 20px;
  margin-left: 20px;
  margin-right: 20px;
  position: relative;
  overflow: hidden;
}

.main-heading .main-title {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00d4ff, #0099cc, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 20px 0;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  }
  100% {
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.8), 0 0 80px rgba(0, 212, 255, 0.4);
  }
}

.main-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.site-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00d4ff, #0099cc, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.main-heading .planning-quote {
  margin-top: 15px;
  margin-bottom: 0;
}

.main-heading .planning-quote p {
  margin: 0;
  color: var(--accent-warning);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

/* OPT Timeline Metrics Section */
.timeline-metrics {
  text-align: center;
  margin: 8px 0 15px 0;
  padding: 0 30px;
}

.metrics-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  position: relative;
  display: inline-block;
}

.metrics-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  border-radius: 2px;
}

.metrics-grid {
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 100px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.metric-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.metric-item:hover::before {
  left: 100%;
}

.metric-item:hover {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05));
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.4);
}

.metric-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00d4ff, #00bfff, #0099cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
  transition: all 0.3s ease;
}

.metric-item:hover .metric-number {
  transform: scale(1.1);
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff, #b0b0b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* OPT Timeline Section */
.opt-timeline-section {
  text-align: center;
  margin: 30px 0;
  padding: 0 30px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile Header Stats Optimization */
@media (max-width: 768px) {
  .main-heading {
    margin: 30px 0 20px 0;
  }
  
  .site-title {
    font-size: 2.5rem;
  }
  
  .timeline-metrics {
    margin: 20px 0 30px 0;
  }
  
  .metrics-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .metrics-grid {
    gap: 20px;
  }
  
  .metric-item {
    min-width: 100px;
    padding: 15px 20px;
  }
  
  .metric-number {
    font-size: 2rem;
  }
  
  .header-stats {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .stat-item {
    min-width: 80px;
    padding: 12px 16px;
    flex: 1;
    min-width: 0;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .header-stats {
    gap: 10px;
  }
  
  .stat-item {
    padding: 10px 12px;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.65rem;
  }
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 10px 30px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  height: 100%;
}

/* Mobile Content Grid Optimization */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .main-content {
    padding: 24px 20px;
  }
  
  .input-panel,
  .results-panel {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .content-grid {
    gap: 20px;
  }
  
  .main-content {
    padding: 20px 16px;
  }
  
  .input-panel,
  .results-panel {
    padding: 20px;
  }
}

/* Input Panel */
.input-panel, .results-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.input-panel::before, .results-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.input-panel:hover, .results-panel:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.panel-header {
  text-align: center;
  margin-bottom: 32px;
}

.panel-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.planner-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form Group Enhancements */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.label-icon {
  font-size: 1.1rem;
}

.help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}

/* Date Input Wrapper */
.date-input-wrapper {
  position: relative;
  z-index: 1;
}

/* Clean Date Display Interface */
.date-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: var(--transition);
}

.date-display:hover {
  border-color: var(--border-medium);
}

.date-text {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.date-text.has-date {
  color: var(--accent-primary);
  font-weight: 600;
}

.date-picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-primary);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.date-picker-btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px);
}

.date-picker-btn .btn-icon {
  font-size: 1rem;
}



/* STEM Timeline - Clean Display */
.stem-timeline {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 0;
}

.stem-timeline.hidden {
  display: none;
}

.stem-timeline:not(.hidden) {
  animation: slideInUp 0.6s ease-out;
  display: block;
}

.stem-timeline .section-header {
  margin-bottom: 16px;
  text-align: center;
}

.stem-timeline .section-header h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.stem-timeline .section-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.stem-timeline .timeline-grid {
  margin-bottom: 0;
}

/* Enhanced Form Inputs */
.form-group input,
.form-group select {
  padding: 16px 18px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  min-height: 48px; /* Better mobile touch target */
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.form-group input:hover,
.form-group select:hover {
  border-color: var(--border-medium);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

/* Mobile Form Input Optimizations */
@media (max-width: 768px) {
  .form-group input,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 52px; /* Better touch target */
    padding: 16px 20px;
  }
  
  .form-group label {
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
  }
  
  /* Better mobile form spacing */
  .form-group {
    margin-bottom: 20px;
  }
}

/* Results Panel */
.results-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-section,
.uscis-section,
.info-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.timeline-section:hover,
.uscis-section:hover,
.info-section:hover {
  background: var(--bg-panel-hover);
  box-shadow: var(--shadow-lg);
}

.section-header {
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Timeline Grid - Clean Layout */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 0 2px 2px 0;
}

.timeline-item:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-medium);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.timeline-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.2);
}

.timeline-item.critical {
  border-left: 4px solid var(--accent-warning);
}

.timeline-item.important {
  border-left: 4px solid var(--accent-primary);
}

.timeline-item.info {
  border-left: 4px solid var(--accent-info);
}

.timeline-item.success {
  border-left: 4px solid var(--accent-success);
}

.timeline-content {
  flex: 1;
  margin: 0;
}

.timeline-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.timeline-date {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 6px;
  margin: 0 0 6px 0;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Mobile Timeline Optimizations */
@media (max-width: 768px) {
  .timeline-item {
    padding: 16px;
    gap: 12px;
    flex-direction: column;
    text-align: center;
  }
  
  .timeline-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  
  .timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }
  
  .timeline-date {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  
  .timeline-content p {
    font-size: 0.9rem;
  }
}

/* Countdown Section - Clean Display */
.countdown-section {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  margin-top: 20px;
}

.countdown-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 16px 0;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  margin: 0;
}

.countdown-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 0;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin: 0;
}

/* Mobile Countdown Optimizations */
@media (max-width: 768px) {
  .countdown-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .countdown-item {
    padding: 20px 16px;
    min-height: 80px;
    justify-content: center;
  }
  
  .countdown-number {
    font-size: 2.2rem;
  }
  
  .countdown-label {
    font-size: 0.9rem;
  }
}

/* Current Time Display */
.current-time-display {
  text-align: center;
  margin-top: 15px;
  padding: 8px 12px;
  background: rgba(0, 212, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.current-time-display small {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.current-time-display span {
  color: var(--accent-primary);
  font-weight: 600;
  font-family: monospace;
}

/* Custom Date Picker - Modern Redesign */
.custom-date-picker {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1000;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 320px;
}

.custom-date-picker.active {
  display: block;
  animation: datePickerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes datePickerSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.picker-nav {
  background: transparent;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.4rem;
  font-weight: 600;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.picker-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.picker-nav:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.picker-nav:hover::before {
  transform: scale(1);
}

.picker-nav:active {
  transform: translateY(0);
}

.picker-close {
  background: var(--accent-danger, #dc3545);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.picker-close:hover {
  background: var(--accent-danger-hover, #c82333);
  transform: scale(1.1);
}

.current-month {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  flex: 1;
  margin: 0 16px;
  letter-spacing: -0.02em;
}

.picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.picker-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.picker-days-header span {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 4px;
}

.picker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.picker-day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-primary);
  border-radius: var(--radius-md);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.picker-day:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.picker-day:hover::before {
  transform: scale(1);
}

.picker-day.today {
  background: var(--accent-info);
  color: var(--text-primary);
  border-color: var(--accent-info);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(68, 136, 255, 0.3);
}

.picker-day.today:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(68, 136, 255, 0.4);
}

.picker-day.selected {
  background: var(--accent-primary);
  color: var(--text-primary);
  border-color: var(--accent-primary);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.picker-day.selected:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.picker-day.other-month {
  color: var(--text-muted);
  opacity: 0.4;
}

.picker-day.other-month:hover {
  opacity: 0.7;
  color: var(--text-secondary);
}

.picker-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.picker-btn {
  padding: 12px 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 80px;
}

.picker-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-md);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.picker-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.picker-btn:hover::before {
  transform: scale(1);
}

.today-btn {
  background: var(--accent-info);
  color: var(--text-primary);
  border-color: var(--accent-info);
  box-shadow: 0 4px 20px rgba(68, 136, 255, 0.2);
}

.today-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(68, 136, 255, 0.3);
}

.today-btn::before {
  background: rgba(68, 136, 255, 0.1);
}

.clear-btn {
  background: var(--accent-danger);
  color: var(--text-primary);
  border-color: var(--accent-danger);
  box-shadow: 0 4px 20px rgba(255, 68, 68, 0.2);
}

.clear-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 68, 68, 0.3);
}

.clear-btn::before {
  background: rgba(255, 68, 68, 0.1);
}

.date-trigger-btn {
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.date-trigger-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-primary);
  border-radius: var(--radius-md);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.date-trigger-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

.date-trigger-btn:hover::before {
  transform: scale(0.05);
}

.date-trigger-btn .btn-icon {
  font-size: 1.3rem;
  z-index: 1;
  position: relative;
}

.date-trigger-btn .btn-text {
  z-index: 1;
  position: relative;
}



/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
    min-height: 60px;
  }
  
  .nav-brand .site-title {
    font-size: 1.5rem;
  }
  
  .nav-menu {
    gap: 4px;
  }
  
  .nav-link {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .nav-link span:last-child {
    display: none; /* Hide text on mobile, show only icons */
  }
  
  .nav-link .nav-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 16px;
  }
  
  .nav-brand .site-title {
    font-size: 1.3rem;
  }
  
  .nav-link {
    padding: 8px 12px;
  }
}

/* Mobile Date Picker */
@media (max-width: 768px) {
  .custom-date-picker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 360px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10000;
    padding: 20px;
  }
  
  .picker-days {
    gap: 6px;
  }
  
  .picker-day {
    font-size: 0.9rem;
    padding: 4px;
  }
  
  .picker-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .picker-btn {
    width: 100%;
    padding: 14px 20px;
  }
  
  .picker-nav {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
  
  .current-month {
    font-size: 1.1rem;
    margin: 0 12px;
  }
}

/* Planning Quote */
.planning-quote {
  text-align: center;
  margin-top: 15px;
  padding: 12px 16px;
  background: rgba(255, 170, 0, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 170, 0, 0.2);
}

.planning-quote p {
  margin: 0;
  color: var(--accent-warning);
  font-size: 0.85rem;
  font-style: italic;
  font-weight: 500;
}

/* USCIS Section */
.uscis-form {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.uscis-form .form-group {
  flex: 1;
}

.uscis-results {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.status-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.status-badge {
  padding: 6px 12px;
  background: var(--accent-info);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-details {
  display: grid;
  gap: 12px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.status-item:last-child {
  border-bottom: none;
}

.status-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.status-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Info Section */
.info-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.info-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.info-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-success), #00cc66);
  color: var(--text-primary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-icon {
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Mobile Button Optimizations */
@media (max-width: 768px) {
  .btn {
    min-height: 52px; /* Better mobile touch target */
    padding: 18px 24px;
    font-size: 1.1rem;
    width: 100%; /* Full width on mobile */
    justify-content: center;
  }
  
  /* Mobile button spacing */
  .btn + .btn {
    margin-top: 12px;
  }
  
  /* Mobile button groups */
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: var(--transition);
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: var(--text-primary);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border-light);
  border-top: 4px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Timeline Item Animations */
.timeline-item {
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

/* Countdown Item Animations */
.countdown-item {
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.countdown-item:nth-child(1) { animation-delay: 0.5s; }
.countdown-item:nth-child(2) { animation-delay: 0.6s; }

.hidden {
  display: none;
}

.timeline-section:not(.hidden),
.uscis-results:not(.hidden) {
  animation: fadeIn 0.6s ease-out;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .header-stats {
    gap: 20px;
  }
  
  .stat-item {
    min-width: 80px;
    padding: 12px 16px;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 30px 20px;
  }
  
  .header .container {
    padding: 0 20px;
    flex-direction: column;
    gap: 20px;
  }
  
  .header-stats {
    gap: 15px;
  }
  
  .stat-item {
    min-width: 70px;
    padding: 10px 12px;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .input-panel,
  .timeline-section,
  .uscis-section,
  .info-section {
    padding: 20px;
  }
  
  .uscis-form {
    flex-direction: column;
    gap: 12px;
  }
  
  .uscis-form .form-group {
    width: 100%;
  }
  
  .uscis-results {
    padding: 16px;
  }
  
  .status-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .status-badge {
    align-self: flex-start;
  }
  
  .countdown-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-number {
    font-size: clamp(2rem, 8vw, 6rem);
  }

  /* Responsive Date Presets */
  .date-presets {
    gap: 6px;
  }
  
  .date-preset {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 20px 15px;
  }
  
  .header .container {
    padding: 0 15px;
  }
  
  .brand {
    font-size: 1.5rem;
  }
  
  .header-stats {
    gap: 10px;
  }
  
  .stat-item {
    min-width: 60px;
    padding: 8px 10px;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.6rem;
  }
  
  .panel-header h2 {
    font-size: 1.5rem;
  }
  
  .section-header h3 {
    font-size: 1.2rem;
  }
  
  .btn {
    padding: 14px 20px;
    font-size: 0.9rem;
  }

  .date-presets {
    flex-direction: column;
    gap: 8px;
  }
  
  .date-preset {
    text-align: center;
    padding: 8px 12px;
  }
  
  .help-text {
    font-size: 0.75rem;
    margin-left: 0;
    margin-top: 4px;
  }
  
  /* Better mobile form inputs */
  .form-group input,
  .form-group select {
    min-height: 48px;
    font-size: 16px;
    padding: 14px 16px;
  }
  
  /* Better mobile buttons */
  .btn {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 1rem;
  }
  
  /* Mobile-friendly spacing */
  .input-panel,
  .timeline-section,
  .uscis-section,
  .info-section {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  /* Mobile-friendly date presets */
  .date-presets {
    gap: 6px;
    margin-top: 10px;
  }
  
  .date-preset {
    padding: 8px 10px;
    font-size: 0.75rem;
    min-height: 44px;
    flex: 1;
    min-width: 0;
    text-align: center;
  }
}

/* Smooth scrolling and focus styles */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-light: rgba(255, 255, 255, 0.3);
    --border-medium: rgba(255, 255, 255, 0.5);
  }
} 

/* Native date input is now used - custom picker CSS removed */ 

/* Timeline Section - Clean Display */
.timeline-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  margin-bottom: 0;
}

.timeline-section.hidden {
  display: none;
}

.timeline-section:not(.hidden) {
  animation: slideInUp 0.6s ease-out;
  display: block;
}

.timeline-section:hover {
  background: var(--bg-panel-hover);
  box-shadow: var(--shadow-lg);
}

.section-header {
  margin-bottom: 20px;
  text-align: center;
}

.section-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Timeline Grid - Clean Layout */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 0 2px 2px 0;
}

.timeline-item:hover {
  background: var(--bg-panel-hover);
  border-color: var(--border-medium);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.timeline-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.2);
}

.timeline-item.critical {
  border-left: 4px solid var(--accent-warning);
}

.timeline-item.important {
  border-left: 4px solid var(--accent-primary);
}

.timeline-item.info {
  border-left: 4px solid var(--accent-info);
}

.timeline-item.success {
  border-left: 4px solid var(--accent-success);
}

.timeline-content {
  flex: 1;
  margin: 0;
}

.timeline-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.timeline-date {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 6px;
  margin: 0 0 6px 0;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Countdown Section - Clean Display */
.countdown-section {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  margin-top: 20px;
}

.countdown-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 16px 0;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  margin: 0;
}

.countdown-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 0;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin: 0;
}

/* STEM Timeline - Clean Display */
.stem-timeline {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 0;
}

.stem-timeline.hidden {
  display: none;
}

.stem-timeline:not(.hidden) {
  animation: slideInUp 0.6s ease-out;
  display: block;
}

.stem-timeline .section-header {
  margin-bottom: 16px;
  text-align: center;
}

.stem-timeline .section-header h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.stem-timeline .section-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.stem-timeline .timeline-grid {
  margin-bottom: 0;
}

/* Smooth Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Timeline Item Animations */
.timeline-item {
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

/* Countdown Item Animations */
.countdown-item {
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.countdown-item:nth-child(1) { animation-delay: 0.5s; }
.countdown-item:nth-child(2) { animation-delay: 0.6s; }

/* Clean iPhone-Style Date Input */
.date-input-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.date-input-wrapper input[type="date"] {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.date-input-wrapper input[type="date"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.date-input-wrapper input[type="date"]:hover {
  border-color: var(--border-medium);
}

/* iPhone-style date picker styling */
input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  color: var(--accent-primary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  filter: invert(1) brightness(0.8) sepia(1) hue-rotate(180deg) saturate(2);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: scale(1.1);
}

/* Firefox date input styling */
input[type="date"]::-moz-calendar-picker-indicator {
  background: transparent;
  color: var(--accent-primary);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

input[type="date"]::-moz-calendar-picker-indicator:hover {
  background: rgba(0, 212, 255, 0.1);
}

/* Date input text styling */
input[type="date"]::-webkit-datetime-edit {
  color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-text {
  color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-month-field {
  color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-day-field {
  color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--text-primary);
}

/* Mobile Timeline Optimizations */
@media (max-width: 768px) {
  .timeline-section {
    padding: 20px;
    margin-bottom: 0;
  }
  
  .section-header h3 {
    font-size: 1.4rem;
  }
  
  .section-header p {
    font-size: 0.9rem;
  }
  
  .timeline-item {
    padding: 16px;
    gap: 12px;
    flex-direction: column;
    text-align: center;
    margin-bottom: 0;
  }
  
  .timeline-icon {
    font-size: 2rem;
    margin-bottom: 8px;
  }
  
  .timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .timeline-date {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  
  .timeline-content p {
    font-size: 0.85rem;
  }
  
  .countdown-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .countdown-item {
    padding: 16px;
    min-height: 80px;
    justify-content: center;
  }
  
  .countdown-number {
    font-size: 1.8rem;
  }
  
  .countdown-label {
    font-size: 0.8rem;
  }
  
  .stem-timeline {
    margin-top: 20px;
    padding-top: 20px;
  }
} 

/* Countdown Section - Clean Professional Display */
.countdown-section {
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  margin-top: 20px;
}

.countdown-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 16px 0;
}

.countdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
  margin: 0;
  transition: var(--transition);
}

.countdown-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 0;
  line-height: 1;
}

.countdown-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin: 0;
  text-align: center;
  max-width: 120px;
}

/* Mobile Countdown Optimizations */
@media (max-width: 768px) {
  .countdown-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .countdown-item {
    padding: 16px;
    min-height: 80px;
    justify-content: center;
  }
  
  .countdown-number {
    font-size: 2rem;
  }
  
  .countdown-label {
    font-size: 0.8rem;
    max-width: 100%;
  }
} 

/* USCIS Form Styling */
.uscis-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

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

.uscis-form label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.uscis-form input[type="text"] {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.uscis-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.uscis-form input[type="text"]:hover {
  border-color: var(--border-medium);
}

.form-help {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.uscis-form .form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.uscis-form .btn {
  flex: 1;
  min-width: 140px;
}

/* USCIS Results Styling */
.uscis-results {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

.uscis-results.hidden {
  display: none;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.status-header h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.status-badge {
  padding: 8px 16px;
  background: var(--accent-primary);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.approved {
  background: var(--accent-success);
}

.status-badge.pending {
  background: var(--accent-warning);
}

.status-badge.rejected {
  background: var(--accent-danger);
}

.status-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 120px;
  flex-shrink: 0;
}

.detail-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
  flex: 1;
  word-break: break-word;
}

/* Legal Disclaimer Styling */
.legal-disclaimer {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
  text-align: center;
}

.legal-disclaimer small {
  color: var(--accent-primary);
  font-weight: 500;
}

.production-notice {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 212, 255, 0.3);
}

.production-notice small {
  color: var(--accent-warning);
  font-weight: 500;
}

/* Mobile USCIS Optimizations */
@media (max-width: 768px) {
  .uscis-form .form-actions {
    flex-direction: column;
  }
  
  .uscis-form .btn {
    width: 100%;
    min-width: auto;
  }
  
  .status-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .status-badge {
    align-self: flex-start;
  }
  
  .detail-item {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .detail-label {
    min-width: auto;
  }
  
  .detail-value {
    text-align: left;
  }
} 

/* Enhanced focus states and accessibility */
.picker-nav:focus,
.picker-day:focus,
.picker-btn:focus,
.date-trigger-btn:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.picker-day:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Improved hover states for better visual feedback */
.picker-day:hover {
  color: var(--text-primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 212, 255, 0.25);
  z-index: 2;
}

.picker-day.selected:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.picker-day.today:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 30px rgba(68, 136, 255, 0.4);
}

/* Smooth transitions for all interactive elements */
.picker-day,
.picker-nav,
.picker-btn,
.date-trigger-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced button states */
.picker-btn:active,
.date-trigger-btn:active {
  transform: translateY(0) scale(0.98);
}

.picker-nav:active {
  transform: translateY(0) scale(0.95);
}

/* Better visual hierarchy for the date picker */
.custom-date-picker {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 8px 32px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced backdrop for better focus */
.custom-date-picker.active {
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(17, 17, 17, 0.95);
}

/* Improved day grid layout */
.picker-days {
  gap: 6px;
  margin-bottom: 20px;
}

.picker-day {
  min-height: 40px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Better spacing for mobile */
@media (max-width: 768px) {
  .picker-day {
    min-height: 36px;
    font-size: 0.9rem;
  }
  
  .picker-days {
    gap: 4px;
  }
  
  .custom-date-picker {
    padding: 16px;
    border-radius: var(--radius-md);
  }
} 

/* Coffee Button Section - Floating Island */
.coffee-section {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
  pointer-events: auto;
}

.coffee-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
}

.coffee-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s;
}

.coffee-button:hover::before {
  left: 100%;
}

.coffee-button:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.coffee-icon {
  font-size: 1.4rem;
  opacity: 0.9;
}

.coffee-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
  flex: 1;
}

.coffee-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.coffee-subtitle {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  opacity: 0.8;
  font-style: italic;
}

.coffee-arrow {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.coffee-button:hover .coffee-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Responsive design for floating coffee button */
@media (max-width: 1200px) {
  .coffee-section {
    right: 15px;
  }
  
  .coffee-button {
    min-width: 180px;
    padding: 14px 18px;
  }
}

@media (max-width: 768px) {
  .coffee-section {
    position: fixed;
    top: auto;
    bottom: 20px;
    right: 20px;
    transform: none;
  }
  
  .coffee-button {
    min-width: 160px;
    padding: 12px 16px;
    gap: 10px;
  }
  
  .coffee-title {
    font-size: 0.9rem;
  }
  
  .coffee-subtitle {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .coffee-section {
    bottom: 15px;
    right: 15px;
  }
  
  .coffee-button {
    min-width: 140px;
    padding: 10px 14px;
    gap: 8px;
  }
  
  .coffee-text {
    min-width: 90px;
  }
  
  .coffee-title {
    font-size: 0.85rem;
  }
  
  .coffee-subtitle {
    font-size: 0.7rem;
  }
}

/* Calendar Integration Section */
.calendar-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
}

.calendar-header {
  text-align: center;
  margin-bottom: 24px;
}

.calendar-header h4 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calendar-header p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.calendar-event {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  min-height: 100px;
  height: 100px;
}

.calendar-event:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.event-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  height: 100%;
  align-items: center;
}

.event-date {
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 80px;
  width: 80px;
  height: 50px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.event-details h5 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.event-details p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

.calendar-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  min-width: 100px;
  width: 100px;
  height: 50px;
  justify-content: center;
}

.calendar-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.calendar-add-btn .btn-icon {
  font-size: 1rem;
}

.calendar-add-btn .btn-text {
  font-weight: 500;
}

.calendar-info {
  text-align: center;
  margin-top: 16px;
}

.calendar-info small {
  color: var(--text-secondary);
  opacity: 0.8;
  font-size: 0.85rem;
}

/* Calendar button states */
.calendar-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: var(--bg-secondary);
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.calendar-add-btn:disabled:hover {
  transform: none;
  box-shadow: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

/* Success state for calendar buttons */
.calendar-add-btn.success {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

.calendar-add-btn.success:hover {
  background: #218838;
  border-color: #218838;
}

/* Responsive design for calendar section */
@media (max-width: 768px) {
  .calendar-section {
    padding: 20px;
    margin-top: 20px;
  }
  
  .calendar-events {
    gap: 12px;
  }
  
  .calendar-event {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    min-height: auto;
    height: auto;
  }
  
  .event-info {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    height: auto;
  }
  
  .event-date {
    align-self: center;
    min-width: 70px;
    width: 70px;
    height: 45px;
  }
  
  .calendar-add-btn {
    align-self: center;
    min-width: 120px;
    width: 120px;
    height: 45px;
  }
  
  .calendar-header h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .calendar-section {
    padding: 16px;
    margin-top: 16px;
  }
  
  .calendar-event {
    padding: 14px;
    gap: 14px;
  }
  
  .event-date {
    min-width: 60px;
    width: 60px;
    height: 40px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .event-details h5 {
    font-size: 1rem;
  }
  
  .event-details p {
    font-size: 0.85rem;
  }
  
  .calendar-add-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    min-width: 100px;
    width: 100px;
    height: 40px;
  }
  
  .calendar-header h4 {
    font-size: 1.1rem;
  }
}

/* Calendar Modal */
.calendar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.calendar-modal-content {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease-out;
}

.calendar-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid var(--border-light);
}

.calendar-modal-header h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.calendar-modal-body {
  padding: 24px;
}

.calendar-modal-body p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
  font-size: 1rem;
}

.calendar-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calendar-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: var(--transition);
  font-weight: 500;
}

.calendar-option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.calendar-option.google:hover {
  background: #4285f4;
  color: white;
  border-color: #4285f4;
}

.calendar-option.apple:hover {
  background: #007aff;
  color: white;
  border-color: #007aff;
}

.calendar-option.outlook:hover {
  background: #0078d4;
  color: white;
  border-color: #0078d4;
}

.calendar-option .option-icon {
  font-size: 1.2rem;
}

.calendar-option .option-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Modal animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive design for calendar modal */
@media (max-width: 768px) {
  .calendar-modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .calendar-modal-header {
    padding: 20px 20px 16px 20px;
  }
  
  .calendar-modal-header h3 {
    font-size: 1.3rem;
  }
  
  .calendar-modal-body {
    padding: 20px;
  }
  
  .calendar-option {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .calendar-modal-content {
    width: 98%;
    max-height: 90vh;
  }
  
  .calendar-modal-header {
    padding: 16px 16px 12px 16px;
  }
  
  .calendar-modal-header h3 {
    font-size: 1.2rem;
  }
  
  .calendar-modal-body {
    padding: 16px;
  }
  
  .calendar-option {
    padding: 12px 14px;
  }
  
  .calendar-option .option-text {
    font-size: 0.9rem;
  }
}

/* STEM Date Picker Specific Styles */
#stemCustomDatePicker {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 20px;
  min-width: 300px;
  display: none;
  margin: 0;
  overflow: visible;
  max-height: 90vh;
  overflow-y: auto;
}

#stemCustomDatePicker.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Add backdrop overlay when STEM date picker is active */
#stemCustomDatePicker.active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  pointer-events: none;
}

/* Ensure STEM date picker is above other elements */
#stemOptEndGroup {
  position: relative;
  z-index: 1000;
}

/* Ensure the date input wrapper doesn't interfere with positioning */
#stemOptEndGroup .date-input-wrapper {
  position: relative;
  z-index: 1000;
}

/* Additional STEM date picker visibility fixes - Higher specificity */
body #stemCustomDatePicker {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10000 !important;
  pointer-events: auto !important;
  background: var(--bg-panel) !important;
  border: 2px solid var(--accent-primary) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

/* Debug: Ensure no other elements block the STEM picker */
#stemOptEndGroup {
  overflow: visible !important;
}

.date-input-wrapper {
  overflow: visible !important;
}

#stemCustomDatePicker .picker-header,
#stemCustomDatePicker .picker-days-header,
#stemCustomDatePicker .picker-days,
#stemCustomDatePicker .picker-actions {
  position: relative;
  z-index: 10001;
}

/* STEM Date Picker Button */
#stemDateTriggerBtn {
  width: 100%;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: var(--transition);
}

#stemDateTriggerBtn:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

#stemDateTriggerBtn.selected {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}