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-bottom: 60px;
}

.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;
}

/* Welcome Modal for First-Time Visitors */
.cge-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cge-modal-backdrop.active {
  opacity: 1;
}

.cge-welcome-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  max-width: 440px;
  width: 90%;
  z-index: 9999;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cge-welcome-modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cge-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.cge-modal-close:hover {
  color: #333;
}

.cge-modal-icon {
  font-size: 3rem;
  color: #1a237e;
  margin-bottom: 0.5rem;
}

.cge-welcome-modal h3 {
  color: #1a237e;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.cge-welcome-modal p {
  color: #555;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cge-modal-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cge-modal-buttons .btn {
  flex: 1;
  min-width: 140px;
}

.cge-modal-dismiss {
  font-size: 0.85rem;
  text-decoration: none;
}

.cge-modal-dismiss:hover {
  text-decoration: underline;
}