:root {
  /* Color Palette - Premium White theme */
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --surface-hover: #f1f5f9;
  --primary-color: #2563eb;
  /* Stronger Blue for light theme */
  --primary-glow: rgba(37, 99, 235, 0.1);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --accent-color: #059669;
  /* Success Green */

  --font-family: 'Outfit', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Glassmorphism Header */
header {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

/* Section Styling */
section {
  background: var(--surface-color);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

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

h1,
h2,
h3 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

h1 {
  color: #0f172a;
}

h2 {
  font-size: 2rem;
  color: #0f172a;
  display: inline-block;
  padding-bottom: 8px;
  position: relative;
  margin-bottom: 2.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.1rem;
  color: #334155;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Legal Disclosure Box */
.disclosure-box {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 1.5rem;
  height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #475569;
  border: 1px solid var(--border-color);
  line-height: 1.7;
}

.disclosure-box p {
  margin-bottom: 1rem;
}

.disclosure-box::-webkit-scrollbar {
  width: 8px;
}

.disclosure-box::-webkit-scrollbar-track {
  background: transparent;
}

.disclosure-box::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  color: #475569;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

input::placeholder {
  color: #94a3b8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Button Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 1.1rem;
  letter-spacing: -0.2px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
  filter: brightness(1.05);
}

/* Signature Pad */
#signature-pad {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  cursor: crosshair;
  margin-bottom: 1rem;
  width: 100%;
}

/* Checkbox Styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary-color);
  cursor: pointer;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.95rem;
  color: #334155;
  user-select: none;
  font-weight: 500;
}

.checkbox-label-small {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

/* Employment History Cards */
.employment-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.employment-card h4 {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 5px;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

/* Footer */
footer {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}