/**
 * KDA Membership Portal — Custom Stylesheet
 * Replaces the original TheEvent template styles
 * Preserves all selector names used by main.js and AOS
 */

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  background: #f4f7fc;
  color: #1a1a2e;
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
}

a { color: #124385; text-decoration: none; transition: 0.3s; }
a:hover, a:active, a:focus { color: #0d3272; outline: none; text-decoration: none; }

p { padding: 0; margin: 0 0 16px 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
  font-weight: 700;
  margin: 0 0 14px 0;
  padding: 0;
  color: #071e3d;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  background: #124385;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.4s;
  box-shadow: 0 4px 14px rgba(18,67,133,.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top i { font-size: 24px; color: #fff; line-height: 0; }
.back-to-top:hover { background: #071e3d; color: #fff; }
.back-to-top.active { visibility: visible; opacity: 1; }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  background: #fff;
  height: 70px;
  position: fixed;
  left: 0; top: 0; right: 0;
  transition: all 0.5s;
  z-index: 997;
  border-bottom: 1px solid #edf0f8;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
}

#logo { display: flex; align-items: center; }
#logo img { max-height: 50px; width: auto; }

#navbar { padding: 0; }
#navbar ul {
  margin: 0; padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}
#navbar li { position: relative; }
#navbar > ul > li + li { margin-left: 28px; }

#navbar a, #navbar a:focus {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #2d3a52;
  white-space: nowrap;
  transition: 0.3s;
}
#navbar a:hover,
#navbar .active,
#navbar .active:focus { color: #124385; }

.buy-tickets {
  background: #124385;
  color: #fff !important;
  border-radius: 8px;
  padding: 9px 22px !important;
  font-weight: 700;
  font-size: 14px;
  margin-left: 24px;
  transition: all 0.22s !important;
  display: inline-block;
}
.buy-tickets:hover { background: #071e3d !important; color: #fff !important; }

/* Mobile nav toggle */
.mobile-nav-toggle {
  color: #124385;
  font-size: 26px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .mobile-nav-toggle { display: block; }
  #navbar ul { display: none; }
  #navbar.navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0; right: 0; left: 0; bottom: 0;
    background: rgba(7,30,61,.92);
    transition: 0.3s;
    z-index: 9999;
  }
  #navbar.navbar-mobile ul {
    display: block;
    position: absolute;
    top: 55px; right: 15px; left: 15px;
    padding: 10px 0;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    border-radius: 12px;
  }
  #navbar.navbar-mobile a { padding: 12px 20px; }
  .mobile-nav-toggle.bi-x { color: #fff; }
}

/*--------------------------------------------------------------
# Hero Strip
--------------------------------------------------------------*/
.kda-hero {
  margin-top: 70px;
  background: linear-gradient(140deg, #071e3d 0%, #0d3272 48%, #124385 100%);
  padding: 64px 20px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.kda-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -70px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.kda-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}
.kda-hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.2);
  position: relative; z-index: 1;
}
.kda-hero h1 {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -.4px;
  position: relative; z-index: 1;
}
.kda-hero h1 span { color: #7ab3f0; }
.kda-hero p {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative; z-index: 1;
}

/*--------------------------------------------------------------
# Section Backgrounds
--------------------------------------------------------------*/
.section-with-bg { background: #f4f7fc; }
.section-bg { background: #f8fafc; }

/*--------------------------------------------------------------
# Section Header (used in contact, etc.)
--------------------------------------------------------------*/
.section-header {
  text-align: center;
  padding: 40px 0 24px;
  margin-bottom: 28px;
  position: relative;
}
.section-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #071e3d;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 0;
}
.section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 48px; height: 3px;
  background: #124385;
  border-radius: 2px;
}

/*--------------------------------------------------------------
# Form Section
--------------------------------------------------------------*/
#buy-tickets { padding: 40px 0 64px; }

.kda-form-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(0,0,0,.09);
  padding: 44px 48px;
  border: 1.5px solid #edf0f8;
}

.kda-form-intro {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f8;
}
.kda-required-note { font-size: 13px; color: #667; }
.req { color: #e53935; font-weight: 700; }

/* Alert area */
.kda-alert-wrap {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f1f5ff;
  border-left: 4px solid #124385;
  border-radius: 8px;
  font-size: 14px;
}
#good_upload_message { color: #1b5e20; font-weight: 600; }
#bad_upload_message { color: #b71c1c; font-weight: 600; }

/* Field sections */
.kda-field-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #edf0f8;
}
.kda-field-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.kda-field-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #124385;
  background: #e8eef7;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* Form controls */
.form-group { margin-bottom: 18px; }
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #2d3a52;
  margin-bottom: 6px;
  display: block;
}
.form-group b { font-weight: 700; }

.form-control {
  border: 1.5px solid #dde3f0 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  background: #fff !important;
  transition: border-color .2s, box-shadow .2s !important;
  height: auto !important;
  font-family: inherit !important;
}
.form-control:focus {
  border-color: #124385 !important;
  box-shadow: 0 0 0 3px rgba(18,67,133,.09) !important;
  outline: none !important;
}
select.form-control { cursor: pointer; }

/* Payment table */
.table.table-hover.table-striped,
.kda-payment-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px solid #edf0f8;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
  font-size: 14px;
}
.table thead th,
.kda-payment-table th {
  background: #071e3d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: none;
}
.table tbody td,
.kda-payment-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #2d3a52;
  border-bottom: 1px solid #edf0f8 !important;
  background: #fff;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none !important; }
.table.table-striped tbody tr:nth-of-type(odd) td { background: #f8fafc; }
.table.table-hover tbody tr:hover td { background: #eef2fb; }
.table-hover tbody tr:hover { color: inherit; }

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #124385;
  cursor: pointer;
  border-radius: 4px;
}

/* Submit button */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 44px;
  border-radius: 10px;
  transition: all .22s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: .3px;
}
#buy-tickets .btn[type="submit"],
#buy-tickets button[type="submit"] {
  background: #124385;
  color: #fff;
  box-shadow: 0 4px 18px rgba(18,67,133,.28);
}
#buy-tickets .btn[type="submit"]:hover,
#buy-tickets button[type="submit"]:hover {
  background: #071e3d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(18,67,133,.35);
}

