/* ==========================================================================
   KODERELIX - Elevated Split Apply Page
   Inspired by careers.coderelix.com & Homepage Design Language
   Sophisticated Split Screen:
   - Left: Cinematic Tech Vision Panel (Midnight Slate, Glowing Honeycomb,
           Architect Visual Showcase, Ambient Badges, Social Links)
   - Right: Ultra-Polished Application Form Panel (Crisp Modern Cards,
            Interactive Role Selector, Custom Drag-and-Drop Resume, Glowing Inputs)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Midnight Teal (#021D27) & Coral (#FC7561) */
  --bg-dark-base: #021D27;
  --bg-dark-surface: #052835;
  --bg-dark-card: #0A3445;
  --bg-dark-border: rgba(255, 255, 255, 0.08);
  --bg-dark-border-hover: rgba(252, 117, 97, 0.4);

  /* Right Panel Form Background */
  --bg-form-panel: #FFFFFF;
  --bg-input-card: #F8FAFC;
  --bg-input-card-focus: #FFFFFF;
  --border-input: #E2E8F0;
  --border-input-focus: #FC7561;

  /* Primary Brand Coral / Accent (#FC7561) */
  --coral-primary: #FC7561;
  --coral-hover: #FD8977;
  --coral-active: #E65F4B;
  --coral-glow: rgba(252, 117, 97, 0.3);
  --coral-subtle: rgba(252, 117, 97, 0.08);
  --coral-border: rgba(252, 117, 97, 0.25);
  --coral-gradient: #FC7561;
  --coral-text-gradient: linear-gradient(135deg, #FC7561 20%, #FEB5A8 100%);

  /* Text Colors */
  --text-dark-hero: #FFFFFF;
  --text-dark-muted: #94A3B8;
  --text-form-main: #1E293B;
  --text-form-muted: #64748B;
  --text-form-placeholder: #94A3B8;

  /* Functional Status */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & Shadows */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-input-focus: 0 0 0 3px rgba(252, 117, 97, 0.15), 0 4px 12px rgba(252, 117, 97, 0.08);
  --shadow-card-dark: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-btn-glow: 0 8px 25px rgba(252, 117, 97, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark-base);
  color: var(--text-form-main);
  line-height: 1.5;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

.coral-gradient-text {
  background: var(--coral-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   3. The Split Screen Page Layout (Desktop 50/50 or 52/48)
   -------------------------------------------------------------------------- */
.split-page-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   4. Left Section: Interactive Career Photobook Panel (52% Width)
   -------------------------------------------------------------------------- */
.career-album-panel,
.tech-showcase-panel {
  flex: 0 0 52%;
  width: 52%;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  background-color: var(--bg-dark-base);
  background-image:
    radial-gradient(circle at 85% 15%, rgba(252, 117, 97, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(2, 29, 39, 0.7) 0%, transparent 50%),
    linear-gradient(180deg, #021D27 0%, #052835 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px 12px 20px;
  overflow-y: hidden;
  overflow-x: hidden;
  border-right: 1px solid var(--bg-dark-border);
}

.career-album-panel {
  --lb-bg: transparent;
  --lb-sage-deep: #021D27;
  --lb-sage: #FC7561;
  --site-font-heading: 'Plus Jakarta Sans', var(--font-heading), sans-serif;
  --site-font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.career-album-panel .lifebook__stack {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Custom Sleek Scrollbar for Album Panel */
.career-album-panel::-webkit-scrollbar {
  width: 6px;
}

.career-album-panel::-webkit-scrollbar-track {
  background: rgba(2, 29, 39, 0.4);
}

.career-album-panel::-webkit-scrollbar-thumb {
  background: rgba(252, 117, 97, 0.25);
  border-radius: 4px;
}

.career-album-panel::-webkit-scrollbar-thumb:hover {
  background: var(--coral-primary);
}

/* Viewport and Stage - Maximized to Fit Left Section */
.career-album-panel .lifebook__viewport {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 0;
}

.career-album-panel .lifebook__stage {
  position: relative;
  width: 100%;
  height: clamp(520px, calc(100vh - 84px), 940px);
}

@container (width < 600px) {
  .career-album-panel .lifebook__stage {
    height: clamp(400px, calc(130cqw + 10px), 80svh);
  }
}

/* Hardcover Styling Refinements */
.career-album-panel .cover__frame {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
  cursor: pointer;
}

.career-album-panel .page--cover {
  cursor: pointer;
  box-shadow: 0 18px 45px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.career-album-panel .lifebook__board {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 24px 44px -12px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cover__logo-pill {
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cover__logo-img {
  max-width: 145px;
  height: auto;
  display: block;
}

.career-album-panel .cover__title {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.career-album-panel .cover__hint {
  font-family: var(--font-body);
  font-size: 0.725rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 240, 228, 0.75);
}

/* Sleek Floating Navigation Chevrons */
.career-album-panel .lifebook__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 22, 34, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #F1F5F9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.career-album-panel .lifebook__btn--prev,
.career-album-panel .lifebook__btn[data-album-prev] {
  left: 8px;
}

.career-album-panel .lifebook__btn--next,
.career-album-panel .lifebook__btn[data-album-next] {
  right: 8px;
}

.career-album-panel .lifebook__btn:hover:not([aria-disabled="true"]) {
  background: var(--coral-primary);
  border-color: var(--coral-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(252, 117, 97, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.career-album-panel .lifebook__btn[aria-disabled="true"] {
  opacity: 0.15;
  cursor: default;
  pointer-events: none;
}

/* Call to Action Button in Closing Page */
.career-album-panel .lifebook__cta {
  display: inline-block;
  margin-top: 5cqh;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-pill);
  background: #FC7561 !important;
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.85rem, 3.2cqw, 0.95rem);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(252, 117, 97, 0.35);
  transition: all var(--transition-fast);
}

.career-album-panel .lifebook__cta:hover {
  background: #FD8977 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(252, 117, 97, 0.5);
}

/* Left Bottom: Branded Social Icons */
.album-footer-nav {
  margin-top: auto;
  padding-top: 6px;
  padding-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-top: none;
  position: relative;
  z-index: 5;
}

/* Subtle Floating Honeycomb Hexagonal SVG Backdrop */
.honeycomb-svg-backdrop {
  position: absolute;
  top: 0;
  right: -80px;
  width: 580px;
  height: 100%;
  opacity: 0.14;
  pointer-events: none;
  z-index: 1;
}

/* Left Panel Top Header */
.showcase-header {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.brand-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(252, 117, 97, 0.08);
  border: 1px solid var(--coral-border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-primary);
  margin-bottom: 14px;
}

.beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--coral-primary);
  box-shadow: 0 0 8px var(--coral-primary);
  animation: beaconPulse 2s infinite ease-in-out;
}

@keyframes beaconPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.showcase-main-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-dark-hero);
  margin-bottom: 12px;
}

.showcase-subtext {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-dark-muted);
  max-width: 520px;
}

/* Center Visual Card: Architectural Workstation Image */
.showcase-visual-frame {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: auto 0;
  max-height: 48vh;
  transition: transform var(--transition-normal);
}

.showcase-visual-frame:hover {
  transform: translateY(-2px);
}

.showcase-visual-frame img {
  width: 100%;
  height: 100%;
  max-height: 48vh;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.visual-ambient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.1) 0%, rgba(10, 14, 20, 0.8) 100%);
}

/* Floating Glassmorphic Proof Badges on the Visual */
.floating-stat-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  padding: 12px 18px;
  background: rgba(16, 22, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-item-pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-dot-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--coral-subtle);
  border: 1px solid var(--coral-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-primary);
}

.stat-content .stat-val {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.stat-content .stat-desc {
  font-size: 0.6875rem;
  color: #94A3B8;
}

.rating-pill-glass {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: #F8FAFC;
}

.rating-pill-glass svg {
  color: #FBBF24;
}

/* Culture Highlight Chips Row */
.showcase-perks-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.perk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-dark-border);
  font-size: 0.75rem;
  font-weight: 600;
  color: #CBD5E1;
}

.perk-pill svg {
  color: var(--coral-primary);
  width: 14px;
  height: 14px;
}

/* Left Bottom: Branded Social Icons */
.showcase-footer-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.social-icons-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-2px);
  color: #FFFFFF;
  background: var(--coral-primary);
  border-color: var(--coral-primary);
  box-shadow: 0 4px 12px rgba(252, 117, 97, 0.3);
}

