.form-check {
  align-items: center; /* Vertically centers items */
}

.form-check-group {
  display: flex; /* Aligns children in a column */
  flex-direction: column; /* Stacks cards vertically */
  gap: 10px; /* Adds space between each card */
  margin-bottom: 10px; /* Adds spacing below the group */
}

.form-check.card {
  display: flex;
  flex-direction: row;
  align-items: center; /* Aligns items vertically centered */
  width: 300px;
  padding: 10px; /* Adds some padding to the card */
  border: 1px solid #ccc; /* Adds a border */
  border-radius: 5px; /* Rounds the corners */
  cursor: pointer; /* Changes cursor on hover */
}

.form-check-input-radio {
  margin-right: 10px; /* Adds spacing between the radio button and label */
  /* Ensure vertical alignment */
  position: relative; /* Allows precise positioning */
  top: 2px; /* Adjust this value to align with label */
}

.form-check-img {
  width: 100px; /* Set image width */
  height: 50px; /* Set image height */
  margin-right: 10px; /* Adds spacing between image and text */
}
 
/* Modern offcanvas menu styles */
.offcanvas-body {
    background-color: #ffffff;
    height: 100%;
    overflow-y: auto;
}

.menu-item {
    border-radius: 0.75rem;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-item i {
    min-width: 24px;
}

.menu-item:hover {
    background-color: #fdaf3b33; /* soft accent */
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    color: #fdaf3b;
}

.menu-item.active {
    background-color: #fdaf3b;
    color: white !important;
    font-weight: 600;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fdaf3b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

body {
      font-family: 'Inter', sans-serif;
      padding-top: 86px;


  }

  /* Navbar styling */
  .navbar {
      background-color: rgb(255, 255, 255);

      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }


  .navbar-nav .nav-link {
      color: #fff !important;
  }

  .navbar-nav .nav-link:hover {
      color: #ffbf00 !important;
  }

  .navbar-toggler-icon {
      background-color: #fff;
  }

  /* Carousel styling */
  .carousel-item {
      height: 400px;
      justify-content: center;
      align-items: center;
      overflow: hidden;
  }

  @media (max-width: 767px) {
      .carousel-item {
          height: 200px;
      }
  }

  .carousel-inner img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  
  }

  .carousel-indicators button {
      background-color: #004d99;
  }

  .carousel-indicators .active {
      background-color: #ffbf00;
  }
  
  .carousel {
  width: 100%;
  margin: 0;
  }

  .user-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: #fdaf3bff;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
  }
  .user-menu::after {
      display: none !important;
  }

.footer-light a {
     color: #555 !important;
  text-decoration: none !important;
}

.footer-link {
  color: #555;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fc7204;
}

.social-icon {
  color: #333;
  font-size: 1.25rem;
  transition: color 0.2s, transform 0.2s;
}

.social-icon:hover {
  color: #fc7204;
  transform: scale(1.15);
}

hr {
  border-top: 1px solid #ddd;
}

@media (max-width: 767.98px) {
  .footer-light {
    text-align: center;
  }
  .social-icon {
    font-size: 1.4rem;
  }
}

 @media (max-width: 768px) {
         .row {
             justify-content: center;
         }

         .col-md-4,
         .col-sm-6 {
             flex: 0 0 100%;
             /* Take full width on mobile */
             max-width: 100%;
             /* Ensure cards take the full width */
         }
     }

   /* ===== Card Container ===== */
     .event-card {
  border: 1px solid #eee;
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.event-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.event-card .badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff7a00;
  color: #fff;
  font-size: 0.7rem;
  border-radius: 50px;
  padding: 4px 8px;
}

.event-card .rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  padding: 3px 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.event-card .rating-badge i {
  color: #ff7a00;
  font-size: 0.9rem;
}

.event-card .card-body {
  padding: 1rem 1.2rem;
}

.event-card .category-badge {
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 0.7rem;
  padding: 3px 8px;
  color: #555;
  background: #f8f9fa;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.event-card .card-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.8rem;
        color: #111;
        /* === TRUNCATION CODE ADDED HERE === */
        white-space: nowrap; /* Prevent text from wrapping */
        overflow: hidden;    /* Hide content that exceeds the width */
        text-overflow: ellipsis; /* Display '...' when content is clipped */
        /* ================================== */
    }

.event-card .info {
  color: #424242ff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-card .info i {
  color: #ff7a00;
  margin-right: 6px;
}

