/* ✅ 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;
}

.kk-container {
    max-width: 900px;      /* Match LGBTQ form */
    margin: 2rem auto;
    padding: 20px;
}

.kk-card {
    background: #fff;
    padding: 20px;         /* Match LGBTQ form */
    margin-bottom: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.10);
    max-width: 900px;      /* Match LGBTQ form */
    margin-left: auto;
    margin-right: auto;
}

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

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

.cancel{
    min-width: 10%;
    min-height: 10%;
    padding: 1.7% 5% !important;
    background-color: #777777;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    text-decoration: none;
    margin-right: 15px;
}

/* 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 behavior */
@media (max-width: 1048px) {
    .navbar-center {
        display: none !important;
    }
    .navbar-hamburger {
        display: inline-block !important;
    }
    .notif{
      margin-top: 1%;
    }
}

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

/* Mobile navbar optimization */
@media (max-width: 768px) {
  .notif-badge {
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
  }
  .navbar{
    padding: 4% 4.8% !important;
  }
    .card-intro{  
    padding: 20px !important; 
    width: 90%;
  }
  .cancel{
    min-width: 18%;
    min-height: 10%;
    padding: 2% 5% !important;
    font-size: 1rem;
  }
  .card {
    width: 90%;
    margin: 0 auto 16px auto !important;
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    width: 100%;
  }
  .navbar {
    padding: 10px 15px;
  }
  
  .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;
    margin-top: 0;
    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;
  }
}

.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;
}

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

.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;
}

/* Cards */
.card {
  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;
}
.card-intro{
    width: 90%;
    max-width: 900px;
    margin: 10vh auto 25px auto;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}
    /* Intro Card */
    .card-intro h2 {
      font-size: 1.4rem;
      margin-bottom: 1%;
      color: #0a2c59;
  }

  .card-intro p {
    font-size: 16px;
      margin-bottom: 10px;
      line-height: 1.5;
  }

.card input[type="text"],
.card input[type="date"],
.card input[type="file"],
.card select,
.card textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #bcd4ec; /* match kkform */
  border-radius: 8px;
  background: #f5faff;
  font-size: 15px;
  color: #143d77;
  margin-bottom: 0;
  box-sizing: border-box;
  transition: border 0.2s, box-shadow 0.2s;
}

/* Image preview containers: ensure tall images fit the viewport */
.image-preview-container {
  position: relative;
  display: none; /* hidden when empty; shown when populated by JS */
}
.image-preview-container img {
  max-width: 100%;
  max-height: 60vh; /* keep tall images from exceeding viewport height */
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain; /* show whole image without cropping */
  border-radius: 8px;
}

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

.card input[type="text"]:focus,
.card input[type="date"]:focus,
.card input[type="file"]:focus,
.card select:focus,
.card textarea:focus {
  border: 1.5px solid #143d77; /* match kkform */
  outline: none;
  background: #eaf3fa;        /* match kkform */
  box-shadow: none;
}

/* Intro Card */
.intro h2 {
  font-size: 24px;
  color: #0A2C59;
  margin-bottom: 15px;
}

.intro p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* Submit Button */
.submit-btn {
  padding: 12px 30px;
  text-align: center;
  background: #143d77;        /* match kkform */
  color: #fff;
  border: none;
  border-radius: 7px;          /* match kkform */
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  min-width: 120px;            /* match kkform */
  min-height: 40px;
  box-shadow: 0 2px 8px rgba(20,61,119,0.08);
  display: inline-block;
}

.submit-btn:hover {
  background: #1a4c9c;         /* match kkform hover */
}

/* Invisible Card for Button Alignment */
.invisible-card {
  background: transparent;
  box-shadow: none;
  padding: 8px 20px 0 20px;
  margin-top: -8px;
  margin-bottom: 0;
}

/* Invisible card wrapper (matches kkform.css) */
.kk-card-invisible {
  background: transparent;
  box-shadow: none;
  padding: 8px 20px 0 20px;
  margin-top: -8px;
  margin-bottom: 0;
}

/* Button group for right alignment */
.kk-btn-group {
  display: flex;
  justify-content: flex-end;
  /* gap: 10px; */
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}
.image-preview-container {
  position: relative;
  display: none;
  margin-top: 10px;
  max-width: 300px;
}

.image-preview-container img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.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: rgba(255, 0, 0, 0.7);
}


