/* ==========================================================================
   CONQUER E-LEARNING - STUDENT PROJECT SUBMISSION PORTAL
   Light Theme & Mobile-Responsive Design System
   ========================================================================== */

:root {
  /* Color Palette - Clean Light Mode */
  --bg-white: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-input: #ffffff;

  --border-brand: rgba(59, 130, 246, 0.3);
  --border-subtle: #e2e8f0;
  --border-input: #cbd5e1;

  --text-foreground: #0f172a;
  --text-muted: #64748b;
  --text-dark: #020617;

  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-purple: #7c3aed;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-foreground);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-white);
  width: 100%;
  margin: 0;
  padding: 0;
}

.desktop-only {
  display: inline;
}

/* Ambient Background Glow */
.glow-backdrop {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
}

.glow-above {
  width: 700px;
  height: 550px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.06) 50%, transparent 70%);
}

.glow-below {
  width: 600px;
  height: 500px;
  bottom: 0px;
  right: -100px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 80%);
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   MORPHING SQUARE COMPONENT
   ========================================================================== */
.morphing-square-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.morphing-square {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
  background-size: 200% 200%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation:
    morphShape 7s ease-in-out infinite alternate,
    gradientShift 6s ease infinite,
    spinSlow 14s linear infinite;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
}

.morphing-square-inner {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  animation: spinCounter 14s linear infinite;
}

.morphing-square-btn-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
}

.morphing-square-mini {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #ffffff, #93c5fd);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation:
    morphShape 4s ease-in-out infinite alternate,
    spinSlow 6s linear infinite;
}

/* Submitting Overlay Screen */
.submitting-overlay {
  min-height: 420px;
  padding: 4.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.submitting-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-foreground);
  margin-top: 0.5rem;
}

.submitting-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.5;
}

@keyframes morphShape {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  100% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

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

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  width: 100%;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.brand-logo-a {
  height: 42px;
  max-height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-normal);
}

.brand-logo-a:hover {
  transform: scale(1.02);
}

/* Hero Section with Mockup */
.hero-mockup-section {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem 4rem 1.25rem;
  overflow: hidden;
  width: 100%;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  width: 100%;
}

.hero-header-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  gap: 1.1rem;
  padding-top: 0.5rem;
  width: 100%;
}

/* Hero Announcement Badge */
.hero-announcement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-pill);
  max-width: 100%;
  flex-wrap: wrap;
  text-align: center;
}

.badge-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Hero Heading */
.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-align: center;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin: 0;
}

/* Hero Description */
.hero-description {
  max-width: 580px;
  width: 100%;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto;
}

/* CTAs Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  min-height: 42px;
  touch-action: manipulation;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  min-height: 38px;
}

.btn-brand-primary {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-brand-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 28px -5px rgba(37, 99, 235, 0.5);
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-foreground);
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.btn-secondary {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-foreground);
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* Alert Banner */
.alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
  animation: slideDown 0.3s ease-out;
  width: 100%;
}

.alert-banner.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.alert-banner.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.alert-banner.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.alert-close {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  opacity: 0.7;
  font-size: 1rem;
}
.alert-close:hover {
  opacity: 1;
}

.hidden {
  display: none !important;
}

/* MOCKUP FRAME WINDOW */
.mockup-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 50px -10px rgba(15, 23, 42, 0.08),
    0 0 35px -10px rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.mockup-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
  width: 100%;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}
.dot-yellow {
  background: #ffbd2e;
}
.dot-green {
  background: #27c93f;
}

.window-url-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.25rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.window-url-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.mockup-body {
  padding: 2rem;
  background: #ffffff;
  width: 100%;
}

/* Form Section Cards Inside Mockup */
.submission-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: 100%;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: border-color var(--transition-normal);
  width: 100%;
}

.form-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-foreground);
  line-height: 1.25;
}
.card-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.card-body {
  padding: 1.25rem;
  width: 100%;
}

/* Form Controls */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  width: 100%;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-foreground);
}
.required {
  color: #dc2626;
}
.optional-label {
  font-size: 0.73rem;
  font-weight: 400;
  color: var(--text-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
  transition: color var(--transition-normal);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 2.4rem;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 9px;
  color: var(--text-foreground);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  min-height: 42px;
  transition: var(--transition-normal);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2064748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
  padding-right: 2.4rem;
  text-overflow: ellipsis;
}

.form-textarea {
  padding: 0.65rem 0.85rem;
  resize: vertical;
  min-height: 90px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--brand-blue);
}

