html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-bottom: 20px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Footer Styles */
.ubuk-footer {
  background-color: #2b2b2b;
  background-image: url('../images/footer-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #999;
  padding-top: 50px;
  padding-bottom: 20px;
  width: 100%;
  margin-top: 30px;
  min-height: 505px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.5fr 3.5fr;
  gap: 50px;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-top-row .footer-section {
  position: relative;
  padding-right: 40px;
}

.footer-top-row .footer-section:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #444;
}

.footer-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-top: 30px;
}

.footer-section h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #70be54;
}

/* Footer Brand Section */
.footer-brand .footer-logo {
  margin-bottom: 15px;
}

.footer-logo-image {
  width: 85px;
  height: auto;
}

.footer-brand .logo-ubuk {
  color: #70be54;
  font-size: 32px;
  font-weight: bold;
  display: block;
  line-height: 1;
}

.footer-brand .logo-tagline {
  color: #999;
  font-size: 12px;
  font-style: italic;
  display: block;
}

.footer-company-info {
  color: #999;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-company-details {
  font-size: 11px;
  line-height: 1.7;
}

.footer-company-details p {
  margin: 4px 0;
}

.footer-social {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social span {
  color: #999;
  font-size: 11px;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: #444;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.footer-social .social-link:hover {
  background-color: #70be54;
}

/* Footer Payment Section */
.footer-payment h4,
.footer-certification h4 {
  margin-top: 0;
  margin-bottom: 20px;
}

.payment-logos,
.certification-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.payment-logos img,
.certification-logos img {
  width: 95px;
  height: auto;
  object-fit: contain;
}

/* Footer Copyright */
.footer-copyright {
  width: 100%;
  padding: 20px 15px 0;
  border-top: 1px solid #444;
  text-align: center;
  background-color: #2b2b2b;
}

.footer-copyright p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

/* Go to Top Button */
.go-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #70be54;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
  z-index: 999;
}

.go-to-top:hover {
  background-color: #5da045;
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.go-to-top.show {
  display: flex;
}

.go-to-top .arrow-up {
  font-size: 24px;
  font-weight: bold;
}

/* Loading Screen */
.ubuk-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #70be54e6;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  width: 150px;
  height: auto;
  animation: fadeInOut 3s infinite;
}

.loading-text {
  color: white;
  font-size: 16px;
  margin-top: 20px;
  font-weight: 500;
}

@keyframes fadeInOut {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-top-row {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-bottom-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-bottom-row {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .go-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
  
  .go-to-top .arrow-up {
    font-size: 20px;
  }
}

/* Login Modal */
.login-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.login-modal-content {
  background-color: #fff;
  margin: 5% auto;
  width: 90%;
  max-width: 450px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-modal-header {
  background-color: #70be54;
  padding: 20px;
  text-align: center;
  position: relative;
  border-radius: 8px 8px 0 0;
}

.login-logo {
  height: 50px;
  width: auto;
}

.login-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-close:hover {
  opacity: 0.7;
}

.login-modal-body {
  padding: 30px;
}

.login-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 25px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

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

.login-form .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.login-form .form-control:focus {
  outline: none;
  border-color: #70be54;
  box-shadow: 0 0 0 0.2rem rgba(112, 190, 84, 0.25);
}

.login-form .form-check {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.login-form .form-check-input {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
}

.login-form .form-check-label {
  color: #666;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 0;
}

.btn-login-b2b {
  width: 100%;
  padding: 12px;
  background-color: #70be54;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 15px;
}

.btn-login-b2b:hover {
  background-color: #5da945;
}

.login-links {
  text-align: center;
  font-size: 14px;
}

.login-links a {
  color: #70be54;
  text-decoration: none;
  transition: color 0.3s;
}

.login-links a:hover {
  color: #5da945;
  text-decoration: underline;
}

.login-links .separator {
  margin: 0 10px;
  color: #ccc;
}

/* Account Button */
.btn-account {
  background: none;
  border: 1px solid #70be54;
  color: #70be54;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
}

.btn-account:hover {
  background-color: #70be54;
  color: white;
}

.account-icon {
  font-size: 18px;
}

@media (max-width: 768px) {
  .login-modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .login-modal-body {
    padding: 20px;
  }
  
  .login-title {
    font-size: 20px;
  }
}


/* Service fee checkbox in stepper */
.progress-stepper {
    position: relative;
}

.stepper-right-action {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}

.stepper-right-action input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