.showcase-copyright {
  font-size: 0.75rem;
  color: #64748B;
}

/* --------------------------------------------------------------------------
   5. Right Section: Master Application Form Panel (48% Width)
   -------------------------------------------------------------------------- */
.form-hub-panel {
  flex: 0 0 48%;
  width: 48%;
  height: 100vh;
  max-height: 100vh;
  background-color: var(--bg-form-panel);
  display: flex;
  flex-direction: column;
  padding: 36px 48px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F1F5F9;
}

.form-hub-panel::-webkit-scrollbar {
  width: 6px;
}

.form-hub-panel::-webkit-scrollbar-track {
  background: #F8FAFC;
}

.form-hub-panel::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.form-hub-panel::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.form-hub-container {
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
}

/* Form Top Branding Header */
.form-brand-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-logo-box {
  display: inline-block;
  margin-bottom: 12px;
}

.form-logo-img {
  max-width: min(300px, 100%);
  height: auto;
  margin: 0 auto;
}

.form-main-heading {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.form-sub-heading {
  font-size: 0.875rem;
  color: var(--text-form-muted);
}

/* --------------------------------------------------------------------------
   6. Elevated Field Cards & Inputs
   -------------------------------------------------------------------------- */
.application-form {
  width: 100%;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field-card {
  width: 100%;
  background-color: var(--bg-input-card);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition-normal);
  position: relative;
}

.field-card:hover {
  border-color: #CBD5E1;
  background-color: #FFFFFF;
}

.field-card:focus-within,
.field-card.is-focused {
  border-color: var(--border-input-focus);
  background-color: var(--bg-input-card-focus);
  box-shadow: var(--shadow-input-focus);
}

.field-card-textarea {
  min-height: 120px;
  justify-content: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

.card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 4px;
  user-select: none;
}

.required-dot,
.card-label .required-dot {
  color: var(--coral-primary);
  font-weight: 800;
}

/* Inputs */
.card-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.card-input-icon {
  position: absolute;
  left: 0;
  color: #94A3B8;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.card-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0F172A;
  padding: 2px 0 2px 24px;
  line-height: 1.4;
}

.card-input.no-icon {
  padding-left: 0;
}

.card-input::placeholder {
  color: var(--text-form-placeholder);
  font-weight: 400;
}

.field-card:focus-within .card-input-icon {
  color: var(--coral-primary);
}

/* Custom Styled Role Dropdown */
.field-card-select,
.field-card-select .card-label,
.field-card-select .card-label * {
  cursor: pointer;
  user-select: none;
}

.custom-role-select {
  position: relative;
  width: 100%;
}

.select-role-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 2px 0 2px 24px;
}