.error-msg {
  font-size: 0.72rem;
  color: #dc2626;
  font-weight: 500;
  display: block;
  min-height: 0.9rem;
}

/* File Upload Zone */
.file-upload-zone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  background: #f8fafc;
  transition: var(--transition-normal);
  cursor: pointer;
  width: 100%;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: var(--brand-blue);
  background: #eff6ff;
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.upload-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-foreground);
  margin-bottom: 0.25rem;
}
.upload-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.file-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  gap: 0.75rem;
  width: 100%;
}

.file-preview-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}
.file-type-icon {
  font-size: 1.35rem;
  color: var(--brand-blue);
  flex-shrink: 0;
}
.file-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.file-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-remove-file {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.btn-remove-file:hover {
  background: #fee2e2;
}

/* Form Actions Card */
.form-actions-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 100%;
}

.security-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.actions-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Success Card Inside Mockup */
.success-card {
  padding: 3rem 1.25rem;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-foreground);
}

.success-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.submission-details-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  width: 100%;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  gap: 0.5rem;
}

.detail-label {
  color: var(--text-muted);
  flex-shrink: 0;
}
.detail-val {
  color: var(--text-foreground);
  font-weight: 700;
  font-family: var(--font-mono);
  word-break: break-all;
}

.success-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Footer */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: #f8fafc;
  padding: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Staggered Animations */
.animate-appear {
  animation: appear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-150 {
  animation-delay: 150ms;
  opacity: 0;
}
.delay-300 {
  animation-delay: 300ms;
  opacity: 0;
}
.delay-700 {
  animation-delay: 700ms;
  opacity: 0;
}

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

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

/* ==========================================================================
   SURGICAL MOBILE RESPONSIVE FIXES (Smartphones & Small Displays)
   ========================================================================== */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .navbar {
    padding: 0.65rem 0.85rem;
  }
  .nav-container {
    padding: 0;
    justify-content: center;
  }

  .brand-logo-a {
    height: 32px !important;
    max-height: 32px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  .hero-mockup-section {
    padding: 1.25rem 0.75rem 2.5rem 0.75rem;
  }
  .hero-container {
    gap: 1.5rem;
  }

  .hero-header-content {
    padding-top: 0;
    gap: 0.85rem;
  }

  .morphing-square-container {
    width: 42px;
    height: 42px;
    margin-bottom: 0.15rem;
  }

  .morphing-square-inner {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .hero-announcement {
    padding: 0.18rem 0.55rem;
    font-size: 0.65rem;
    gap: 0.35rem;
    margin: 0 auto;
  }

  .badge-pill {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }

  .badge-text {
    font-size: 0.64rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5.5vw, 2.25rem);
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
    padding: 0 0.25rem;
  }

  .hero-description {
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 0.25rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 0.5rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 1.1rem;
    font-size: 0.84rem;
  }

  .mockup-frame-wrapper {
    border-radius: 12px;
  }

  .mockup-window-header {
    padding: 0.5rem 0.75rem;
  }

  .window-url-bar {
    font-size: 0.66rem;
    padding: 0.18rem 0.5rem;
  }

  .mockup-body {
    padding: 0.75rem 0.4rem;
  }

  .submission-grid {
    gap: 1rem;
  }

  .card-header {
    padding: 0.65rem 0.85rem;
    gap: 0.55rem;
  }

  .card-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  .card-title {
    font-size: 0.9rem;
  }
  .card-subtitle {
    font-size: 0.7rem;
  }
  .card-body {
    padding: 0.85rem 0.65rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
  }
  .form-group {
    margin-bottom: 0.65rem;
    gap: 0.3rem;
  }
  .form-label {
    font-size: 0.78rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.5rem 0.75rem 0.5rem 2.2rem;
    min-height: 40px;
    font-size: 1rem; /* 16px font prevents iOS Safari auto-zoom */
    border-radius: 8px;
  }

  .form-textarea {
    min-height: 80px;
    padding: 0.55rem 0.75rem;
  }

  .input-icon {
    left: 0.75rem;
    font-size: 0.8rem;
  }

  .file-upload-zone {
    padding: 0.9rem 0.65rem;
    border-radius: 8px;
  }

  .upload-icon-wrapper {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .upload-title {
    font-size: 0.85rem;
  }
  .upload-hint {
    font-size: 0.72rem;
    margin-bottom: 0.65rem;
  }

  .form-actions-card {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.65rem;
    padding: 0.75rem 0.65rem;
  }

  .actions-right {
    flex-direction: column;
    width: 100%;
    gap: 0.55rem;
  }

  .actions-right .btn {
    width: 100%;
    min-height: 40px;
    font-size: 0.86rem;
  }

  .security-note {
    justify-content: center;
    font-size: 0.75rem;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .brand-logo-a {
    height: 28px !important;
  }
  .hero-announcement {
    padding: 0.12rem 0.45rem;
    gap: 0.25rem;
  }
  .badge-pill {
    font-size: 0.56rem;
  }
  .badge-text {
    font-size: 0.58rem;
  }
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--text-foreground);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-normal);
}

.skip-link:focus {
  transform: translateY(0);
}

body {
  min-height: 100dvh;
}

main {
  flex: 1;
}

:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 0 auto 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.service-status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.service-status[data-state='ready'] .service-status-dot {
  background: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.16);
}

