html,
:host {
  font-family: Noto Sans, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem;
  --tw-bg-opacity: 1;
  background: rgb(241 245 249 / var(--tw-bg-opacity));
  background-repeat: no-repeat;
  background-size: cover;
}

.rtl {
  direction: rtl;
  text-align: right;
}

.rtl input[type="tel"] {
  direction: rtl;
  text-align: right;
}

.ltr {
  direction: ltr;
  text-align: left;
}

.header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
}

.header h2 {
  margin-block: 0;
  color: black;
}

.header h3 {
  margin-block: 0;
  margin-bottom: 0.5rem;
  color: #bfdbfe;
}

.title {
  color: black;
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo-img {
  width: 3rem;
  height: 3rem;
  margin-right: 0.5rem;
  color: black;
}

.button {
  width: 100%;
  color: white;
  background-color: black;
  font-weight: 600;
  border-radius: 0.5rem;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  text-align: center;
  border-color: transparent;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.button:hover {
  background-color: #111827;
}

.button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #374151;
}

.input-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.input-field {
  font-family: Noto Sans, Arial, sans-serif;
  background-color: #dbeafe;
  border: 1px solid #d1d5db;
  color: black;
  caret-color: #dbeafe;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  display: block;
  width: 100%;
  padding: 0.625rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
  border: none;
  box-shadow: inset 0 0 0 1.5px #ffffff, 0 0 0 1.5px #172554;
  outline: none;
  caret-color: #dbeafe;
}

.input-field::placeholder {
  color: #93c5fd;
  opacity: 0.7;
}

.loader-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}

.loader {
  width: 50px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
  --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {
  to {
    transform: rotate(1turn);
  }
}

/* Sidebar styles */
.sidenav {
  height: 100%;
  width: 250px;
  position: fixed;
  top: 0;
  left: -250px; /* Initially hidden off-screen */
  background-color: #fff;
  color: black;
  overflow-x: hidden;
  transition: left 0.3s ease;
  padding: 20px;
}

.sidenav-open-btn {
  font-size: 30px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  position: absolute;
  top: 20px;
  left: 20px;
}

/* Close button */
.sidenav-close-btn {
  justify-content: flex-end !important;
}

.sidenav-close-btn:hover {
  font-size: 1.5rem !important;
}

.language-container {
  padding-left: 0.25rem;
}

.sidenav-btn {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  background: none;
  border: none;
  font-size: 1rem;
  padding-block: 0.5rem;
  text-align: justify;
  cursor: pointer;
}

.sidenav-btn svg {
  width: 1rem;
  height: 1rem;
}

.sidenav.open {
  left: 0; /* Slide the sidenav in */
  z-index: 10;
}

/* On large screens, the sidenav pushes content */
@media (min-width: 768px) {
  .main-content {
    margin-left: 250px; /* Push content when sidenav is visible */
  }

  .sidenav {
    left: 0; /* Show sidenav on large screens */
  }

  .sidenav-open-btn {
    display: none; /* Hide the open button on large screens */
  }

  .sidenav-close-btn {
    display: none !important;
  }
}

/* On small screens, the sidenav overlaps */
@media (max-width: 767px) {
  .main-content.open {
    margin-left: 0;
    pointer-events: none; /* Block interaction with main content */
  }

  .sidenav-open-btn {
    display: block; /* Show the open button on small screens */
  }
}

.hidden {
  display: none;
}


/* Footer styles */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.terms-button {
  background: transparent;
  border: none;
  color: black;
  font-size: 0.875rem; /* Slightly smaller font for mobile */
  cursor: pointer;
  padding: 3.5rem 1rem;
  font-weight: 500;
  font-family: Noto Sans, Arial, sans-serif;
  /* Add touch-friendly tap target */
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Terms modal styles */
.terms-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem; /* Add padding for mobile */
}

.terms-modal-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  width: 90%; /* Adjust width for mobile */
  max-width: 600px; /* Maximum width on larger screens */
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  margin: auto; /* Center content */
}

.terms-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  position: sticky; /* Keep header visible when scrolling */
  top: 0;
  background-color: white;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.terms-modal-title {
  margin: 0;
  font-size: 1.25rem; /* Slightly smaller on mobile */
  font-weight: 600;
}

.terms-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px; /* Touch-friendly size */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terms-modal-body {
  line-height: 1.5;
  padding: 0.5rem 0;
}


/* RTL support */
.rtl .terms-modal-content {
  text-align: right;
}

@media (max-width: 768px) {
  .footer {
    bottom: 0;
    padding: 0.5rem;
    height: 56px; /* Fixed height for mobile */
  }

  .terms-button {
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
  }
}
  
