@media (max-width: 1280px) {}

@media (max-width: 1024px) {
  .container-custom {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 992px) {
  .color-body {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-top: 29vh;
    overflow-y: auto;
  }

  .container-custom {
    margin-left: 20px;
    margin-right: 20px;
  }

  .header-home {
    position: fixed;
    margin: 0 !important;
    width: 100%;
    padding: 0 0;
    top: 35px;
    /* Must be below the 35px ticker */
    left: 0;
    height: auto;
    /* Let it grow naturally */
    min-height: 15vh;
    background: var(--main-bg-gradient) !important;
    /* Use global gradient */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle separator */
    z-index: 10;
    display: flex;
    flex-direction: column;
    /* Stack top and bottom */
  }

  /* Ensure Ticker is visible and fixed at top */
  .guest-ticker {
    position: fixed !important;
    top: 0 !important;
    width: 100%;
    z-index: 1002 !important;
    height: 35px;
    /* Explicit height */
  }

  .header-home .container-custom {
    margin: 0 !important;
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .header-home-left {
    float: none;
    width: 100% !important;
    position: relative;
    padding: 10px 0 0 0;
    box-sizing: border-box !important;
  }

  /* Reset the anchor tag and inner flex container */
  .header-home-left a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
  }

  .header-home-left .flexleft {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .header-home-logo {
    flex: 0 0 auto !important;
    margin: 0 15px 0 0 !important;
  }

  .header-home-logo img {
    max-height: 48px !important;
    width: auto !important;
    display: block !important;
  }

  .header-home-title {
    flex: 1 1 0px !important;
    /* Force flex to allow shrinking below content size */
    min-width: 0 !important;
    /* Critical for flex child text wrapping */
    width: 100% !important;
    /* Force width */
    display: block !important;
    text-align: left !important;
    overflow: hidden !important;
    /* Prevent ANY overflow */
  }

  .header-home-title h1 {
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    color: #ffffff !important;
    /* White text for gradient background */
    display: block !important;
    width: 100% !important;
  }

  .header-home-title p {
    font-size: 11px !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    display: block !important;
    color: rgba(255, 255, 255, 0.85) !important;
    /* Light text for gradient background */
    white-space: normal !important;
    word-break: break-word !important;
  }

  .header-home-right {
    float: none;
    width: 100% !important;
    position: relative;
    text-align: center !important;
    margin-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box !important;
  }

  /* Force color on all nested elements to override anchor tag inheritance */
  .header-home-left a,
  .header-home-left a:hover,
  .header-home-left a:active,
  .header-home-left a:visited,
  .header-home-title,
  .header-home-title h1,
  .header-home-title p,
  .header-home-title * {
    color: #ffffff !important;
  }

  .tanggal {
    position: relative;
    overflow: hidden;
    text-align: center;

    margin: 0;
  }

  .header-home-right .flexright {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .link-top {
    height: 7vh;
    padding: 0 7px;
    border-radius: 5px;
    margin: 0 2px;
    opacity: 1;
  }

  .left-register {
    width: 100%;
    margin: 0 0 10px;
  }

  .left-register-inner {
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    height: auto;
    border: #fff 2px solid;
  }

  .left-register-margin {
    margin-right: 0;
  }

  .left-register-image {
    position: relative;
    overflow: hidden;
    left: 0;
    right: 0;
    bottom: 10px;
    text-align: center;
  }

  .left-register-image img {
    width: 50%;
    margin: 10px auto 10px;
  }

  .judul {
    padding-top: 10px;
  }

  .judul h1 {
    font-size: 120%;
    margin: 0 10px 10px;
  }

  .judul p {
    font-size: 100%;
    margin: 0 10px;
  }

  .judul h2 {
    font-size: 100%;
    margin: 10px 10px 10px;
  }

  .judul h3 {
    font-size: 100%;
    margin: 0 10px;
  }

  .right-register {
    width: 100%;
    margin: 0 0 30px;
  }

  .form-register {
    padding: 0 0 0 10px;
    margin: 0 0 0 -10px;
  }

  .form-register-inner {
    height: auto;
    border: #fff 2px solid;
    padding: 0 10px;
  }

  .box-camera {
    position: relative;
    width: 100%;
    float: left;
    text-align: center;
    margin: 0 0 20px;
  }

  .reg .heading-register {
    right: 0;
  }

  .column-isian {
    width: 100%;
    float: left;
    margin: 0 0 60px;
  }

  .column-isian-margin {
    margin: 0 0 0 0;
  }

  .ambil.flexright {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .ambil {
    top: -34px;
    z-index: 2;
    margin-top: 0;
  }

  .ambil p {
    padding: 0 15px;
    width: auto;
    height: 34px;
  }

  #camera {
    margin: 0 auto;
  }

  .ambil:after {
    right: 50%;
    bottom: -9px;
    border-right: transparent 10px solid;
    border-top: #26a66e 10px solid;
    border-left: transparent 10px solid;
    margin-right: -10px;
  }

  .kepuasan {
    position: relative;
    left: 0;
    right: 0;
    bottom: auto;
    top: 0;
  }

  .pertanyaan {
    margin: 70px 0 0;
  }

  .box-kepuasan {
    width: 75%;
    margin: 0 5px 10px;
  }

  .pertanyaan h1 {
    font-size: 110%;
    margin: 0 0 15px;
  }

  .column-4 {
    width: 50%;
    float: left;
    margin: 0 0 10px;
  }

  .jawaban-icon img {
    width: 50px;
    height: 50px;
  }

  .isian-left {
    width: 100%;
    /* Ensure stacked on mobile too */
    float: none;
  }

  .isian-right {
    width: 100%;
    /* Ensure stacked on mobile too */
    float: none;
  }

  .column-2 {
    width: 100%;
  }

  .form-control,
  select.form-control:not([size]):not([multiple]) {
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;
    /* Force border-box on mobile */
  }

  .form-group {
    margin-bottom: 10px;
  }

  .isian-left label {
    line-height: 34px;
    padding: 0 5px;
  }

  /* Fix Select2 Height on Mobile */
  .select2-container .select2-selection--single {
    height: 34px !important;
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border: 1px solid #bdbdbd !important;
    border-radius: 5px !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    padding-left: 10px !important;
    margin-top: 0 !important;
    color: #555 !important;
    font-size: 14px !important;
    width: 100% !important;
  }

  .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    width: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    right: 0 !important;
  }

  /* Improved Touch Targets & Spacing for Mobile */
  .btn-xs {
    padding: 6px 10px !important;
    font-size: 12px !important;
    line-height: normal !important;
    margin-bottom: 5px !important;
    display: inline-block !important;
    min-height: 32px;
  }

  .table td {
    vertical-align: middle !important;
    padding: 10px 8px !important;
  }

  .box-header {
    padding: 15px !important;
    font-size: 110% !important;
  }

  /* Better Form Spacing */
  .form-group {
    margin-bottom: 15px !important;
  }

  /* Ensure footer doesn't overlap text */
  .main-footer {
    padding: 15px !important;
    text-align: center !important;
  }
}