:root {
  /* EMIS Theme Colors */
  --primary-color: #008f8f;
  /* Teal */
  --primary-light: #00b3b3;
  /* Cyan */
  --primary-dark: #006666;
  /* Dark Teal */
  --accent-color: #4dd2d2;
  /* Light Cyan */
  --text-dark: #1f2937;
  --text-light: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.9);
  /* Slightly more opaque for contrast */
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(0, 102, 102, 0.15);
  /* Shadow tinted with primary dark */
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  font-size: 16px !important;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
}

a {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-light);
  outline: none;
  text-decoration: none;
}

.color-body {
  /* EMIS Gradient: Dark Teal to Cyan */
  background: linear-gradient(135deg, #006666 0%, #008f8f 40%, #00b3b3 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* EMIS Pattern Overlay */
.color-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* SVG Geometric Pattern (Mandala-like/Islamic geometry hint) */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  z-index: 0;
  pointer-events: none;
}

.container-custom {
  margin-left: 10vh;
  margin-right: 10vh;
}

.flexcenter {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flexleft {
  display: flex;
  justify-content: left;
  align-items: center;
}

.flexright {
  display: flex;
  justify-content: right;
  align-items: center;
}

.row {
  margin-right: 0;
  margin-left: 0;
}

.left-register {
  width: 25%;
  float: left;
  text-align: center;
  margin: 0 0;
}

.left-register-inner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--glass-bg);
  height: 60vh;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-register-margin {
  margin-right: 20px;
  position: relative;
  z-index: 2;
}

.right-register {
  width: 75%;
  float: left;
  position: relative;
  margin: 0 0;
  z-index: 2;
}

.latar-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  opacity: 0.8;
  mix-blend-mode: overlay;
}

.latar-bottom img {
  display: block;
  width: 100%;
  height: auto;
}

.header-home {
  position: relative;
  overflow: hidden;
  margin: 0 0 0 !important;
  width: 100%;
  background: rgba(0, 102, 102, 0.4);
  /* Switched header tint to dark teal */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5vh 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* Slightly more visible border */
  z-index: 2;
  /* Ensure it sits above the pattern */
}

.info-ticker {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 10;
}

.info-ticker marquee {
  font-weight: 500;
  font-size: 15px;
  line-height: normal;
  letter-spacing: 0.5px;
}