/* Bootstrap alert override */
.alert { border-radius: 8px; font-size: 14px; }
.alert-primary { background: #e8eef7; border-color: #c5d4ed; color: #0d3272; }

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact { padding: 52px 0; }

.contact-info, .contact-phone, .contact-email {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #edf0f8;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  height: 100%;
  transition: all .2s;
}
.contact-info:hover, .contact-phone:hover, .contact-email:hover {
  border-color: #c5d4ed;
  box-shadow: 0 6px 20px rgba(18,67,133,.1);
}
.contact-info i, .contact-phone i, .contact-email i {
  font-size: 36px;
  color: #124385;
  margin-bottom: 12px;
  display: block;
}
.contact-info h3, .contact-phone h3, .contact-email h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #071e3d;
}
.contact-info a, .contact-phone a, .contact-email a { color: #124385; }
.contact-info a:hover, .contact-phone a:hover, .contact-email a:hover { color: #071e3d; }
.contact-info address { font-size: 13px; color: #556; font-style: normal; }
.contact-phone p, .contact-email p { font-size: 13px; color: #556; margin: 0; }

.contact-info { margin-bottom: 0; }

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: #071e3d;
  color: rgba(255,255,255,.7);
  padding: 0;
  margin-top: 0;
}

.footer-top {
  padding: 44px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-info img { max-height: 50px; margin-bottom: 12px; display: block; }

.footer-links h4, .footer-contact h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { padding: 5px 0; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.footer-links ul li i { color: #7ab3f0; font-size: 11px; }
.footer-links ul a { color: rgba(255,255,255,.65); }
.footer-links ul a:hover { color: #fff; }

.footer-contact p { font-size: 13px; line-height: 1.85; color: rgba(255,255,255,.65); margin: 0; }
.footer-contact strong { color: rgba(255,255,255,.9); }
.footer-contact a { color: rgba(255,255,255,.65); }
.footer-contact a:hover { color: #fff; }

.social-links { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.social-links a {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  width: 34px; height: 34px;
  border-radius: 7px;
  transition: 0.25s;
}
.social-links a:hover { background: #124385; color: #fff; }

#footer .container > .copyright,
#footer .container > .credits {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  text-align: center;
}
#footer .container > .copyright { padding: 20px 0 4px; }
#footer .container > .credits { padding-bottom: 18px; }
#footer .credits a { color: rgba(255,255,255,.6); }
#footer .credits a:hover { color: #fff; }

/*--------------------------------------------------------------
# Modal (unchanged structure, just restyled)
--------------------------------------------------------------*/
.modal-content { border-radius: 14px; border: none; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.modal-header { background: #071e3d; border-radius: 14px 14px 0 0; padding: 18px 24px; }
.modal-header h4 { color: #fff; margin: 0; font-size: 17px; }
.modal-header .btn-close { filter: invert(1); }
.modal-body { padding: 28px 24px; }

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .kda-form-wrap { padding: 28px 22px; }
  .kda-hero h1 { font-size: 24px; }
  .kda-hero { padding: 48px 20px 40px; }
}
@media (max-width: 540px) {
  .kda-hero h1 { font-size: 20px; }
  .footer-top .col-lg-3 { margin-bottom: 24px; }
}
