:root {
  --primary: #74c0fc;       /* biru muda */
  --primary-dark: #4dabf7;  /* biru muda lebih gelap */
  --secondary: #00cec9;
  --danger: #ff7675;
  --success: #00b894;
  --warning: #fdcb6e;
  --dark: #2d3436;
  --light: #f5f6fa;
  --gray: #dfe6e9;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light);
  color: var(--dark);
  transition: all 0.3s ease;
}


.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  transition: all 0.3s ease;
}


.navbar.scrolled {
  height: 60px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-title {
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  flex-grow: 1;
}

.navbar-right {
  display: flex;
  align-items: center;
}

.navbar button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  transition: transform 0.2s ease;
}

.navbar button:hover {
  transform: scale(1.1);
}

.logo {
  height: 35px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: all 0.3s ease;
}

section {
  max-width: 600px;
  margin: 100px auto 40px;
  background-color: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.5s forwards 0.2s;
  transition: all 0.3s ease;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.form-header {
  text-align: center;
  margin-bottom: 25px;
}

.form-header img {
  height: 80px;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: all 0.3s ease;
}

.form-header img:hover {
  transform: translateY(-5px);
}

.form-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 5px;
}

.form-subtitle {
  font-size: 14px;
  color: #666;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

input, select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid var(--gray);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
  background-color: white;
}

input[readonly] {
  background-color: #f0f0f0;
  color: #666;
  cursor: not-allowed;
}

.btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 14px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

.hidden {
  display: none;
}

#warningMessage {
  background-color: var(--danger);
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  animation: shake 0.5s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

#warningMessage p {
  margin: 0;
  font-size: 14px;
}

#warningMessage button {
  background-color: white;
  color: var(--danger);
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 20px;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.3s ease;
}

#warningMessage button:hover {
  background-color: rgba(255,255,255,0.9);
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-method {
  flex: 1;
  border: 1px solid var(--gray);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
}

.payment-method:hover {
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.payment-method.selected {
  border: 2px solid var(--primary);
  background-color: rgba(108, 92, 231, 0.05);
}

.payment-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.payment-name {
  font-size: 12px;
  font-weight: 500;
}

.price-option {
  padding: 12px 15px;
  margin-bottom: 10px;
  border: 1px solid var(--gray);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
  display: flex;
  justify-content: space-between;
}

.price-option:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.price-option.selected {
  border: 2px solid var(--primary);
  background-color: rgba(108, 92, 231, 0.05);
}

.price-label {
  font-weight: 500;
}

.price-value {
  font-weight: 600;
  color: var(--primary);
}

.floating-label {
  position: relative;
  margin-bottom: 25px;
}

.floating-label input, .floating-label select {
  margin-bottom: 0;
}

.floating-label label {
  position: absolute;
  top: 12px;
  left: 15px;
  color: #999;
  transition: all 0.3s ease;
  pointer-events: none;
  background-color: #f9f9f9;
  padding: 0 5px;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]) + label {
  top: -10px;
  left: 10px;
  font-size: 12px;
  color: var(--primary);
  background-color: white;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* New styles for QRIS section */
#qrisSection {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  border: 1px dashed var(--primary);
  border-radius: 8px;
  background-color: rgba(108, 92, 231, 0.05);
  display: none;
}

#qrisImage {
  max-width: 200px;
  margin: 10px auto;
  display: block;
}

#countdown {
  font-size: 14px;
  color: var(--primary);
  margin: 10px 0;
  font-weight: 500;
}

.download-btn {
  background-color: var(--success);
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background-color: #00a884;
}