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

body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #D1E1F5;
  color: #0A1A3A;
  min-height: 100vh;
  margin: 0;
  padding-top: 3.3%;
}

/* Navbar */
  .navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 7.9%;
    background: #0A2C59;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1000;
}

.navbar img {
  height: 4vh;
  border-radius: 50%;
}

.navbar .title {
    color: white;
    text-decoration: none;
  font-size: 1rem !important;
  font-weight: bold;
  margin-left: 10px;
}

.nav-btn{
  text-decoration: none;
  margin: 0 10px;
}

.navbar-center {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.navbar-left {
  display: flex;
  align-items: center;
}

.bell {
    color: white;
    cursor: pointer;
    margin-top: 0;
    margin-right: 5px;
    font-size: 1rem;
    line-height: 1;
}

.prof {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.navbar-right {
  display: flex;
  gap: 8px;
  font-size: 20px;
}

.navbar-right a {
  text-decoration: none;
}

.nav-btn {
    color: #ffffff;
    padding: 7px 18px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    border: none;
    outline: none;
}

.nav-btn:hover, .nav-btn.active {
    background: #1e4e9e;
    color: #fff;
}

.kk-btns{
  display: flex;
  justify-content: flex-end;
}

/* Hamburger Icon */
.navbar-hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 10px;
}

/* ✅ CONTAINER */
.kk-container {
  max-width: 100vw;
  margin: 0.5rem auto;
  padding: 1%;
}

.kkintro {
  width: 80vw;
  margin: 10px auto 18px auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ✅ CARDS */
.kk-card, .kk-upload-col {
  width: 90%;
  max-width: 900px;
  margin: 12px auto 25px auto;
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.kk-upload-col .image-preview-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #bcd4ec;
}

/* ✅ UPLOAD BUTTONS */
.upload-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a2c59;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
  border: none;
  transition: background 0.2s;
}

.upload-plus:hover {
  background: #1e4e9e;
}

/* ✅ IMAGE PREVIEW */
.image-preview {
  margin-top: 20px;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.image-preview img {
  width: 180px;
  height: 120px;
  max-width: 180px;
  max-height: 120px;
  border-radius: 10px;
  margin-top: 10px;
  object-fit: cover; /* crop to fill the fixed box */
  display: block;
}
.allow{
  margin-top: 3%;
  color: red;
}

/* Notification badge on top of bell icon */
.notif {
  position: relative;
  display: inline-block;
}
.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ff3b30;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: none; /* shown when there are new items */
  align-items: center;
  justify-content: center;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ✅ RESPONSIVE FIXES */
@media (max-width: 900px) {
  .kk-upload-row {
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .kk-upload-row {
    flex-direction: column;
    gap: 0;
    width: 90%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .kk-upload-col {
    width: 100%;
    max-width: 100vw;
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.10);
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .kk-card, .kkintro, .kk-upload-col {
    padding: 20px;
    width: 90%;
    margin-bottom: 16px;
    border-radius: 15px;
  }

  .kk-label {
    font-size: 15px;
  }

  .kk-input {
    font-size: 15px;
    padding: 10px 6px;
  }

  .kk-btn, .kk-btnss {
    width: 100%;
    font-size: 0.9rem !important;
    padding: 10px 0;
  }
}



/* Responsive behavior */
@media (max-width: 1048px) {
  .navbar-center {
    display: none !important;
  }
  .navbar-hamburger {
    display: inline-block !important;
  }
}

@media (min-width: 1049px) {
  .navbar-center {
    display: flex !important;
  }
  .navbar-hamburger {
    display: none !important;
  }
}

/* Mobile navbar optimization */
@media (max-width: 768px) {
  .navbar {
    padding: 4% 4.8%;
  }
  
  .navbar img {
    height: 2rem;
  }
  
  .navbar .title {
    font-size: 14px;
    margin-left: 8px;
  }
  
  .navbar-hamburger {
    font-size: 1.5rem;
    margin-right: 5px;
    display: flex;
    align-items: center;
  }
  
  .bell {
    font-size: 1.1rem;
    margin-right: 3px;
    display: flex;
    align-items: center;
  }
  
  .navbar-right {
    gap: 8.5px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
  }
  
  .navbar-right .prof {
    display: flex;
    align-items: center;
    margin-top: 0;
  }
  .kk-card {
    width: 90%; /* Full width on mobile */
    padding: 20px; /* Adjust padding for smaller screens */
    margin: 0 auto 16px auto; /* Center alignment */
  }
  .kk-btn-group {
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
    align-items: center; /* Center the buttons vertically */
    gap: 16px; /* Add spacing between buttons */
    margin-top: 20px; /* Add some space above the button group */
  }

  .kk-btn, .kk-btnss  {
    width: auto; /* Ensure buttons don't stretch unnecessarily */
    font-size: 0.9rem; /* Adjust font size for mobile */
    padding: 10px 20px; /* Add padding for better touch targets */
  }
  .kk-upload-row {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 12px auto 25px auto;
  }

  .kk-upload-col {
        width: 90% !important;
        max-width: 900px !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 4% !important;
        border-radius: 15px !important;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
        box-sizing: border-box !important;
    }
    
  /* Adjust font sizes for larger screens */
  .kk-label, .kk-labels {
    font-size: 0.9rem; /* Smaller font for labels */
  }

  .kk-input {
    font-size: 14px; /* Smaller font for inputs */
    padding: 10px 14px; /* Adjust padding for inputs */
  }

  .kk-btn, .kk-btnss  {
    font-size: 0.85rem; /* Smaller font for buttons */
    padding: 8px 0; /* Adjust button padding */
  }

  .kk-intro h2 {
    font-size: 22px; /* Smaller font for headings */
    font-weight: bold;
  }

  .kk-intro p {
    font-size: 0.9rem; /* Smaller font for paragraphs */
  }

  
  .kk-upload-row {
    flex-direction: column;
    gap: 0rem;
    align-items: stretch;
  }

  .kk-upload-col {
    width: 90%;
    max-width: 900px; /* same as .card */
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
    padding: 4%; /* match .card */
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
  }
    .kk-upload-btn{
    font-size: 0.8rem;
    min-width: 25%;
    padding: 1.7% 0 !important;
    margin-bottom: 0 !important;
  }
  
  .kk-upload-filename {
   min-width: 5%;
   margin-left: 0;
}
.custom-file {
    margin-top: 1%;
}

  .image-preview-container {
    position: relative;
    margin-top: 0.75rem;
    padding-top: 0;
  }

  .remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #ff0000;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
  }

  /* Match card spacing and width */
  .kk-card,
  .form-group {
    width: 90%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  .notif-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
  }
  .card, .card.intro, .kk-card, .kk-upload-col {
    padding: 20px;
    width: 90%;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    width: 100%;
  }
}

.navbar-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  right: 16px;
  width: 220px;
  background: #fff;
  flex-direction: column;
  align-items: stretch;
  z-index: 2000;
  padding: 18px 12px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(20,61,119,0.18);
  border: 1px solid #e3eaf3;
}

.navbar-mobile-menu.active {
  display: flex !important;
}

.navbar-mobile-menu .nav-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  font-size: 1rem;
  border-radius: 8px;
  color: #143d77;
  background: none;
  text-align: left;
  border: none;
  margin-bottom: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.navbar-mobile-menu .nav-btn:last-child {
  margin-bottom: 0;
}

.navbar-mobile-menu .nav-btn:hover {
  background: #eaf3fa;
  color: #1e4e9e;
}
.kk-container::before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 60px; /* adjust to match navbar height */
  pointer-events: none;
  background: linear-gradient(to bottom, #d1e1f5 80%, transparent 100%);
  z-index: 900;
}

.kkintro {
  width: 80vw;
  margin: 10px auto 18px auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.kkintro{
  margin-top: 2.3%;
}

    /* Intro Card */
    .kkintro h2 {
      margin-top: 0;
      margin-bottom: 5%;
      font-size: 1.5rem;
      font-weight: bold;;
      color: #0a2c59;
  }

  .kkintro p {
    font-size: 0.8rem;
      margin-bottom: 6px;
      line-height: 1.4;
      text-align: justify;
  }

.kk-card, .kk-upload-col {
  width: 90%;
  max-width: 900px;
  margin: 12px auto;
  background-color: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

/* Invisible card wrapper to align actions with cards without visible chrome */
.kk-card-invisible {
  width: 90%; /* Same width as .kk-card */
  max-width: 900px; /* Same max-width as .kk-card */
  margin: 12px auto 25px auto; /* Same margin as .kk-card */
  background: transparent; /* Keep it invisible */
  border-radius: 15px; /* Same border-radius as .kk-card */
  padding: 30px; /* Same padding as .kk-card */
  box-shadow: none; /* Remove shadow */
  box-sizing: border-box; /* Ensure consistent sizing */
}

.kk-label, .kk-labels {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem !important;
    color: #143d77;
}

.kk-input {
    width: 100%;
    padding: 10px 14px !important;
    border: 1px solid #bcd4ec;
    border-radius: 8px;
    background: #f5faff;
    font-size: 17px;
    margin-bottom: 0;
    outline: none;
    transition: border 0.3s;
}

.kk-input:focus {
    border: 1.5px solid #143d77;
    background: #eaf3fa;
}

.kk-btn-group {
    display: flex;
    justify-content: flex-end !important; /* Force right alignment */
    align-items: center;
    width: 90%;
    max-width: 900px;
    margin: 12px auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.kk-next-btn {
  margin-left: auto; /* Push button to the right */
}

/* Disabled state for placeholder Previous button on first step */
.kk-btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kk-intro h2 {
  margin-top: -5px;
    font-size: 24px;
    font-weight: bold;
    color: #0A2C59;
}

.kk-intro p {
  font-size: 16px;
    line-height: 1.5;
}

.kk-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5faff;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 18px;
}

.kk-file-upload {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    color: #143d77;
}

.image-preview {
    margin-top: 20px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.image-preview img {
    width: 100%;
    max-width: 220px;
    border-radius: 10px;
    margin-top: 10px;
}

.form-page { display: none; }
.form-page.active { display: block; }

.card {
  width: 90%;
    max-width: 900px;
    background: #fff;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-left: auto;
    margin-right: auto;
}

.card.intro {
  width: 90% !important;
  max-width: 900px !important;
  margin-top: 10vh; /* Default margin for larger screens */
  margin-left: auto;
  margin-right: auto;
}

/* Add to kkform.css */
.card.intro h2{
  margin-bottom: 1%;
  font-size: 1.4rem;
  font-weight: bold;
  color: #0a2c59;
}
.card.intro p {
  font-size: 1rem;
  line-height: 1.6;
}
.card.intro p:first-child {
  font-weight: bold;
  text-align: left;
  margin-bottom: 18px;
}
.card.intro p:nth-child(2) {
  text-align: center;
  margin-bottom: 10px;
}
.card.intro p:nth-child(3) {
  text-align: center;
  margin-bottom: 10px;
}
.card.intro p:last-child {
  font-weight: bold;
  text-align: left;
  margin-top: 18px;
}
.card.intro p,
.card.intro p:first-child,
.card.intro p:nth-child(2),
.card.intro p:nth-child(3),
.card.intro p:last-child {
  color: #000 !important;
}

.form-group {
    background: #fff;
    padding: 3%;
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

label {
  display: block;
  font-weight: 600;
  color: #3e70b3;
  margin-bottom: 5px;
}
/* .kk-labels{
  padding: 0 5%;
} */
.kk-inputs {
    width: 100%;
    padding: 3% 3%;
    border: 1px solid #bcd4ec;
    border-radius: 8px;
    background: #f5faff;
    font-size: 17px;
    margin-bottom: 0;
    outline: none;
    transition: border 0.3s;
}

.kk-inputs:focus {
    border: 1.5px solid #143d77;
    background: #eaf3fa;
}

select.form-control {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

select.form-control:focus {
  border-color: #0A2C59;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(10, 44, 89, 0.3);
}

.kk-next-btns{
    min-width: 90px;
    min-height: 38px;
    background: #143d77;
    color: #fff;
    font-size: 13px;
    padding: 8px 0 8px 0;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 8px rgba(20,61,119,0.08);
    cursor: pointer;
    outline: none;
    display: inline-block;
    margin-left: 0;
    margin-bottom: 0;
}

.kk-btn, .kk-next-btn, .kk-btnss  {
    min-width: 90px;
    min-height: 38px;
    background: #143d77;
    color: #fff;
    font-size: 13px;
    padding: 8px 0 8px 0;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 8px rgba(20,61,119,0.08);
    cursor: pointer;
    outline: none;
    display: inline-block;
    margin-left: 0;
    margin-bottom: 0;
}
.kk-btnss  {
    min-width: 90px;
    min-height: 38px;
    background: #777777;
    color: #fff;
    font-size: 13px;
    padding: 8px 0 8px 0;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 8px rgba(20,61,119,0.08);
    cursor: pointer;
    outline: none;
    display: inline-block;
    margin-left: 0;
    margin-bottom: 0;
}


/* Responsive behavior */
@media (max-width: 1048px) {
    .navbar-center {
        display: none !important;
    }
    .navbar-hamburger {
        display: inline-block !important;
        margin-top: 1%;
    }
    .notif{
      margin-top: 1%;
    }
    .notifs{
      margin-bottom: 4%;
    }
}
@media (min-width: 1049px) {
    .navbar-center {
        display: flex !important;
    }
    .navbar-hamburger {
        display: none !important;
    }
}

.navbar-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    right: 16px;
    width: 220px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    z-index: 2000;
    padding: 18px 12px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(20,61,119,0.18);
    border: 1px solid #e3eaf3;
}
.navbar-mobile-menu.active {
    display: flex !important;
}
.navbar-mobile-menu .nav-btn {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    border-radius: 8px;
    color: #143d77;
    background: none;
    text-align: left;
    border: none;
    margin-bottom: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
}
.navbar-mobile-menu .nav-btn:last-child {
    margin-bottom: 0;
}
.navbar-mobile-menu .nav-btn:hover {
    background: #eaf3fa;
    color: #1e4e9e;
}

@media (max-width: 600px) {
    .kk-container {
        padding: 2% 1%;
        max-width: 100vw;
    }
    .kk-card, .kkintro, .card.intro, .kk-upload-col {
        padding: 20px;
        margin-bottom: 16px;
        border-radius: 15px;
        width: 90%;
        max-width: 90%;
        margin-top: 1%;
    }
    .form-group{
        padding: 5% 6%;
        margin-bottom: 16px;
        border-radius: 10px;
        width: 90%;
        max-width: 90% !important;
    }
    .kk-label, .kk-labels {
        font-size: 1rem;
    }
    .kk-input {
        font-size: 15px;
        padding: 10px 6px;
    }
    .kk-btn, .kk-btnss  {
        width: 100%;
        font-size: 0.9rem !important;
        padding: 10px 0;
    }
    .kk-intro h2 {
        font-size: 24px;
        font-weight: bold;
    }
    /* Ensure Next button sits at the right side on small screens */
    .kk-btn-group {
        justify-content: flex-end;
    }
    .kk-next-btn {
        margin-left: auto;
        display: inline-block;
    }
    .kk-upload-col {
        padding: 20px;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 16px;
        border-radius: 10px;
        width: 90%;
        max-width: 90% !important;
    }
    /* Invisible card wrapper to align actions with cards without visible chrome */
.kk-card-invisibles {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-top: -10px; /* pull a bit closer if needed */
}

.card.intro h2{
  margin-bottom: 5%;
  font-size: 1.4rem;
  font-weight: bold;
  color: #0a2c59;
}
}

/* Upload containers: side-by-side on wide screens, identical card styling and sizing on mobile */
.kk-upload-row {
  width: 100%;
  display: flex;
  gap: 1%;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap; /* allow wrapping on narrower widths */
}

/* Approved badge shown when an application is approved. Added to upload rows by JS. */
.approved-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #155724; /* dark green text */
  background: rgba(40,167,69,0.08); /* subtle green background */
  border: 1px solid rgba(40,167,69,0.15);
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 8px;
}

.approved-text i { color: #28a745; }




.upload-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a2c59;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
  border: none;
  transition: background 0.2s;
}
.upload-plus:hover {
  background: #1e4e9e;
}
.file-name {
  display: none;
  font-size: 0.95em;
  color: #143d77;
  margin-left: 8px;
}
.view-icon,
.delete-icon {
  cursor: pointer;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s;
}
.view-icon.enabled,
.delete-icon.enabled {
  opacity: 1;
  pointer-events: auto;
}

/* Match LGBTQ form upload style */
.kk-upload-col {

    flex: 1 1 0;
    min-width: 280px;
    width: calc(50% - 16px);
    max-width: 29vw;
    background-color: #fff;
    border-radius: 15px;
    padding: 3%;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 25px;
    box-sizing: border-box;
}

.kk-upload-col label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #143d77;
}

.kk-upload-col .allow {
  font-size: 1rem;
  color: red;
}

/* New: inner wrapper to ensure the remove button anchors to the image area */
.preview-inner {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden; /* keep very tall images from spilling out */
  max-height: 320px; /* fixed visual cap for previews */
}
.preview-inner .preview-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px; /* enforce a visual maximum */
  object-fit: contain; /* scale tall images without cropping */
}
.preview-inner .remove-image-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* Ensure image-preview-container also respects the preview constraints */
.image-preview-container {
  position: relative;
  width: 100%;
}
.image-preview-container img,
.image-preview-container .preview-img {
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.kk-upload-col input[type="file"] {
width: 100%;
    padding: 10px 14px;
    border: 1px solid #bcd4ec;
    border-radius: 8px;
    background: #f5faff;
    font-size: 15px;
    color: #143d77;
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s;
}
.kk-upload-col input[type="file"]:focus {
  border: 1.5px solid #143d77;
  background: #eaf3fa;
}

/* Filename display next to the native choose button */
.kk-upload-filename {
  display: inline-block;
  min-width: 220px;
  max-width: 60%;
  padding: 8px 12px;
  margin-left: 10px;
  border: 1px solid #bcd4ec;
  border-radius: 8px;
  background: #f7fbff;
  color: #0A1A3A;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Hide the browser's default filename text while keeping the button visible.
   Uses modern pseudo-element selectors and fallbacks for WebKit/Firefox. */
input[type="file"] {
  color: transparent; /* hide native filename text */
}
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button,
input[type="file"]::-moz-file-select-button {
  color: initial; /* keep button label visible */
}

/* Custom file wrapper: show a button + filename; hide the native input visually */
.custom-file {
  display: flex;
  align-items: center;
  margin-top: 2%;
}
.custom-file-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
.custom-file .kk-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2.5% 12px;
  border-radius: 8px;
  background: #0a2c59;
  color: #fff;
  border: none;
  cursor: pointer;
}
.custom-file .kk-upload-btn:hover { background: #143d77; }

.image-preview-container {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
}
.image-preview-container img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #bcd4ec;
  background: #f5faff;
}
.remove-image-btn {    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.remove-image-btn:hover {
  background: #d32f2f;
}

/* Responsive: stack upload columns on smaller screens and scale previews */
/* @media (max-width: 900px) {
  .kk-upload-row {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .kk-upload-col {
    width: 100%;
    padding: 18px;
    margin: 0 auto 18px auto;
  }
  .image-preview-container {
    justify-content: flex-start;
    gap: 12px;
  }
  .image-preview-container img {
    width: 160px;
    height: 100px;
  }
} */

@media (max-width: 600px) {
  .kk-upload-row { gap: 12px; }
  .kk-upload-col { 
    padding: 6% !important; 
  }
  .image-preview-container { 
    gap: 8px; 
  }
  .image-preview-container img { 
    width: 120px; 
    height: 60vh; }
  .remove-image-btn { width: 22px; height: 22px; font-size: 1rem; }
  .kk-upload-col input[type="file"] { width: 100%; }
}

@media (max-width: 400px) {
  .image-preview-container img { width: 100px; height: 70px; }
  .kk-upload-col { 
    padding: 7%; 
  }
}
.kk-upload-filename {
  min-width: 26vh;
  margin-left: 12px;
  color: #0A2C59;
  font-weight: bold;
}
.kk-upload-preview img {
  /* margin-top: 12px; */
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  object-fit: cover;
}

/* Footer */
.footer {
  background: #0A2C59;
  color: #fff;
  padding: 40px 60px 20px;
  margin-top: auto; /* pushes footer down */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-left h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 15px;
  line-height: 1.5;
  color: #cfd9e8;
}

.footer-middle h4,
.footer-right h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-middle ul,
.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-middle ul li,
.footer-right ul li {
  margin-bottom: 8px;
}

.footer-middle ul li a,
.footer-right ul li a {
  text-decoration: none;
  color: #cfd9e8;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-middle ul li a:hover,
.footer-right ul li a:hover {
  color: #ffffff;
}

.footer-right ul li i {
  margin-right: 8px;
  font-size: 15px;
}

.footer hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: #cfd9e8;
}



@media (max-width: 480px) {
  .card, .card.intro, .kk-card, .kk-upload-col{
    width: 90%;
  }
  .notifs{
    margin-top: 5%;
  }
  .notif{
    margin-top: 1%;
  }

  .kk-upload-btn{
    font-size: 0.8rem;
    min-width: 38%;
    padding: 3.5% 0 !important;
    margin-bottom: 0;
  }
  .kk-upload-filename {
   min-width: 5%;
   margin-left: 0;
}
.custom-file {
    margin-top: 3%;
        gap: 3%;
}
  .footer {
    padding: 30px 20px 15px;
  }

  .footer-left h3 {
    font-size: 18px;
  }

  .footer-left p {
    font-size: 14px;
  }

  .footer-middle h4,
  .footer-right h4 {
    font-size: 15px;
  }

  .footer-middle ul li a,
  .footer-right ul li a {
    font-size: 14px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  /* Make buttons smaller on mobile */
  .kk-btn,
  .kk-next-btn, .kk-btnss  {
    width: 0.1vw !important;
    min-height: 5vh !important;
    font-size: 0.9rem !important;
    padding: 6px 12px !important;
  }

  .kk-btn.kk-submit-btn, .kk-btnss {
    width: 42vw !important;
  }

  .kk-btn, .kk-btnss  {
    padding: 6px 15px !important;
  }
}




.image-preview-container {
      width: 100%;
      margin-top: 2%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #bcd4ec;
}
.image-preview-container img {
  display: block;
  width: 100%;
  max-width: 360px; /* allow larger previews on desktop but keep responsive */
  height: auto; /* maintain aspect ratio */
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e3edf7;
  background: #f5faff;
}
.remove-image-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 60;
  background: #ffffff; /* white circle like screenshots */
  color: #d32f2f; /* red × */
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.12s, transform 0.06s;
  box-shadow: 0 6px 14px rgba(20,61,119,0.12);
}
.remove-image-btn:focus { outline: none; box-shadow: 0 6px 14px rgba(20,61,119,0.18); }
.remove-image-btn:hover { transform: translateY(-2px); }

/* New: inner wrapper to ensure the remove button anchors to the image area */
.preview-inner {
  position: relative;
  display: inline-block;
  line-height: 0; /* remove inline gaps */
}
.preview-inner .preview-img {
  display: block;
  max-width: 90vh;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
.preview-inner .remove-image-btn {
  top: 8px;
  right: 8px;
}




/* Default styling for larger screens (tablet, laptop, desktop) */
.kk-btn-group {
  display: flex;
  justify-content: flex-end; /* Align buttons to the right */
  align-items: center; /* Align buttons vertically */
  gap: 16px; /* Add spacing between buttons */
  margin-top: 20px; /* Add spacing above the button group */
}



.kk-card.kk-card-invisible{
  background-color: transparent;
  box-shadow: none;
}

@media (max-width: 1012px) and (min-width: 769px) {
  
  .kk-upload-filename{
    min-width: 20vw;
  }
  .kk-upload-btn{
    padding: 3.8% !important;
    font-size: 0.8rem;
  }
}

/* Align buttons to the right for larger screens */
@media (min-width: 769px) {
  .kk-btn-group {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    align-items: end; /* Align buttons vertically */
    gap: 16px; 
  }
  .notif{
    font-size: 1.25rem;
  }
  /* Ensure upload columns sit side-by-side on larger screens */
  .kk-upload-row {
    width: 90%;
    max-width: 900px;
    margin: 12px auto 25px auto;
    gap: 32px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .kk-upload-col {
        flex: 1;
        min-width: auto;
        width: calc(50% - 16px);
        max-width: none;
        padding: 30px;
        margin: 0;
  }

  /* Make sure preview containers align horizontally inside each column */
  .image-preview-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }
}

/* Adjustments for .card.intro margin based on screen size */
.card.intro {
  margin-top: 10vh; /* Default margin for larger screens */
}

@media (max-width: 600px) and (min-width: 481px) {
  .card.intro {
    margin-top: 15vh; /* Increase margin for screen sizes between 481px and 600px */
  }
}




