/* =========================
   AJAX Loader
   ========================= */
.loading_line {
  background: #f03 !important;
}

.slider_loading {
  position: fixed;
  width: 100%;
  height: 2px;
  overflow: hidden;
  z-index: 998 !important;
  top: 0;
}

.loading_line {
  position: absolute;
  width: 100%;
  height: 2px;
}

.loading_break {
  position: absolute;
  background: var(--background-wcolor);
  width: 20px;
  height: 2px;
  left: -21px;
}

.dot1 {
  -ms-animation: loadingbar 3s infinite;
  -webkit-animation: loadingbar 3s infinite;
  -moz-animation: loadingbar 3s infinite;
  -o-animation: loadingbar 3s infinite;
  animation: loadingbar 3s infinite;
}

.dot2 {
  -ms-animation: loadingbar 3s .5s infinite;
  -webkit-animation: loadingbar 3s .5s infinite;
  -moz-animation: loadingbar 3s .5s infinite;
  -o-animation: loadingbar 3s .5s infinite;
  animation: loadingbar 3s .5s infinite;
}

.dot3 {
  -ms-animation: loadingbar 3s 1s infinite;
  -webkit-animation: loadingbar 3s 1s infinite;
  -moz-animation: loadingbar 3s 1s infinite;
  -o-animation: loadingbar 3s 1s infinite;
  animation: loadingbar 3s 1s infinite;
}

.dot4 {
  -ms-animation: loadingbar 3s 1.5s infinite;
  -webkit-animation: loadingbar 3s 1.5s infinite;
  -moz-animation: loadingbar 3s 1.5s infinite;
  -o-animation: loadingbar 3s 1.5s infinite;
  animation: loadingbar 3s 1.5s infinite;
}

@-webkit-keyframes loadingbar {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}

@-moz-keyframes loadingbar {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}

@-o-keyframes loadingbar {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}

@keyframes loadingbar {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}

/* =========================
   Zetta Careers — page CSS
   ========================= */

/* Brand */
:root {
  --brand: #ff0033;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e6e7ea;
  --pill: #f8f9fa;
  --line-strong: #d6dbe5;
  --line-stronger: #cbd2df;
}

/* =========================
   Skill Set Input Component
   ========================= */
.skill-input-container {
  position: relative;
  width: 100%;
}

.skill-input-wrapper {
  position: relative;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  background: #fff;
  min-height: 38px;
  padding: 0.375rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.skill-input-wrapper:hover {
  border-color: #adb5bd;
}

.skill-input-wrapper:focus-within {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 4px rgb(40 92 195 / 10%);
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  background: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
  border-radius: 16px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: #bbdefb;
  border-color: #90caf9;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-tag .remove-skill {
  background: none;
  border: none;
  color: #1976d2;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.skill-tag .remove-skill:hover {
  background: #1976d2;
  color: white;
}

.skill-input {
  flex: 1;
  min-width: 120px;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 0.875rem;
  color: #495057;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.skill-input:hover {
  border: none !important;
  box-shadow: none !important;
}

.skill-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.skill-input::placeholder {
  color: #6c757d;
  font-style: italic;
}

.skill-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ced4da;
  border-top: none;
  border-radius: 0 0 0.375rem 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.skill-suggestions.show {
  display: block;
}

.skill-suggestions-header {
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  background: #f8f9fa;
}

.skill-suggestions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skill-suggestion-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f8f9fa;
}

.skill-suggestion-item:hover,
.skill-suggestion-item.selected {
  background-color: #e3f2fd;
  color: #1976d2;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .skill-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }
  
  .skill-input {
    min-width: 100px;
  }
  
  .skill-suggestions {
    max-height: 150px;
  }
}

/* Animation for skill tags */
.skill-tag {
  animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Suggestion item animations */
.skill-suggestion-item {
  animation: slideIn 0.15s ease-out;
}

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

/* Loading state for skill input */
.skill-input-loading {
  position: relative;
  pointer-events: none;
}

.skill-input-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.skill-input-loading .skill-input {
  color: #999;
}

/* Skill error message styling */
.skill-error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  text-align: center;
  padding: 4px 8px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  animation: fadeIn 0.3s ease-in;
}

/* Skill success message styling */
.skill-success-message {
  color: #155724;
  font-size: 12px;
  margin-top: 5px;
  text-align: center;
  padding: 4px 8px;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  animation: fadeIn 0.3s ease-in;
}

/* Skill input disabled state */
.skill-input:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.7;
}

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