.selected-role-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}

.select-chevron {
  color: #64748B;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.custom-role-select.is-open .select-chevron {
  transform: rotate(180deg);
  color: var(--coral-primary);
}

.role-dropdown-popover {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  right: -18px;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 8px 0;
  z-index: 100;
  display: none;
  max-height: 260px;
  overflow-y: auto;
}

.custom-role-select.is-open .role-dropdown-popover {
  display: block;
  animation: popoverFade 0.2s ease-out;
}

@keyframes popoverFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

.role-option-item {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  transition: background-color var(--transition-fast);
}

.role-option-item:hover {
  background-color: #F8FAFC;
  color: var(--coral-primary);
}

.role-option-item.selected {
  background-color: #FFF5F2;
  color: var(--coral-primary);
  font-weight: 700;
}

.role-option-item .role-tag-mini {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
}

/* Conditional Portfolio Field Card */
.portfolio-field-card {
  animation: fadeInField 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-field-card.is-hidden {
  display: none !important;
}

@keyframes fadeInField {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

/* Custom Interactive Drag-and-Drop Resume Box */
.field-card-resume {
  background-color: #FFF9F7;
  border: 1.5px dashed var(--coral-border);
  padding: 16px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.field-card-resume:hover,
.field-card-resume.dragover {
  border-color: var(--coral-primary);
  background-color: #FFF4F2;
  box-shadow: 0 0 20px rgba(252, 117, 97, 0.12);
}

.native-hidden-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.resume-box-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.resume-cloud-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--coral-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-primary);
  box-shadow: 0 2px 6px rgba(252, 117, 97, 0.1);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.field-card-resume:hover .resume-cloud-icon {
  transform: translateY(-2px) scale(1.05);
}

.resume-text-group h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.resume-text-group h5 .browse-highlight {
  color: var(--coral-primary);
  text-decoration: underline;
}

.resume-text-group p {
  font-size: 0.75rem;
  color: #64748B;
}

/* Uploaded File Chip inside the card */
.uploaded-chip-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--coral-primary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 10px;
}

.uploaded-chip-bar.show {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.chip-file-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0F172A;
  min-width: 0;
  overflow: hidden;
}

#uploadedFileName {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-file-meta svg {
  color: var(--coral-primary);
}