.info-label {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  color: #fff;
  padding: 4px 15px;
  border-radius: 0 20px 20px 0;
  font-weight: 600;
  margin-right: 15px;
  display: inline-block;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.header-home-left {
  float: left;
  width: 60%;
}

.header-home-right {
  float: left;
  width: 40%;
  height: 16vh;
  text-align: right;
}

.header-home-logo {
  width: auto;
  height: 10vh;
  /* Reduced from 14vh */
  margin: 0 20px 0 0;
  /* Slightly increased margin for better spacing */
}

.header-home-logo img {
  width: auto;
  height: 100%;
}

.header-home-title h1 {
  font-size: 140%;
  /* Reduced from 170% */
  margin: 0 0;
  padding: 0;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
  /* Reduced letter spacing */
}

.header-home-title p {
  font-size: 100%;
  margin: 8px 0 0;
  padding: 0;
  line-height: 1.1;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.form-register {
  position: relative;
  overflow: hidden;
  padding: 0 0 0 10px;
}

.form-register-inner {
  position: relative;
  overflow-y: auto;
  border-radius: 20px;
  background: var(--glass-bg);
  height: 60vh;
  border: 1px solid var(--glass-border);
  padding: 20px 25px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Custom Scrollbar for inner form */
.form-register-inner::-webkit-scrollbar {
  width: 6px;
}

.form-register-inner::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.form-register-inner::-webkit-scrollbar-thumb {
  background: rgba(27, 94, 32, 0.3);
  border-radius: 10px;
}

.form-register-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(27, 94, 32, 0.5);
}

.heading-register {
  position: absolute;
  top: 2vh;
  left: 0;
  z-index: 2;
  right: 0;
  height: 6vh;
}

.reg .heading-register {
  right: 180px;
}

.heading-register:after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  border-left: transparent 10px solid;
  border-top: var(--primary-dark) 10px solid;
}

.heading-register h2 {
  display: inline-block;
  /* Added to prevent background from stretching fully */
  font-size: 100%;
  margin: 0 15px 0 0;
  padding: 0 25px;
  line-height: 6vh;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  border-radius: 8px 8px 8px 0;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.box-tamu {
  margin: 10vh 0 0;
}

.margin-min5 {
  margin: 0 -5px;
}

.pd-lr-5 {
  padding: 0 5px;
}

.column-2 {
  width: 50%;
  float: left;
}

.column-4 {
  width: 25%;
  float: left;
  margin: 0 0 10px;
}

.column-100 {
  width: 100%;
  float: left;
}

.box-image {
  width: 25%;
  float: left;
  height: 52vh;
}

.box-form {
  width: 75%;
  float: left;
}

.column-isian {
  width: calc(100% - 280px);
  float: left;
}

.column-isian-margin {
  margin: 0 15px 0 0;
}

.form-group {
  margin-bottom: 2vh;
  overflow: hidden;
  /* Clear floats */
}

.isian-left {
  width: 30%;
  float: left;
}

.isian-right {
  width: 70%;
  float: left;
}

.isian-left label {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 5.5vh;
  line-height: 1.2;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  border-radius: 8px;
  margin: 0 15px 0 0;
  font-size: 14px;
  font-weight: 500;
  height: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.3px;
}

.isian-left label:after {
  content: "";
  border-left: var(--primary-color) 8px solid;
  border-top: transparent 8px solid;
  border-bottom: transparent 8px solid;
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translate3d(0, -50%, 0);
}

.form-control,
select.form-control:not([size]):not([multiple]) {
  display: block;
  width: 100%;
  height: 5.5vh;
  padding: 0 15px;
  font-size: 14px;
  line-height: 1.1;
  color: var(--text-dark);
  background-color: rgba(255, 255, 255, 0.9);
  background-image: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Force Select2 to match form-control height */
.select2-container .select2-selection--single {
  height: 5.5vh !important;
  min-height: 5.5vh !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal !important;
  color: #555 !important;
  font-size: 14px;
  padding-left: 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  margin-top: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  position: absolute !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  /* Fix width */
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  margin-top: 0 !important;
}

.form-control:focus {
  border-color: #919191;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.form-control::-moz-placeholder {
  color: #313131;
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: #313131;
}

.form-control::-webkit-input-placeholder {
  color: #313131;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
  cursor: not-allowed;
  background-color: #fff;
  opacity: 1;
}

textarea.form-control {
  height: auto;
}

.isian-left label {
  position: relative;
  display: flex;
  /* Use flexbox for vertical centering */
  align-items: center;
  /* Center text vertically */
  min-height: 6vh;
  /* Minimum height to match inputs */
  line-height: 1.2;
  /* Tight line spacing for wrapping text */
  background: #004093;
  color: #fff;
  padding: 5px 10px;
  /* Slight padding adjustment */
  border-radius: 5px;
  margin: 0 15px 0 0;
  font-size: 14px;
  /* Standardized */
  height: auto;
  /* Allow height to adjust if text wraps */
}

/* label arrow restored in main block */

.box-camera {
  position: relative;
}

.ambil {
  position: absolute;
  left: 0;
  right: 0;
  top: -8vh;
  z-index: 2;
  margin-top: -2px;
  display: flex !important;
  justify-content: center !important;
}

#camera {
  width: 100%;
  height: 250px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px dashed rgba(27, 94, 32, 0.4);
  border-radius: 12px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: 500;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

#camera:before {
  content: '';
  display: block;
  width: 150px;
  height: 150px;
  background-image: url('camera_new.png?v=3');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.6;
  position: absolute;
  border-radius: 10px;
}

/* Hide the camera icon when the webcam is actively streaming */
#camera.is-live:before {
  display: none !important;
}

.ambil:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -9px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--primary-color);
  /* matching badge color */
}

.ambil p {
  font-size: 100%;
  margin: 0 auto;
  padding: 0;
  width: 165px;
  line-height: 5.5vh;
  font-weight: 500;
  height: 5.5vh;
  background: var(--primary-color);
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}

.batal {
  background-color: #008494;
  color: #fff;
}

.judul {
  padding-top: 15px;
}

.judul h1 {
  font-size: 120%;
  margin: 0 auto 10px;
  padding: 0;
  line-height: 1.1;
  font-weight: bold;
  text-transform: uppercase;
  color: #009604;
}

.judul p {
  font-size: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  font-weight: normal;
}

.judul h2 {
  font-size: 100%;
  margin: 10px 0 10px;
  padding: 0;
  line-height: 1.1;
  font-weight: bold;
}

.judul h3 {
  font-size: 90%;
  /* Added font-size adjustment for h3 to match smaller logo */
  margin: 0;
  padding: 0;
  line-height: 1.2;
  font-weight: 400;
  color: var(--text-dark);
  /* Explicitly set color */
}

.left-register-image {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 15px;
  /* Slightly lifted from bottom */
  text-align: center;
}

.left-register-image img {
  display: block;
  width: 55%;
  /* Reduced from 80% to make it significantly smaller */
  max-width: 150px;
  /* Added max-width safeguard */
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  /* Added subtle shadow to the image itself */
}

