:root {
  --primary-color: #b0cb1f;
  --accent-color: #a7cf3a;
  --surface-color: #f8fafb;
  --text-on-surface: #191c1d;
  --text-variant: #454839;
  --kinetic-radius: 28px;
  --kinetic-shadow: 0px 12px 32px rgba(78, 103, 0, 0.08);
}

/* Kinetic Brand Classes */
.kinetic-card {
  background: #ffffff;
  border-radius: var(--kinetic-radius);
  box-shadow: var(--kinetic-shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
}

.kinetic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 24px 48px rgba(78, 103, 0, 0.12);
}

.btn-kinetic-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 700;
  border: none;
  transition: all 0.2s ease;
}

.btn-kinetic-primary:hover {
  background-color: #3a4e00;
  color: #ffffff;
  transform: scale(1.02);
}

.btn-kinetic-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 10px 32px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-kinetic-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.kinetic-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #c8f25a;
  color: #151f00;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.learning-step {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b0cb1f 0%, #4e6700 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
}

/* Timeline Connector */
.step-col {
  position: relative;
}

@media (min-width: 768px) {
  .step-col:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #e1e3e4;
    z-index: 1;
  }
}

.navbar {
  height: 80px;
  backdrop-filter: blur(12px);
  background-color: rgba(248, 250, 251, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.form-control,
.form-select {
  background-color: #eceeef;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(78, 103, 0, 0.2);
  background-color: #e1e3e4;
}

.success-card {
  border-bottom: 8px solid #b0cb1f !important;
}

.material-symbols-outlined {
  vertical-align: middle;
}

/* --- Fine-tuned Typography & Elements --- */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-on-surface);
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Custom Component Structural Label Alignment */
.kinetic-form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-variant) !important;
}

/* Upgraded Input Controls styles to overwrite defaults safely */
.kinetic-form-input,
.kinetic-form-select {
  background-color: #eceeef !important;
  border: 2px solid transparent !important;
  /* padding: 0.85rem 1.25rem !important; */
  border-radius: 14px !important;
  font-size: 0.95rem;
  color: var(--text-on-surface) !important;
  transition: all 0.2s ease-in-out;
}

.kinetic-form-input:focus,
.kinetic-form-select:focus {
  background-color: #ffffff !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 4px rgba(167, 207, 58, 0.15) !important;
  outline: none;
}

/* Negative Space Avatar Alignment Layers */
.kinetic-avatar-stack {
  margin-right: 0.25rem;
}

.kinetic-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.kinetic-avatar:not(:first-child) {
  margin-left: -14px; /* Pulls avatars together into a crisp stack */
}

.kinetic-avatar:hover {
  transform: translateY(-4px) scale(1.05);
  position: relative;
  z-index: 10;
}

/* Refined primary submission layout button modifications */
.btn-kinetic-primary {
  border-radius: 50rem;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition:
    transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1),
    background-color 0.2s ease;
}

/* Responsive view optimizations */
@media (max-width: 991.98px) {
  .hero-title {
    text-align: center;
  }
  .lead {
    text-align: center;
  }
  .d-flex.align-items-center.gap-3.mt-4 {
    justify-content: center;
    margin-bottom: 2rem;
  }
}

.mass-hero-area {
  padding: 50px 0; 
  background-image: url('../img/hero/umass-hero.jpg');
  background-size: cover;
  background-position: center;
}


/* --- High-Contrast Hero Layout Structural Adjustments --- */
.mass-hero-area {
    position: relative;
    padding: 100px 0; 
    background-image: url('../img/hero/umass-hero.jpg');
    background-size: cover;
    background-position: center right;
    background-color: #131c25; /* Safe structural dark fallback */
    z-index: 1;
}

/* Linear Left-to-Right Dark Vignette Layer */
.mass-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(19, 28, 37, 0.98) 0%, 
        rgba(19, 28, 37, 0.90) 35%, 
        rgba(19, 28, 37, 0.50) 70%, 
        rgba(19, 28, 37, 0.20) 100__
    );
    background: linear-gradient(90deg, 
        rgba(15, 23, 30, 0.98) 0%, 
        rgba(15, 23, 30, 0.88) 45%, 
        rgba(15, 23, 30, 0.45) 75%, 
        rgba(15, 23, 30, 0.15) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Isolating the interactive viewport elements clear above the gradient */
.mass-hero-content {
    z-index: 3;
}

/* Typography Overhauls over Dark Canvas */
.mass-hero-accent {
    color: var(--primary-color);
}

.mass-hero-lead {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Glass/Card Layout shadow optimization against background images */
.mass-form-container {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25) !important;
}

/* Custom interactive input depth fixes for high contrast screens */
.kinetic-form-input,
.kinetic-form-select {
    background-color: #f1f3f4 !important;
    color: #191c1d !important;
}

.kinetic-form-input:focus,
.kinetic-form-select:focus {
    background-color: #ffffff !important;
}

/* Responsive Adaptive Viewport Breakpoints */
@media (max-width: 991.98px) {
    .mass-hero-area {
        padding: 70px 0;
    }
    /* Switches to a clean top-to-bottom vertical gradient overlay on mobile screens */
    .mass-hero-overlay {
        background: linear-gradient(180deg, 
            rgba(15, 23, 30, 0.98) 0%, 
            rgba(15, 23, 30, 0.85) 100%
        );
    }
    .hero-title, .lead {
        text-align: center;
    }
    .d-flex.align-items-center.gap-3.mt-4 {
        justify-content: center;
        margin-bottom: 2.5rem;
    }
}