/* 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) {
      .kk-upload-btn {
        font-size: 0.8rem;
        min-width: 38%;
        padding: 3.5% 0 !important;
        margin-bottom: 0;
    }
  .allow{
  font-size: 0.8rem;
  color: red;
}

.cancel{
    min-width: 25%;
    min-height: 10%;
    padding: 3% 8% !important;
}
  
    .notif{
      margin-top: 1%;
    }
  .card-intro{
    margin-top: 10vh;
    width: 90%;
  }
  .card{
        width: 90%;
        padding: 20px;
        margin: 0 auto 16px auto;
  }
  .kk-btn-group {
    justify-content: flex-end;
  }
  .submit-btn {
    width: auto;
    min-width: 90px;
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  .kk-upload-col{
    padding: 7% !important;
  }
  .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;
  }
}

@media (max-width: 1012px) and (min-width: 769px) {
  
  .kk-upload-filename{
    min-width: 2vw;
    margin-left: 12px;
  }
  .kk-upload-btn{
    padding: 3.8% !important;
    font-size: 0.8rem;
  }
  .custom-file{
    gap: 0 !important;
  }
}

@media (max-width: 600px) {
    .container {
        padding: 2% 1%;
        max-width: 100vw;
    }
    .kk-card {
        padding: 10px;
        margin-bottom: 16px;
        border-radius: 10px;
        max-width: 80vw;
        margin-left: auto;
        margin-right: auto;
    }
    .card {
        width: 90%;
        padding: 20px;
        margin: 0 auto 16px auto;
    }
    .kk-label {
        font-size: 15px;
    }
    .kk-input {
        font-size: 15px;
        padding: 10px 6px;
    }
    .kk-btn {
        width: 100%;
        font-size: 15px;
        padding: 10px 0;
    }
    .submit-btn {
        width: 0.1vw !important;
        min-height: 5vh !important;
        font-size: 0.9rem;
        padding: 3% 5% !important;
    }
    .kk-intro h2 {
        font-size: 24px;
    }
    .intro h2 {
        font-size: 24px;
    }
    /* 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;
    }
    /* Center image preview container like cards on small screens */
    .image-preview-container {
        max-width: 80vw;
        margin-left: auto;
        margin-right: auto;
    }
    .image-preview-container img {
        width: 100%;
        height: auto;
    }
    .kk-upload-col {
        padding: 100px;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 16px;
        border-radius: 10px;
        max-width: 90vw !important;
    }
    /* Invisible card wrapper to align actions with cards without visible chrome */
    .kk-card-invisible {
      background: transparent;
      box-shadow: none;
      padding: 0;
      margin-top: -10px; /* pull a bit closer if needed */
    }
}


/* 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 */
}

/* Custom file button + filename display (keeps native input for form submission) */
.custom-file {
  display: flex;
  align-items: center;
  margin-top: 2%;
}
.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;
}
.kk-upload-btn {
  background: #143d77;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.kk-upload-filename {
    min-width: 37vh;
    margin-left: 12px;
    color: #0A2C59;
    font-weight: bold;
}

/* show filename placeholder only when .visible is present */
.kk-upload-filename { display: none; }
.kk-upload-filename.visible { display: inline-block; /* or flex if you prefer */ }

.kk-upload-btn:hover { background: #1a4c9c; }
.kk-upload-filename {
display: inline-block;
    min-width: 20%;
    max-width: 60%;
    padding: 8px 12px;
    margin-left: 10px;
    border: 1px solid #bcd4ec;
    display: none; /* shown only when filename exists */
    background: #f7fbff;
    color: #0A1A3A;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 8px;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.custom-file-input {
  position: absolute;
  left: -9999px; /* keep native input available but out of sight */
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Preview inner wrapper used to absolutely position the remove button relative to image */
.preview-inner {
  position: relative;
  display: inline-block;
}
.preview-img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}

/* Desktop / tablet: two columns that visually match .card */
.kk-upload-col {
  flex: 1 1 0;
  min-width: 280px;
  width: calc(50% - 16px); /* two columns with gap compensation */
  max-width: 29vw;
  background-color: #fff;
  border-radius: 15px;
  padding: 3%; /* same padding as .card */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 25px;
  box-sizing: border-box;
}

/* Desktop / laptop and larger screens */
@media (min-width: 769px) {
  .kk-upload-row {
    width: 90%;          /* Same as .card width */
    max-width: 900px;    /* Same as .card max-width */
    margin: 12px auto 25px auto;  /* Same as .card margin */
    gap: 32px;
    display: flex;
    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 image preview behave like card content */
.kk-upload-col .image-preview-container {
  margin-top: 15px;
  display: none;
  max-width: 100%;
}
.kk-upload-col .image-preview-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #bcd4ec;
}

/* File input styling – matches dropdown inputs */
.kk-upload-col label {
      display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #143d77;
}
.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;
  outline: none;
}

/* Mobile: stack and match .card width/padding */
@media (max-width: 768px) {
  .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;
  }

  .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;
  }
}