.link-top {
  height: 5vh;
  padding: 0 20px;
  border-radius: 50px;
  margin: 0 0 0 10px;
  line-height: 5vh;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.5px;
  float: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.link-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.hijau1 {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.hijau2 {
  background: linear-gradient(135deg, #00b09b, #96c93d);
}

.hijau3 {
  background: linear-gradient(135deg, #6190E8, #A7BFE8);
}

.kepuasan {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  top: 14vh;
}

.kepuasan-judul {
  width: 100%;
  float: left;
  text-align: center;
  margin: 8vh 0 0;
  height: 6vh;
}

.kepuasan-judul h1 {
  font-size: 100%;
  margin: 0 0;
  padding: 0;
  line-height: 1.1;
  font-weight: bold;
}

.kepuasan-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.withscroll {
  width: 100%;
  float: left;
  overflow-y: scroll;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
  scrollbar-width: thin;
  height: 100%;
}

.withscroll::-webkit-scrollbar {
  width: 5px;
}

.withscroll::-webkit-scrollbar-track {
  background: transparent;
}

.withscroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}

.tanggal {
  position: relative;
  overflow: hidden;
  text-align: right;
  margin: 20px 0 10px;
}

.tanggal p {
  font-size: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  font-weight: normal;
  display: inline-block;
}

.box-kepuasan {
  width: 25%;
  display: inline-block;
  margin: 0 5px;
}

.box-kepuasan-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.box-kepuasan-title {
  position: relative;
  overflow: hidden;
  height: 22vh;
  border: #bdbdbd 1px solid;
  margin: -12vh 0 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.5);
}

.box-kepuasan-nama {
  margin: 12vh auto 0;
  padding: 0;
  line-height: 1.1;
  font-weight: bold;
  height: 10vh;
}

.box-kepuasan-image {
  width: 70%;
  display: block;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 5px;
  margin: 0 auto;
  z-index: 2;
}

.box-kepuasan-image {
  height: 18vh;
}

.box-kepuasan-image img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0 auto;
  object-fit: cover;
  -webkit-transform: translate3d(-50%, -50%, 0);
  -moz-transform: translate3d(-50%, -50%, 0);
  -ms-transform: translate3d(-50%, -50%, 0);
  -o-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
}

.pertanyaan {
  width: 100%;
  float: left;
  margin: 15vh 0 0;
}

.pertanyaan h1 {
  font-size: 140%;
  margin: 0 0 15px;
  padding: 0;
  line-height: 1.1;
  font-weight: bold;
}

.box-jawaban {
  position: relative;
  overflow: hidden;
  padding: 5px;
  border: #bdbdbd 1px solid;
  background: rgba(255, 255, 255, 0.5);
}

.box-jawaban p {
  font-size: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  font-weight: bold;
  color: #000;
}

.jawaban-icon {
  float: left;
  margin: 0 7px 0 0;
}

.jawaban-icon img {
  width: 12vh;
  height: 12vh;
}

/* RESTORED FORM STYLES */
.form-control,
select.form-control:not([size]):not([multiple]) {
  display: block;
  width: 100%;
  height: 6vh;
  padding: 0 10px;
  font-size: 14px;
  line-height: 1.1;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  -webkit-box-sizing: border-box;
  /* Force border-box */
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}

.form-control:focus {
  border-color: #919191;
  outline: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.form-control::-moz-placeholder {
  color: #313131;
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: #313131;
}

.form-control::-webkit-input-placeholder {
  color: #313131;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
  cursor: not-allowed;
  background-color: #fff;
  opacity: 1;
}

textarea.form-control {
  height: auto;
}

/* Force Select2 to match form-control height */
.select2-container .select2-selection--single {
  height: 6vh !important;
  min-height: 6vh !important;
  /* Ensure min-height is also set */
  border: 1px solid #bdbdbd !important;
  border-radius: 5px !important;
  box-sizing: border-box !important;
  /* Match form-control */
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: normal !important;
  color: #555 !important;
  font-size: 14px;
  padding-left: 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  margin-top: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  position: absolute !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  /* Fix width */
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  margin-top: 0 !important;
}

/* FIX MOBILE OVERFLOW: Force Select2 Container to 100% Width */
.select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* WhatsApp Custom Styling to match reference image */
.btn-wa-custom {
  background-color: #075E54 !important;
  /* Official WhatsApp Dark Teal */
  border-color: #075E54 !important;
  color: #ffffff !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  font-weight: bold !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.btn-wa-custom:hover {
  background-color: #128C7E !important;
  /* Official WhatsApp Light Teal */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.btn-wa-custom i {
  margin-right: 5px !important;
}

/* Reduce school logo size further based on user request */
.header-home-logo img {
  max-height: 55px !important;
  width: auto !important;
  margin-right: 15px;
}