.service-status[data-state='offline'] .service-status-dot,
.service-status[data-state='error'] .service-status-dot {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.service-status[data-state='submitting'] .service-status-dot {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.form-input,
.form-select,
.form-textarea,
.btn,
.btn-sm,
.alert-close,
.btn-remove-file {
  min-height: 44px;
}

@media (max-width: 768px) {
  .hero-cta-group .btn,
  .actions-right .btn {
    min-height: 44px;
  }
}

.form-input[aria-invalid='true'],
.form-select[aria-invalid='true'],
.form-textarea[aria-invalid='true'] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.error-msg:empty {
  display: none;
}

.field-hint {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.auth-card {
  background: #f8fafc;
}

.auth-card-body {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
}

.auth-status {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.google-signin-button {
  min-height: 44px;
  min-width: 280px;
}

.google-signin-button > div {
  margin: 0 auto;
}

.auth-signout {
  min-height: 44px;
}

@media (max-width: 768px) {
  .submitting-overlay {
    min-height: 360px;
    padding: 3rem 1rem;
  }
}

.privacy-consent {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: none;
  padding: 1rem 1.15rem;
}

.privacy-consent-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.privacy-consent input[type='checkbox'][aria-invalid='true'] {
  outline: 3px solid rgba(220, 38, 38, 0.35);
  outline-offset: 2px;
}

.privacy-consent input[type='checkbox'] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--brand-blue);
}

.privacy-consent label {
  color: var(--text-foreground);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
}

.privacy-consent a,
.footer-link {
  color: var(--brand-blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.noscript-message {
  padding: 1rem;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  background: #fffbeb;
  color: #92400e;
}

.file-upload-zone:focus-within,
.file-upload-zone:focus-visible {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.footer-container {
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .file-preview-card {
    align-items: flex-start;
  }

  .file-preview-info {
    min-width: 0;
  }

  .file-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.preview-page {
  background: #f8fafc;
}

.preview-main {
  display: flex;
  justify-content: center;
  padding: 4rem 1.25rem;
}

.preview-card {
  width: min(100%, 620px);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.2);
  text-align: center;
}

.preview-card .privacy-back-link {
  display: inline-block;
  margin-bottom: 2rem;
  text-align: left;
}

.preview-eyebrow {
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-card h1 {
  color: var(--text-foreground);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.25;
  margin-top: 0.65rem;
}

.preview-loader {
  display: flex;
  justify-content: center;
  min-height: 120px;
  padding: 1.25rem 0;
}

.preview-loader .morphing-square-container {
  width: 76px;
  height: 76px;
}

.preview-loader .morphing-square-inner {
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
}

.preview-loader.is-paused .morphing-square,
.preview-loader.is-paused .morphing-square-inner {
  animation-play-state: paused;
}

.preview-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  max-width: 420px;
}

.privacy-page-card {
  max-width: 820px;
  margin: 0 auto;
}

.privacy-page-card .card-body {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.privacy-page-card h1 {
  color: var(--text-foreground);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.2;
  margin: 1.5rem 0 0.35rem;
}

.privacy-page-card h2 {
  color: var(--text-foreground);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.privacy-page-card p,
.privacy-page-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.privacy-page-card ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.privacy-updated {
  color: var(--text-muted) !important;
  font-size: 0.8rem !important;
  margin-bottom: 1rem;
}

.privacy-back-link {
  color: var(--brand-blue-dark);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