/* Reset bits — prevent horizontal scroll on mobile */
html, body { overflow-x: hidden; max-width: 100vw; }
body { background:#ffffff; color:var(--ink); }
a { text-decoration: none; }
a:hover { text-decoration: none; }

/* =========================
   HERO (full-bleed background)
   ========================= */


.hero-with-bg{
  position: relative;
  max-width: 100vw;
  overflow-x: hidden;
  background-image: url('/assets/zetta_recruit/images/businessman-using-digital-tablet.jpg');
  /* scroll: background moves with the section (not fixed to the viewport) */
  background-attachment: scroll;
  background-size: cover;
  background-position: center 0;
  background-repeat: no-repeat;
  min-height: 38vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-overlay{
  position:absolute; inset:0;
  background:#171b27; 
  opacity:.60 !important;
  pointer-events:none;
}
.ztr-hero *{z-index:1; }

/* Top nav inside hero */
.hero-nav{ padding-top:20px; }
.hero-nav-inner{
  width:100%; margin:0; padding:0 0 0 65px;
  display:flex; align-items:center; justify-content:flex-start; gap:16px;
}
.brand .logo{ height:55px; display:block; }
.brand .logo-lg{ height:80px; }

.hero-nav-inner ul{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap:28px;
}
.hero-nav-inner a{
  color:#fff; font-weight:600; letter-spacing:.02em;
}
.hero-nav-inner a.muted{ color:rgba(255,255,255,.85); font-weight:500; }
.hero-nav-inner .sep{ color:rgba(255,255,255,.65); }
.menu-left a{ opacity:.95; }
.menu-left a.active,
.menu-left a:hover{ opacity:1; text-decoration:underline; text-underline-offset:6px; }

@media (max-width: 992px){
  .menu-left{ display:none; }
  .menu-right{ gap:16px; }
}

/* Centered hero copy */
.hero-center{
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  padding: 16px 0 40px;
}
.hero-copy{
  max-width: 960px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 24px;
  color: #fff;
  box-sizing: border-box;
}
.eyebrow{
  margin-bottom: 4px;
  font-size: 1.125rem;
  line-height: 1.5rem;
  padding: 0 2rem;
  word-break: break-word;
  overflow-wrap: break-word;
  font-weight: 400;
}
.cw-small-size{
  font-size: .9375rem;
}
.headline{
  font-size: 3rem;
  line-height: 1.2;
  position: relative;
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 0;
  max-width: 100%;
}
.lede{
  margin-bottom: 4px;
  font-size: 1.125rem;
  line-height: 1.5rem;
  padding: 0 2rem;
  word-break: break-word;
  overflow-wrap: break-word;
  font-weight: 400;
}


/* CTA button (red + hover lift) */
.btn-cta{
  background-color: #ff0033!important;
  border: 1px solid #ff0033!important;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.125rem;
  margin-left: 16px;
  white-space: normal;
  min-width: 0;
}
.btn-cta:hover{
  background-color: #ee0937!important;
  border: 1px solid #ee0937!important;
}
.btn-outline-light{
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  background: 0 0 !important;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.125rem;
  margin-left: 16px;
  opacity: 1;
  white-space: normal;
  min-width: 0;
}
.btn-outline-light:hover{ background:rgba(255,255,255,.12)!important; color:#fff; }

/* Hero buttons — wrap on small screens so no horizontal overflow */
#hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

/* Hero social list — wrap so icons don't force horizontal scroll */
.social-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.social-list li a{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition: all .15s ease; }
.social-list .fa{ font-size:16px; transition: color .15s ease, transform .15s ease; }
.social-list .bi{ font-size:16px; line-height:1; transition: color .15s ease, transform .15s ease; }
.social-list li a:hover{ transform: translateY(-2px); border-color:#ff0033 !important; }
.social-list li a:hover .fa, .social-list li a:hover .bi{ color:#ff0033 !important; }

/* Bottom white fade (soft edge like reference) */
.hero-with-bg::after{
  content:""; position:absolute; left:0; right:0; bottom:-1px; height:26px;
  z-index:0;
}

/* Mobile: prevent hero overflow — smaller title, tighter padding, no horizontal scroll */
@media (max-width: 768px) {
  .hero-with-bg {
    min-height: 32vh;
    background-attachment: scroll;
  }
  /* Logo: smaller and nudged to left/top */
  .hero-nav {
    padding-top: 12px;
  }
  .hero-nav-inner {
    padding-left: 16px;
  }
  .brand .logo {
    height: 44px;
    width: auto;
  }
  .hero-copy {
    padding: 0 16px;
  }
  .headline {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  .eyebrow,
  .lede {
    padding: 0 0.5rem;
  }
  #hero-buttons .btn-cta,
  #hero-buttons .btn-outline-light {
    margin-left: 0;
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
    padding: 8px 14px;
    font-size: 0.9375rem;
  }
  /* Smaller CTA in job description section on mobile */
  .job-action-section .btn-cta {
    padding: 8px 14px;
    font-size: 0.9375rem;
  }
  .social-list {
    gap: 10px;
  }
  .social-list li a {
    width: 36px;
    height: 36px;
  }
  .social-list .fa,
  .social-list .bi {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-nav-inner {
    padding-left: 12px;
  }
  .brand .logo {
    height: 55px;
  }
  .headline {
    font-size: 1.25rem;
  }
  #hero-buttons .btn-cta,
  #hero-buttons .btn-outline-light {
    padding: 6px 12px;
    font-size: 0.875rem;
    min-width: 100px;
  }
  .job-action-section .btn-cta {
    padding: 6px 12px;
    font-size: 0.875rem;
  }
}

/* =========================
   FILTERS (left column)
   ========================= */
.card .form-label { margin-bottom:.25rem; }
#clear-filters { width:100%; }
.form-select { border-color: var(--line); }

/* Checkbox groups */
.filter-group { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-list { max-height: 240px; overflow:auto; padding-right:6px; padding-left: 6px;}
.form-check { margin-bottom: .35rem; }
.form-check-input { cursor:pointer; }
.form-check-label { cursor:pointer; }

input:hover, select:hover, textarea:hover{
  border: 0.5px solid #5c6575 !important
}

/* Filters panel box appearance */
aside .card { border:1px solid var(--line-strong) !important; box-shadow:none !important; border-radius:10px; }

/* =========================
   JOB LIST & CARDS (right)
   ========================= */
.job-card.card { border:1px solid var(--line-strong); transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease; cursor: pointer; border-radius:10px; background:#fff; }
.job-card.card:hover { background:#f5f6fa; border-color: var(--line-stronger); }
.job-title a { color:#ff0033 !important; font-weight: 600; }
.job-title a:hover { color:#d6002b !important; }

.col-description{
  background: var(--background-wcolor);
  float: left;
  border-right: 1px solid #f2f4f9;
  padding: 24px 0px 24px 24px;
  word-break: break-word;
}

.job-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-meta { display:flex; flex-wrap:wrap; gap:8px; }
.job-meta .badge{
  background:var(--pill); color:#111827;
  border:1px solid var(--line) !important;
  font-weight:500;
}

/* Layout helpers */
.badge.text-bg-light { background:#f4f5f7 !important; color:#111 !important; }

/* Search input with icon — clearer borders */
.ztr-search .input-group-text { background:#fff; border-color: var(--line-strong) !important; color:#5c6575; border-width:1.5px; }
.ztr-search .form-control { border-left:0; border-color: var(--line-strong) !important; border-width:1.5px; }
.ztr-search .form-control:focus { box-shadow:none; border-color: var(--line-stronger) !important; }

/* Responsive tweaks for cards grid if you later switch to multi-column */
@media (max-width: 576px){
  .job-meta { gap:6px; }
}

/* =========================
   Loading States
   ========================= */
.loading-state {
  text-align: center;
  padding: 2rem 0;
}
.loading-state .spinner-border {
  width: 2rem;
  height: 2rem;
}

/* =========================
   Facebook-style Skeleton Loader
   ========================= */
.skeleton-loader {
  padding: 1rem 0;
  max-width: 754px;
  margin-left: auto;
  margin-right: auto;
}

.skeleton-item {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.skeleton-title {
  height: 2rem;
  width: 60%;
  margin-bottom: 1.5rem;
}

.skeleton-text {
  height: 1rem;
  width: 100%;
}

.skeleton-text-short {
  height: 1rem;
  width: 70%;
}

.skeleton-button {
  height: 2.5rem;
  width: 120px;
  margin-top: 1.5rem;
}

.skeleton-button-secondary {
  height: 2.5rem;
  width: 100px;
  margin-left: 0.5rem;
  margin-top: 0.5rem;
}

.skeleton-label {
  height: 1.2rem;
  width: 80%;
  margin-bottom: 0.5rem;
}

.skeleton-select {
  height: 2.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

.skeleton-textarea {
  height: 4rem;
  width: 100%;
  margin-bottom: 1rem;
}

.skeleton-radio {
  height: 1.2rem;
  width: 3rem;
  margin-right: 1rem;
  display: inline-block;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* =========================
   Button Transitions
   ========================= */
#hero-buttons {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#hero-buttons.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* =========================
   Footer polish
   ========================= */
footer { background:#f5f6fa !important; color:#5c6575 !important; }
footer .text-muted { color:#5c6575 !important; }
footer a { color:#5c6575 !important; }
footer a:hover { text-decoration: underline; color:#5c6575 !important; }
footer .nav-link { color:#5c6575 !important; }
.footer-links {
  background: #fff;
    padding: 12px 0;
    margin-bottom: 24px;
}
.footer-link { 
  color: var(--brand) !important;
    text-decoration: none;
    font-weight: 500;
}
.footer-link:hover { 
  color: var(--brand) !important; 
  text-decoration: underline; 
}

.zoho-recruit { 
  color: var(--brand); 
  font-weight: 600; 
  font-size: 1rem;
}

/* =========================
   Main Content Layout
   ========================= */

/* Keep main content within viewport on mobile */
#job-details.container,
#job-apply.container {
  max-width: 100%;
  overflow-x: hidden;
}

/* Breadcrumb Navigation */
.breadcrumb { 
  border-bottom: 1px solid #f2f4f9;
    padding: 16px 0;
    margin-bottom: 0px;;
 }
 .breadcrumb-item{
   font-size: .9375rem;

  }
 .breadcrumb-item a { color: var(--brand); text-decoration: none; }
 .breadcrumb-item a:hover { text-decoration: underline; }
 .breadcrumb-item.active { color: var(--muted); }
 
 .breadcrumb-item+.breadcrumb-item::before {
  float: left;
  padding-right: var(--bs-breadcrumb-item-padding-x);
  color: #5c6575 !important;
  content: var(--bs-breadcrumb-divider, ">");
  font-size: .9375rem;
    
}

/* Job Description Section (Left Column) */
.job-description-section { padding-right: 2rem; }

.job-desc-title{
  color: #232933 !important;
  margin-bottom: 16px;
  font-size: 1.125rem;
  font-weight: 500;
}
.job-title-main { 
  margin-bottom: 16px;
    word-break: break-word;
    line-height: 1.7rem;
    font-weight: 400;
}
.job-location { 
  margin-bottom: 16px;
    word-break: break-word;
    line-height: 1.7rem;
    font-weight: 400;
}
.job-desc-content { 
  font-size: 1rem; 
  line-height: 1.6; 
  color: var(--ink); 
  margin-bottom: 2rem; 
}
.job-action-section { text-align: left; }

/* Job Information Card (Right Column) */
.job-info-card { 
  background: #fff; 
  padding: 24px 10px;
}
.job-info-title { 
  color: #232933;
  margin-bottom: 16px;
  font-size: 1.125rem;
  font-weight: 500;
}
.cw-summary-list{
  margin: 0px;
  padding: 0px;
}
.cw-summary-list li {
  margin-bottom: 16px;
  list-style: none;
  font-size: 15px;
}
.cw-summary-list li span{
  display: block;
}
.cw-summary-list li span:first-child {
  margin-bottom: 4px;
  color: #5c6575;
}
.cw-summary-list li span:last-child {
  color: #171B27;
  font-weight: 500;
}

.closed-small-size{
  font-size: 12px;
}

#share-cp-link{
  cursor: copy;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .job-description-section { padding-right: 0; margin-bottom: 2rem; }
}

/* =========================
   App Font Awesome (minimal)
   ========================= */
@font-face {
  font-family: 'FontAwesome';
  src: url('/assets/zetta_recruit/fonts/fontawesome-webfont.eot');
  src: url('/assets/zetta_recruit/fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
       url('/assets/zetta_recruit/fonts/fontawesome-webfont.woff') format('woff'),
       url('/assets/zetta_recruit/fonts/fontawesome-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
.fa { display:inline-block; font: normal normal normal 25px/1 FontAwesome; text-rendering:auto; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
.fa-search:before { content: "\f002"; }
.fa-arrow-up:before { content: "\f062"; }
/* Font Awesome social + share icons */
.fa-share-alt:before { content: "\f1e0"; }
.fa-facebook:before { content: "\f09a"; }
.fa-twitter:before { content: "\f099"; }
.fa-linkedin:before { content: "\f0e1"; }
.fa-whatsapp:before { content: "\f232"; }
.fa-paper-plane:before { content: "\f1d8"; }
.fa-link:before { content: "\f0c1"; }

/* Back to top button */
.ztr-back-to-top{
  position: fixed; right: 24px; bottom: 24px; z-index: 1030;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgb(255, 0, 51); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  opacity:0; pointer-events:none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background-color .15s ease;
}
.ztr-back-to-top:hover{ background:#ff0033; color:#fff; opacity:1.8!important}
.ztr-back-to-top.visible{ opacity:.8; pointer-events:auto; transform: translateY(0); }



/* Job Application */
#job-apply nav{
  margin-bottom: 30px;
}

/* =========================
   CSS Variables (Required for wizard progress bar)
   ========================= */
:root {
  --sub-title-color: #232933;
  --border-color: #dee4f0;
  --background-color: #f5f6fa;
  --background-wcolor: #ffffff;
}

/* =========================
   Wizard Progress Bar
   ========================= */
.cw-wizard-progress {
  display: table;
  width: 100%;
  table-layout: fixed;
  top: 0;
  z-index: 1000;
  background: var(--background-wcolor);
  padding: 16px 0 0;
  max-width: 754px;
  margin: 0 auto;
}

/* Ensure skeleton loader doesn't affect progress bar */
.loading-state {
  position: relative;
  z-index: 1;
}

.cw-wizard-progress .cw-wizard-step {
  display: table-cell;
  overflow: visible;
  position: relative;
  font-size: 14px;
  color: var(--sub-title-color);
}

.cw-wizard-progress .cw-wizard-step .cw-wizard-node {
  display: inline-block;
  border: 1px solid var(--border-color);
  border-radius: 100%;
  height: 24px;
  width: 24px;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--background-wcolor);
  padding: 0;
  margin: 0 auto;
  right: 0;
  z-index: 2;
}

.cw-wizard-progress .cw-wizard-step:after,
.cw-wizard-progress .cw-wizard-step:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 11px;
  background-color: var(--background-color);
  height: 3px;
  width: 100%;
}

.cw-wizard-progress .cw-wizard-step:last-child:after {
  left: 0;
}

.cw-wizard-progress .cw-wizard-step .cw-wizard-node:before {
  content: "";
  display: block;
  position: absolute;
  height: 12px;
  width: 12px;
  background: #ff0033;
  border-radius: 100%;
  left: 5px;
  top: 5px;
}

.cw-wizard-progress .cw-wizard-step.cw-wizard-inactive .cw-wizard-node:before {
  background: var(--background-wcolor) !important;
}

.cw-wizard-text {
  padding-left: 0;
  padding-top: 26px;
  text-align: center;
}

.cw-wizard-text h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--sub-title-color);
}

.cw-wizard-progress .cw-wizard-step:first-child:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 11px;
  height: 3px;
  width: 50%;
  z-index: 2;
  background: #ff0033 !important;
}

@media only screen and (max-width: 624px) {
  .cw-wizard-text {
    padding-left: 0;
    text-align: center;
  }
  
  .cw-wizard-text h3 {
    font-size: .875rem;
  }
  
  .cw-wizard-progress .cw-wizard-step .cw-wizard-node {
    left: 0;
    right: 0;
    margin: 0 auto;
  }
}

.cw-wizard-progress .cw-wizard-step .cw-wizard-node:before,
.cw-wizard-progress .cw-wizard-step:first-child:before {
  background: #ff0033 !important;
}

/* =========================
   Assessment Phase Styles
   ========================= */
.cw-wizard-progress .cw-wizard-step.cw-wizard-complete .cw-wizard-node {
  border: 1px solid #ff0033 !important;
}

.cw-wizard-progress .cw-wizard-step.cw-wizard-complete .cw-wizard-node:after {
  color: #ff0033 !important;
  border-radius: 100%;
  display: block;
  position: absolute;
  left: 4px;
  top: 4px;
  font: 14px/1 FontAwesome;
  content: "\f00c";
}


/* Zoho-style progress bar states - HIGH SPECIFICITY */
.cw-wizard-progress .cw-wizard-step.cw-wizard-complete:after {
  background-color: #ff0033 !important;
  left: 60%;
  right: 0;
  z-index: 1;
  width: calc(100% - 14%);
}

.cw-wizard-progress .cw-wizard-step.cw-wizard-complete:before {
  background-color: #ff0033 !important;
}

/* Override the existing node background rule */
.cw-wizard-progress .cw-wizard-step.cw-wizard-complete .cw-wizard-node:before {
  background: transparent !important;
  font-family: FontAwesome;
  content: "";
  position: absolute;
  top: 1px;
  font-weight: 400;
  left: 4px;
}

/* Add checkmark */
.cw-wizard-progress .cw-wizard-step.cw-wizard-complete .cw-wizard-node:after {
  color: #ff0033 !important;
  border-radius: 100%;
  display: block;
  position: absolute;
  left: 4px;
  top: 4px;
  font: 14px/1 FontAwesome;
  content: "\f00c";
}

/* Override the general line color rule for completed steps */
.cw-wizard-progress .cw-wizard-step.cw-wizard-complete:after,
.cw-wizard-progress .cw-wizard-step.cw-wizard-complete:before {
  background-color: #ff0033 !important;
}

.cw-wizard-progress .cw-wizard-step.cw-wizard-complete .cw-wizard-node:before {
  background: transparent !important;
}

.cw-wizard-progress .cw-wizard-step.active .cw-wizard-node:before {
  background: #ff0033 !important;
}

.cw-wizard-progress .cw-wiz-assessment.cw-wizard-step.active .cw-wizard-node:before {
  background: #ff0033 !important;
}

/* =========================
   Progress Bar Phase Classes
   ========================= */

/* Phase 1: Application (default state) */
.cw-wizard-progress.phase-application .cw-wizard-step:first-child:before {
  background-color: #ff0033 !important;
  width: 50% !important;
}

/* Phase 2: Assessment */
.cw-wizard-progress.phase-assessment .cw-wizard-step:first-child:before {
  background-color: #ff0033 !important;
  width: 100% !important;
}

.cw-wizard-progress.phase-assessment .cw-wiz-assessment:before {
  background-color: #ff0033 !important;
  width: 50% !important;
  z-index: 1;
}


/* Phase 3: Completion */
.cw-wizard-progress.phase-completion .cw-wizard-step:after,
.cw-wizard-progress.phase-completion .cw-wizard-step:before {
  background-color: #ff0033 !important;
  left: 0 !important;
  width: 100% !important;
}

/* Second node completed with checkmark */
body .cw-wizard-progress .cw-wiz-assessment.cw-wizard-step.cw-wizard-complete .cw-wizard-node:before {
  background: transparent !important; /* Inner dot transparent */
  font-family: FontAwesome !important;
  content: "" !important; /* Clear default dot */
  position: absolute !important;
  top: 1px !important;
  font-weight: 400 !important;
  left: 4px !important;
}

body .cw-wizard-progress .cw-wiz-assessment.cw-wizard-step.cw-wizard-complete .cw-wizard-node:after {
  color: #ff0033 !important; /* Checkmark color */
  border-radius: 100% !important;
  display: block !important;
  position: absolute !important;
  left: 4px !important;
  top: 4px !important;
  font: 14px/1 FontAwesome !important;
  content: "\f00c" !important; /* Checkmark icon */
}




/* Assessment Content Styles */
.assessment-content {
  margin-top: 40px;
  max-width: 754px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.assessment-title {
  color: #232933 !important;
  padding-bottom: 24px;
    font-size: 1.125rem;
    max-width: 754px;
    margin: 0 auto;
    text-align: left;
    font-weight: 600;
}

.assessment-subtitle {
  margin-bottom: 16px;
  color: #232933 !important;
  font-weight: 500;
  font-size: 17px;
}

.question-category {
  margin-bottom: 2rem;
}


.question-item {
  margin-bottom: 2rem;
}

.question-label {
  width: 100%;
  text-align: left;
  padding-right: 0;
  line-height: 22px;
  font-size: 15px;
  color: #5c6575 !important;
  margin-bottom: 2px;
}

.question-item .form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
}

.question-item .form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.question-item .form-select:hover:not(.is-invalid):not(.is-valid) {
  border-color: #adb5bd;
}

.question-item .form-select.is-invalid {
  border-color: #ff0033 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 51, 0.25) !important;
  --bs-form-select-bg-icon: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e);
  padding-right: 4.125rem;
  background-position: right .75rem center, center right 2.25rem;
  background-size: 16px 12px, calc(.75em + .375rem) calc(.75em + .375rem);
}

/* Textarea styling for assessment form */
.question-item .form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.question-item .form-control:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.question-item .form-control:hover:not(.is-invalid):not(.is-valid) {
  border-color: #adb5bd;
}

.question-item .form-control.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Radio button styling for assessment form */
.question-item .form-check {
  margin-bottom: 0.5rem;
}

.question-item .form-check-input {
  margin-right: 0.5rem;
}

.question-item .form-check-label {
  font-size: 1rem;
  color: #212529;
  cursor: pointer;
}

/* =========================
   Completion Phase Styles
   ========================= */
.completion-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.completion-icon {
  margin-bottom: 2rem;
}

.completion-icon i {
  font-size: 4rem;
  color: #ff0033;
  animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.completion-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff0033;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.completion-message {
  font-size: 1.1rem;
  color: #5c6575;
  line-height: 1.6;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.redirect-info {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.redirect-text {
  font-size: 1rem;
  color: #5c6575;
  margin-bottom: 1rem;
}

.redirect-progress {
  width: 100%;
  height: 8px;
  background-color: #e1e5e9;
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.redirect-progress-bar {
  height: 100%;
  background-color: #ff0033;
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
}

.btn-redirect {
  background-color: #ff0033;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-redirect:hover {
  background-color: #e60029;
  color: white;
}

.btn-redirect:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 51, 0.25);
}

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

/* Back Button Styles */
.btn-back {
  background: var(--background-color);
  color: var(--title-color);
  border: 1px solid var(--border-color);
}

.btn-back:hover {
  background: var(--border-color);
  color: var(--title-color);
}

/* =========================
   Scroll Progress Bar
   ========================= */
.cw-progress-bar {
  background: #ff0033 !important;
  height: 6px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 7;
  transition: width 0.1s ease;
}


#applicationForm{
  margin-top: 40px;
}

/* =========================
   Form Sections
   ========================= */
.form-section {
  background: #ffffff;
  padding-bottom: 24px;
  margin-bottom: 24px;
  max-width: 754px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 1px solid #e1e5e9;
}

/* =========================
   Autofill Application Section
   ========================= */
#autofill-section {
  padding-top: 24px;
}

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

.autofill-title {
  color: #232933 !important;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.autofill-description {
  color: #5c6575;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.autofill-upload-container {
  margin-top: 16px;
}

.autofill-upload-box {
  position: relative;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #F5F6FA !important;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.autofill-upload-box:not(.disabled) {
  cursor: pointer;
}

.autofill-upload-box:hover:not(.disabled) {
  border-color: #ff0033;
  background: #F5F6FA;
}

.autofill-upload-box.drag-over:not(.disabled) {
  border-color: #ff0033;
  background: #E8EBF0 !important;
  border-style: solid;
}

.autofill-upload-box.disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.autofill-upload-box.disabled:hover {
  border-color: #d1d5db;
  background: #F5F6FA !important;
  cursor: not-allowed !important;
}

.autofill-upload-box.disabled .autofill-upload-content {
  pointer-events: none;
  cursor: not-allowed !important;
}

.autofill-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

.autofill-upload-box.disabled .autofill-file-input {
  cursor: not-allowed !important;
  pointer-events: none;
}

.autofill-upload-content {
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.autofill-upload-text {
  color: #ff0033;
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.autofill-file-formats {
  color: #5c6575;
  font-size: 13px;
  margin: 0 0 4px 0;
}

.autofill-optional {
  color: #5c6575;
  font-size: 13px;
  margin: 0;
  font-style: italic;
}

/* File selected state */
.autofill-upload-box.has-file {
  border-color: #28a745;
  background: #f0f9f4;
}

.autofill-upload-box.has-file .autofill-upload-text {
  color: #28a745;
}

.autofill-upload-box.has-file .autofill-file-name {
  color: #155724;
  font-weight: 500;
  margin-top: 8px;
  display: block;
}

.section-header {
  display: flex;
  align-items: center;
  padding-bottom: 12px;
}

.section-title {
  color: #232933 !important;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  margin-right: 16px;
}

.section-title {
  color: #232933 !important;
  font-size: 15px;

  font-weight: 500;

  margin: 0;
}

.btn-clear {
  background: none;
  border: none;
  color: #ff0033;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-left: 16px;
  position: relative;
}

.btn-clear:hover:not(.inactive) {
  background-color: #fff5f5;
  color: #ff0033;
}

.btn-clear.inactive {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Form controls styling */
.form-label {
  width: 100%;
    text-align: left;
    padding-right: 0;
    line-height: 22px;
    font-size: 15px;
    color: #5c6575 !important;
    margin-bottom: 2px;
}

/* Mandatory asterisk styling */
.form-mandatory {
  color: #ff0033;
}

/* Section footer for clear button */
.section-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e1e5e9;
}

/* Input text color - all inputs should be #111 */
.form-control, .form-select {
  color: #111;
}

.form-control::placeholder {
  color: #9ca3af;
}

.form-control, .form-select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
  min-height: 34px;
  height: 34px;
}

.form-control:focus, .form-select:focus {
  border-color: #285cc3;
  box-shadow: 0 0 0 4px rgb(40 92 195 / 10%);
}

.input-group .form-select {
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .form-control {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Country code select styling */
.country-code {
  font-size: 13px;
}


/* Date input styling */
input[type="date"] {
  position: relative;
  color: #111;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

input[type="date"]::-webkit-datetime-edit {
  color: #111;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  color: #111;
}

input[type="date"]::-webkit-datetime-edit-text {
  color: #111;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
  color: #111;
}

/* Ensure date input gets hover effect */
input[type="date"]:hover {
  border: 0.5px solid #5c6575 !important;
}

/* Textarea styling */
textarea.form-control {
  resize: vertical;
  min-height: 80px;
  height: auto;
}

textarea.form-control:focus {
  border-color: #285cc3;
  box-shadow: 0 0 0 4px rgb(40 92 195 / 10%);
}

/* Input group text styling */
.input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #d1d5db;
  color: #6b7280;
  font-weight: 500;
  font-size: 14px;
  min-height: 34px;
  height: 34px;
}

.input-group .form-control {
  border-left: none;
}

.input-group .input-group-text + .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group .input-group-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* File input styling */
input[type="file"] {
  padding: 6px 12px;
  line-height: 1.5;
}

input[type="file"]::-webkit-file-upload-button {
  background: #f8f9fa;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 12px;
  margin-right: 8px;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

/* Form text styling */
.form-text {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
}

/* =========================
   CAPTCHA Section
   ========================= */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.captcha-image {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 12px 20px;
  min-width: 120px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-text {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: bold;
  color: #22c55e;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  transform: skew(-2deg);
}

.btn-refresh-captcha {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-refresh-captcha:hover {
  background: #f3f4f6;
  color: #374151;
}

/* =========================
   Form Actions
   ========================= */
.form-actions {
  display: flex;
  justify-content: center;
  margin: 32px 0;
  gap: 12px;
}

.btn-cancel {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #232933 !important;
  line-height: 1.071rem;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #F5F6FA;
  border-color: #adb5bd;
}

.btn-next {
  background: #ff0033;
  border: 1px solid #ff0033;
  color: #ffffff;
  line-height: 1.071rem;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-next:hover {
  background: #ff0033;
  opacity:0.8!important;
  color: #ffffff;
  border-color: #d6002b;
}

/* Remove border from last 2 form sections, but keep it for captcha */
#captcha-section{
  border-bottom: none !important;
}

/* =========================
   Confirmation Modal
   ========================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 450px;
  width: 90%;
  margin: 70px 20px 20px 20px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-dialog {
  transform: scale(1);
}

.modal-content {
  padding: 24px;
}

.modal-body {
  margin-bottom: 24px;
}

.modal-message {
  font-size: 16px;
  color: #232933;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* =========================
   International Telephone Input Styling
   ========================= */
.iti {
  width: 100%;
  border: none!important;
}

/* Override library's default background */
.iti--separate-dial-code .iti__selected-flag {
  background-color: #fff!important;
}

.iti__flag-container {
  border: none;
  background: transparent;
}

.iti__selected-flag {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px 0 0 6px;
  border-right: 2px solid #d1d5db;
  border-left: 1px solid #d1d5db;
}

.iti__selected-flag:hover {
  background: rgba(0, 0, 0, 0.08);
}

.iti__flag {
  margin-right: 8px;
}

.iti__arrow {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #6b7280;
  margin-left: 6px;
}

.iti__arrow--up {
  border-top: none;
  border-bottom: 5px solid #6b7280;
}

/* Focus states */
.iti--focus .iti__flag-container {
  border-color: #285cc3;
  box-shadow: 0 0 0 4px rgb(40 92 195 / 10%);
}

/* Dropdown styling */
.iti__country-list {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-height: 200px;
}

.iti__country {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
}

.iti__country:hover {
  background: #f8f9fa;
}

.iti__country.iti__active {
  background: #285cc3;
  color: #fff;
}

/* Mobile input field */
#mobile {
  border-left: none;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  border: 1px solid #d1d5db;
  border-left: none;
}

/* Ensure the container has proper border */
.iti {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: stretch;
}

/* =========================
   Form Validation Styles
   ========================= */

/* Invalid field styling */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #ff0033 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 51, 0.25) !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  border-color: #ff0033 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 0, 51, 0.25) !important;
}

/* Valid field styling */
.form-control.is-valid,
.form-select.is-valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.form-control.is-valid:focus,
.form-select.is-valid:focus {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Error message styling */
.field-error-message {
  color: #ff0033;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
  display: none;
  animation: fadeIn 0.3s ease-in;
}

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

/* Invalid field label styling */
.form-label.invalid {
  color: #ff0033 !important;
}

/* Form validation feedback */
.form-control.is-invalid + .form-text,
.form-select.is-invalid + .form-text {
  color: #ff0033;
}

/* File input validation */
input[type="file"].is-invalid {
  border-color: #ff0033 !important;
}

input[type="file"].is-invalid + .form-text {
  color: #ff0033;
}

/* Select field validation for default values */
.form-select.is-invalid option[value=""] {
  color: #ff0033;
}

/* Focus states for better UX */
.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Hover states */
.form-control:hover:not(.is-invalid):not(.is-valid),
.form-select:hover:not(.is-invalid):not(.is-valid) {
  border-color: #adb5bd;
}

/* Disabled state */
.form-control:disabled,
.form-select:disabled {
  background-color: #e9ecef;
  opacity: 0.65;
}

/* Required field indicator */
.form-mandatory {
  color: #ff0033;
  font-weight: bold;
}

/* Validation animation */
.form-control,
.form-select {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Error message animation */
.field-error-message.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

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

/* =========================
   FORCE OVERRIDE PROGRESS BAR STYLES
   ========================= */
body .cw-wizard-progress .cw-wizard-step.cw-wizard-complete:after {
  background-color: #ff0033 !important;
  left: 0% !important;
  right: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
}

body .cw-wizard-progress .cw-wizard-step.cw-wizard-complete:before {
  background-color: #ff0033 !important;
}

body .cw-wizard-progress .cw-wizard-step.cw-wizard-complete .cw-wizard-node:before {
  background: transparent !important;
  font-family: FontAwesome !important;
  content: "" !important;
  position: absolute !important;
  top: 1px !important;
  font-weight: 400 !important;
  left: 4px !important;
}

body .cw-wizard-progress .cw-wizard-step.cw-wizard-complete .cw-wizard-node:after {
  color: #ff0033 !important;
  border-radius: 100% !important;
  display: block !important;
  position: absolute !important;
  left: 4px !important;
  top: 4px !important;
  font: 14px/1 FontAwesome !important;
  content: "\f00c" !important;
}

#assessmentForm .form-actions{
    margin-top: 70px;
}

/* =========================
   Custom Modal System
   ========================= */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.custom-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  animation: slideInUp 0.3s ease-out;
}

.custom-modal-header {
  display: flex;
  align-items: center;
  padding: 24px 32px 20px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
}

.custom-modal-icon {
  margin-right: 16px;
  font-size: 32px;
  line-height: 1;
}

.custom-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #212529;
  flex: 1;
}

.custom-modal-close {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-close:hover {
  background: #f8f9fa;
  color: #495057;
}

.custom-modal-body {
  padding: 24px 32px;
  max-height: 400px;
  overflow-y: auto;
}

.custom-modal-content {
  font-size: 15px;
  line-height: 1.6;
  color: #495057;
}

.custom-modal-footer {
  padding: 20px 32px 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.custom-modal-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-modal-btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

.custom-modal-btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Modal Types */
.custom-modal.error .custom-modal-header {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
}

.custom-modal.error .custom-modal-title {
  color: white;
}

.custom-modal.error .custom-modal-close {
  color: rgba(255, 255, 255, 0.8);
}

.custom-modal.error .custom-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.custom-modal.success .custom-modal-header {
  background: linear-gradient(135deg, #51cf66, #40c057);
  color: white;
}

.custom-modal.success .custom-modal-title {
  color: white;
}

.custom-modal.success .custom-modal-close {
  color: rgba(255, 255, 255, 0.8);
}

.custom-modal.success .custom-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.custom-modal.warning .custom-modal-header {
  background: linear-gradient(135deg, #ffd43b, #fcc419);
  color: #495057;
}

.custom-modal.warning .custom-modal-title {
  color: #495057;
}

.custom-modal.warning .custom-modal-close {
  color: rgba(73, 80, 87, 0.8);
}

.custom-modal.warning .custom-modal-close:hover {
  background: rgba(73, 80, 87, 0.1);
  color: #495057;
}

.custom-modal.info .custom-modal-header {
  background: linear-gradient(135deg, #74c0fc, #4dabf7);
  color: white;
}

.custom-modal.info .custom-modal-title {
  color: white;
}

.custom-modal.info .custom-modal-close {
  color: rgba(255, 255, 255, 0.8);
}

.custom-modal.info .custom-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .custom-modal {
    width: 95%;
    margin: 20px;
  }
  
  .custom-modal-header {
    padding: 20px 24px 16px;
  }
  
  .custom-modal-body {
    padding: 20px 24px;
  }
  
  .custom-modal-footer {
    padding: 16px 24px 20px;
  }
  
  .custom-modal-title {
    font-size: 18px;
  }
  
  .custom-modal-icon {
    font-size: 28px;
  }
}

/* Hide Frappe modal */
.msgprint-dialog {
  display: none !important;
}

/* =========================
   File Upload States
   ========================= */
.mb-3.uploading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
}

.upload-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 6px;
  font-size: 14px;
  color: #007bff;
  font-weight: 500;
}

.upload-loading i {
  margin-right: 8px;
  font-size: 16px;
}

.upload-success {
  margin-top: 8px;
  padding: 8px 12px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  color: #155724;
  font-size: 13px;
  display: none;
}

.upload-success i {
  margin-right: 6px;
  color: #28a745;
}

.upload-error {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  color: #721c24;
  font-size: 13px;
  display: none;
}

.upload-error i {
  margin-right: 6px;
  color: #dc3545;
}

/* File input styling during upload */
.mb-3.uploading input[type="file"] {
  opacity: 0.5;
}

/* Loading animation for file upload */
@keyframes uploadSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.upload-loading .fa-spinner {
  animation: uploadSpin 1s linear infinite;
}

/* =========================
   Freeze Overlay Styling
   ========================= */
#freeze {
  background-color: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(2px);
}

#freeze.in {
  opacity: 1 !important;
}

#freeze .freeze-message-container {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#freeze .freeze-message {
  text-align: center;
  color: #232933;
  font-weight: 500;
}

/* =========================
   Custom Resume Loader
   ========================= */
.custom-resume-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-resume-loader-overlay.show {
  opacity: 1;
}

.custom-resume-loader-content {
  text-align: center;
  background-color: #ffffff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  min-width: 320px;
}

.custom-resume-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: #ff0033;
  border-radius: 50%;
  animation: resume-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
  animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
  animation-delay: -0.3s;
  border-top-color: #ff3366;
}

.spinner-ring:nth-child(3) {
  animation-delay: -0.15s;
  border-top-color: #ff6699;
}

.spinner-ring:nth-child(4) {
  border-top-color: #ff99cc;
}

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

.custom-resume-loader-text {
  margin: 0;
  color: #232933;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