.btn-remove-chip {
  background: transparent;
  border: none;
  color: #EF4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.btn-remove-chip:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Experience Level Selector Chips */
.exp-selector-wrap {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.exp-pill-btn {
  flex: 1;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  border: 1px solid var(--border-input);
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.exp-pill-btn:hover {
  border-color: var(--coral-primary);
  color: var(--coral-primary);
}

.exp-pill-btn.active {
  background: #FC7561;
  border-color: #FC7561;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(252, 117, 97, 0.25);
}

/* Textarea (Cover Pitch) */
.card-textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  color: #0F172A;
  line-height: 1.5;
  resize: vertical;
  min-height: 70px;
}

.card-textarea::placeholder {
  color: var(--text-form-placeholder);
}

.char-counter-note {
  font-size: 0.6875rem;
  color: #94A3B8;
  text-align: right;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   6.5 Data Consent & Privacy Agreement
   -------------------------------------------------------------------------- */
.consent-agreement-card {
  background: var(--bg-input-card);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 14px;
  margin-bottom: 6px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.consent-agreement-card:hover {
  border-color: #CBD5E1;
  background-color: #FFFFFF;
}

.consent-agreement-card.has-error {
  border-color: var(--coral-primary) !important;
  background-color: #FFF4F2 !important;
  box-shadow: 0 0 0 3px rgba(252, 117, 97, 0.18) !important;
}

.consent-agreement-card.has-error .consent-checkbox {
  border-color: var(--coral-primary) !important;
  box-shadow: 0 0 0 2px rgba(252, 117, 97, 0.25) !important;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.consent-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #CBD5E1;
  border-radius: 4px;
  background-color: #FFFFFF;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all var(--transition-fast);
}

.consent-checkbox::before {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s ease-in-out;
  margin-top: -2px;
}

.consent-checkbox:checked {
  background-color: var(--coral-primary);
  border-color: var(--coral-primary);
}

.consent-checkbox:checked::before {
  transform: rotate(-45deg) scale(1);
}

.consent-checkbox:focus-visible {
  outline: 2px solid var(--coral-primary);
  outline-offset: 2px;
}

.consent-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. Submit Button & Form Footer
   -------------------------------------------------------------------------- */
.form-footer-action {
  margin-top: 18px;
}

.btn-submit-action {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: var(--radius-md);
  background: #FC7561;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-btn-glow);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-submit-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(252, 117, 97, 0.45);
  background: #FD8977;
}

.btn-submit-action:active {
  transform: translateY(0);
  background: #E65F4B;
}

.btn-submit-action .btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
}

.btn-submit-action.loading .btn-text,
.btn-submit-action.loading svg {
  display: none;
}

.btn-submit-action.loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.privacy-trust-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 14px;
  text-align: center;
}

.privacy-trust-guarantee svg {
  color: var(--success);
}

/* --------------------------------------------------------------------------
   8. Application Confirmation Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 29, 39, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-check-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  animation: scaleIn 0.35s ease-out;
}

.modal-warning-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(252, 117, 97, 0.12);
  border: 2px solid var(--coral-primary);
  color: var(--coral-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  animation: scaleIn 0.35s ease-out;
}

/* Form Validation Error States & Inline Messages */
.field-card.has-error,
.field-card-resume.has-error,
.field-card-select.has-error {
  border-color: var(--coral-primary) !important;
  background-color: #FFF4F2 !important;
  box-shadow: 0 0 0 3px rgba(252, 117, 97, 0.18) !important;
}

.field-card.has-error .card-input-icon {
  color: var(--coral-primary) !important;
}

.field-card.has-error .card-label {
  color: #B91C1C;
}

.field-error-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #D9381E;
  margin-top: 8px;
  line-height: 1.35;
  animation: fieldErrorSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.field-error-msg svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  stroke: #D9381E;
}

.form-submit-error-banner {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background-color: #FFF4F2;
  border: 1px solid var(--coral-primary);
  color: #D9381E;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 14px;
  animation: fieldErrorSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-submit-error-banner svg {
  flex-shrink: 0;
  stroke: #D9381E;
}

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

@keyframes scaleIn {
  from {
    transform: scale(0.4);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-card h3 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.modal-card p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-id-pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(252, 117, 97, 0.08);
  border: 1px dashed var(--coral-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--coral-primary);
  margin-bottom: 24px;
}

.modal-btn-dismiss {
  width: 100%;
  height: 50px;
  border-radius: var(--radius-md);
  background: #FC7561;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
}

.modal-btn-dismiss:hover {
  background: #FD8977;
  box-shadow: 0 6px 18px rgba(252, 117, 97, 0.35);
}

/* --------------------------------------------------------------------------
   9. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) and (min-width: 1025px) {

  .career-album-panel,
  .tech-showcase-panel {
    flex: 0 0 48%;
    width: 48%;
    padding: 24px 20px;
  }

  .form-hub-panel {
    flex: 0 0 52%;
    width: 52%;
    padding: 30px;
  }

  .album-main-title,
  .showcase-main-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 1024px) {

  html,
  body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    scroll-behavior: smooth;
  }

  .split-page-layout {
    flex-direction: column;
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
  }

  /* Form Section: Render FIRST on mobile and tablet */
  .form-hub-panel {
    order: 1;
    flex: none;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 36px 20px;
  }

  /* Album Section: Render SECOND on mobile and tablet */
  .career-album-panel,
  .tech-showcase-panel {
    order: 2;
    flex: none;
    width: 100%;
    min-height: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 36px 20px 48px;
    border-right: none;
    border-top: 1px solid var(--bg-dark-border);
  }

  .career-album-panel .lifebook__stage {
    height: clamp(460px, calc(66cqw + 48px), 760px);
  }

  @container (width < 600px) {
    .career-album-panel .lifebook__stage {
      height: clamp(400px, calc(130cqw + 10px), 80svh);
    }
  }

  .showcase-visual-frame {
    max-height: 320px;
    margin: 20px 0;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Social Media Handles: Centered on Mobile and Tablet */
  .album-footer-nav,
  .showcase-footer-nav {
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .social-icons-group {
    justify-content: center;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .form-main-heading {
    font-size: 1.55rem;
  }

  .form-hub-panel {
    padding: 28px 16px;
  }

  .field-card {
    padding: 10px 14px;
  }

  .role-dropdown-popover {
    left: -14px;
    right: -14px;
  }

  .modal-card {
    padding: 30px 18px;
  }

  .modal-card h3 {
    font-size: 1.35rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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