.event-card .price-row {
  border-top: 1px solid #eee;
  padding-top: 0.8rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-card .price {
  font-size: 1rem;
  font-weight: 600;
  color: #303030;
  
}

.event-card .price small {
  display: block;
  color: #6c757d;
  font-weight: 400;
}

.event-card .btn-book {
  background-color: #ff7a00;
  color: #fff;
 
  font-weight: 300;
  padding: 6px 16px;
  transition: 0.3s;
}

   .event-card.event-closed {
    filter: grayscale(100%);
    opacity: 0.6;
    pointer-events: none; /* disable click if closed */
    }

    .btn-book {
    background-color: #ff6600;
    color: white;
    border: none;
    }

    .btn-disabled {
    background-color: #aaa;
    color: #fff;
    cursor: not-allowed;
    }


.event-card .btn-book:hover {
  background-color: #e96d00;
}
     /* Change color for the carousel control icons */
     .carousel-control-prev-icon,
     .carousel-control-next-icon {
         background-color: transparent;
         /* Make background transparent */
         border: solid 1px transparent;
         /* Remove the border (optional) */
     }

     /* Change color of the prev and next icons */
     .carousel-control-prev-icon::after,
     .carousel-control-next-icon::after {
         color: rgb(0, 0, 0);
         /* Change to your desired color */
     }


     .c-item {
         height: 100%;
     }

     .c-img {
         height: 100%;
         object-fit: cover;
     }
     
     .carousel {
  width: 100%;
  margin: 0;
}

     @media (max-width: 768px) {
         .carousel-inner {
             height: 180px;
             /* Adjust for smaller screens */
         }
     }

      :root {
        --bs-icon-accent:   #f97316;
    }

    body {
        background-color: #f8f9fa;
    }

    /* =====================
       Typography
    ====================== */
    #eventTitle {
        font-weight: 700;
        letter-spacing: -0.4px;
    }

    h5 {
        font-weight: 600;
        margin-bottom: .5rem;
    }

    p {
        color: #303133;
        line-height: 1.75;
        font-size: 0.95rem;
    }

    /* =====================
       Banner
    ====================== */
    .event-banner {
        border-radius: 16px;
        overflow: hidden;
    }

    .event-banner img {
        object-fit: cover;
        max-height: 340px;
    }

    /* =====================
       Card Modern
    ====================== */
    .card-modern {
        border: none;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    }

    /* =====================
       Info List
    ====================== */
    .info {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.95rem;
        margin-bottom: .75rem;
    }

    .info i {
        color: var(--bs-icon-accent);
      
        font-size: 1rem;
        flex-shrink: 0;
    }

    /* =====================
       Button
    ====================== */
    .btn-buy {
        border-radius: 12px;
        padding: 14px;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    .btn-primary {
        background-color: #f97316;
        border-color: #f97316;
    }

    .btn-primary:hover {
        background-color: #ea6a10;
        border-color: #ea6a10;
    }

    /* =====================
       Mobile Sticky CTA
    ====================== */
    @media (max-width: 767px) {
        .total-card {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 10;
            border-radius: 16px 16px 0 0;
        }

        .col-md-4 {
            margin-bottom: 120px;
        }
    }

     :root {
        --accent: #f97316;
        --bg-soft: #f8f9fa;
        --text-muted: #6c757d;
    }

    body {
        background-color: var(--bg-soft);
    }

    /* =====================
       Ticket Card
    ====================== */
    .ticket-card {
        border: none;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,.04);
        transition: transform .2s ease, box-shadow .2s ease;
    }

    .ticket-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(0,0,0,.06);
    }

    .ticket-title {
        font-weight: 600;
        letter-spacing: -.3px;
    }

    .ticket-price {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--accent);
    }

    .ticket-note {
        font-size: .8rem;
        color: var(--text-muted);
        line-height: 1.4;
    }

    /* =====================
       Button
    ====================== */
    .btn-primary {
        background-color: var(--accent);
        border-color: var(--accent);
        border-radius: 10px;
        font-weight: 600;
    }

    .btn-primary:hover {
        background-color: #ea6a10;
        border-color: #ea6a10;
    }

      .btn-buy {
        border-radius: 12px;
        padding: 14px;
        font-weight: 600;
        letter-spacing: 0.2px;
    }
    /* qty input */
    .input-group-sm .form-control {
        text-align: center;
        font-weight: 600;
    }

    /* =====================
       Sidebar
    ====================== */
 .sidebar-card {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
 }

    /* =====================
       Mobile Sticky Bottom
    ====================== */
    @media (max-width: 767px) {
        .total-card {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 10;
            border-radius: 16px 16px 0 0;
            box-shadow: 0 -8px 24px rgba(0,0,0,.08);
        }

        .col-md-4 {
            margin-bottom: 140px;
        }
    }

    :root {
    --accent: #f97316;
    --accent-soft: #fff7ed;
    --text-muted: #6c757d;
}

/* ==== CARD ==== */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.card + .card {
    margin-top: 1.5rem;
}

/* ==== HEADINGS ==== */
h3, h6 {
    font-weight: 700;
}

/* ==== FORM ==== */
.form-control {
    border-radius: 12px;
    padding: 12px 14px;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(249,115,22,.15);
}

.is-invalid {
    border: 2px solid #dc3545;
}

/* ==== SWITCH ==== */
.form-switch .form-check-input {
    width: 3rem;
    height: 1.4rem;
    cursor: pointer;
}

/* ==== BUTTON ==== */
.btn-primary {
    background: linear-gradient(135deg, #fb923c, #f97316);
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-weight: 600;
}

.btn-primary:hover {
    opacity: .95;
}

/* ==== DETAIL PESANAN ==== */
#detailkarcis .row {
    font-size: 14px;
    margin-bottom: 6px;
}

/* ==== TOTAL CARD ==== */
.total-card {
    background: var(--accent-soft);
}

#totalkarcis {
    font-weight: 700;
    color: var(--accent);
}

/* ==== DESKTOP STICKY ==== */
@media (min-width: 768px) {
    .col-md-4 {
        position: sticky;
        top: 90px;
        height: fit-content;
    }
}

/* ==== MOBILE FIXED BOTTOM ==== */
@media (max-width: 767px) {
    .total-card {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        z-index: 1000;
    }

    .col-md-4 {
        margin-bottom: 140px;
    }
}

 .is-invalid {
         border: 2px solid red;

     }

     .error-message {
         font-size: 12px;
         margin-top: 5px;
     }

     /* Make the Total card fixed at the bottom */
     @media (max-width: 767px) {

         /* Only the Total card should be fixed at the bottom */
         .card.total-card.fixed-bottom {
             position: fixed;
             bottom: 0;
             width: 100%;
             z-index: 10;
             /* Ensure it stays on top of other content */
         }

         /* Prevent the Detail Pesanan card from overlapping the Total card */
         .col-md-4 {
             margin-bottom: 80px;
             /* Add margin to ensure space for the fixed bottom card */
         }
     }

     /* Optional: Styling for the Total card's card-body to make it look better */
     .card.total-card.fixed-bottom .card-body {
         padding-bottom: 20px;
         /* Add some padding for the fixed Total card */
     }

     :root {
    --accent: #f97316;
    --accent-soft: #fff7ed;
    --danger: #ef4444;
    --text-muted: #6c757d;
}

/* ==== GLOBAL ==== */
body {
    background-color: #f8fafc;
}

.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.card + .card {
    margin-top: 1.5rem;
}

/* ==== TIMER ==== */
#timer {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    font-weight: 600;
    letter-spacing: .3px;
    border-radius: 0 0 14px 14px;
}

/* ==== HEADINGS ==== */
h3, h6 {
    font-weight: 700;
}

/* ==== TEXT ==== */
.text-muted {
    color: var(--text-muted) !important;
}

/* ==== INVALID ==== */
.is-invalid {
    border: 2px solid #dc3545;
}

.error-message {
    font-size: 12px;
    margin-top: 4px;
}

/* ==== DETAIL PESERTA ==== */
#participant p {
    margin-bottom: 4px;
}

/* ==== DETAIL PESANAN ==== */
#detailkarcis .row {
    font-size: 14px;
    margin-bottom: 6px;
}

/* ==== TOTAL CARD ==== */
.total-card,
.fixed-bottom.card {
    background: var(--accent-soft);
}

#TotalPayment {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

/* ==== BUTTON ==== */
.btn-primary {
    background: linear-gradient(135deg, #fb923c, #f97316);
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-weight: 600;
}

.btn-primary:hover {
    opacity: .95;
}

/* ==== DESKTOP SIDEBAR ==== */
@media (min-width: 768px) {
    .col-md-4 {
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

/* ==== MOBILE FIXED BOTTOM ==== */
@media (max-width: 767px) {

    .fixed-bottom.card {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 18px 18px 0 0;
        z-index: 1000;
    }

    .detail-pesanan.card{
        margin-top: 10px;
        margin-bottom: 30px;
    }
    .col-md-4 {
        margin-bottom: 220px;
    }
}