/* Hamburger menu hidden on larger screens */
.hamburger-menu {
  display: none;
}

/* Reset Password Form Styles */
.reset-password-form {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reset-password-form h2 {
  text-align: center;
  color: #0C7489;
  margin-bottom: 20px;
}

.reset-password-form .form-group {
  margin-bottom: 15px;
}

.reset-password-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.reset-password-form button {
  width: 100%;
  padding: 12px;
  background-color: #0C7489;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.reset-password-form button:hover {
  background-color: #095e6f;
}

.forgot-password-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #0C7489;
  text-decoration: underline;
  cursor: pointer;
}


  .container {
    padding: 40px;
  }
  
  .hamburger-menu {
    display: none;
  }

  .auth-links {
    display: flex;
    font-size: 16px;
    gap: 15px;
  }

  .auth-links .desktop-text {
    display: inline;
  }

  .auth-links .mobile-text {
    display: none;
  }


/* Tablet-specific styles (769px-1760px) */
@media only screen and (min-width: 769px) and (max-width: 1760px) {
  /* Limit logo size on tablet screens */
  .logo-container img {
    max-height: 70px;
    width: auto;
  }
  
  /* Move main container down to prevent overlap with header */
  .container {
    padding-top: 100px;
    margin-top: 60px;
  }
  
  /* Adjust body padding for tablet view */
  body {
    padding-top: 60px;
  }
}

@media only screen and (max-width: 768px) {
  /* Adjust heading sizes for mobile */
  h1 {
    font-size: 1.2em !important; /* Override any other styles */
  }

  h2 {
    font-size: 1.1em !important;
  }

  /* Ensure header and nav are above everything */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9995;
    background: #fff;
  }

  nav {
    position: fixed;
    z-index: 9998;
  }

  /* Adjust the header layout to stack logo and hamburger menu */
  /* Show the hamburger menu only on small screens */

  /* Hamburger menu should be highest */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 9997;
    margin-left: 20px;
    order: 1; /* Move to start */
    position: relative;
  }

  /* Header container should be just below hamburger */
  header .header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 15px 25px;
    width: 75%;
    z-index: 9999;
  }

  /* Show the 3 bars (hamburger icon) */
  .hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #040404;
    border-radius: 2px;
    margin: 3px 0;
  }

  /* Base content should have lowest z-index */
  .main-content {
    z-index: 1;
  }

  /* Regular content elements */
  .container, 
  .section,
  .tab-content {
    z-index: 1;
  }

  /* Auth links should be very high, but below left-nav */
  .auth-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9997; /* High, but below left-nav */
    gap: 0;
  }

  .auth-links a {
    padding: 12px 24px;
    text-decoration: none;
    color: #333;
    font-size: 0.95em;
    transition: all 0.2s ease;
    border-radius: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;  /* Remove any borders */
  }

  /* Show mobile text, hide desktop text */
  .auth-links .desktop-text {
    display: none;
  }

  .auth-links .mobile-text {
    display: inline;
  }

  .auth-links a:hover {
    background-color: rgba(12, 116, 137, 0.1);
    color: #0C7489;
  }

  .auth-links a:not(:last-child) {
    margin-bottom: 4px;
    border: none;  /* Remove any borders */
  }

  .auth-links span {
    border: none;  /* Remove any borders */
  }

  /* Show auth links when hamburger menu is clicked */
  .auth-links.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  /* Add a subtle animation when opening */
  .auth-links:not(.active) {
    transform: translateX(-50%) translateY(-10px);
  }

  /* Left nav should have highest z-index */
  .left-nav {
    z-index: 9999;
  }

  .logo-container {
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
    order: 2; /* Move to end */
  }

  /* Adjust the logo size for mobile */
  .logo-container img {
    width: 140px;
    height: auto;
  }

  /* Body padding for mobile */
  body {
    padding-top: 60px;
  }

  /* Mobile Button Adjustments */
  button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 12px 20px;
  }

  /* Container adjustments for mobile */
  .container {
    width: 100%;
    padding: 10px;
    margin-top: 40px;
  }

  /* Hide registration container after submission */
  .container.hidden {
    display: none;
  }

  /* Adjust spacing for mobile */
  .text-container {
    padding: 0 15px;
    margin-bottom: 20px;
  }

  /* Form adjustments for mobile */
  .form-group {
    padding: 0 15px;
  }

  input[type="text"] {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  /* Ensure proper spacing between sections */
  section {
    margin-bottom: 30px;
  }

  /* Service Selection Mobile Styles */
  #service-selection-section .container {
    width: 100%;
    padding: 8px;
    margin-top: 0;
  }

  #service-selection-section {
    margin-top: -20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
  }

  .service-div {
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .service-div h3 {
    font-size: 1em;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #0C7489;
    color: #333;
  }

  .features-list {
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    color: #28a745;
    gap: 6px;
  }

  .feature-item {
    padding: 4px 6px;
    margin-bottom: 0;
    font-size: 0.85em;
    min-height: 32px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }

  .feature-item i {
    color: #28a745;
    font-size: 0.9em;
    min-width: 12px;
  }

  .price-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .price-options > div {
    flex: 1;
    min-width: calc(33.33% - 4px);
    padding: 6px;
    font-size: 0.85em;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }

  .price-options .original-price {
    color: #666;
    font-size: 0.85em;
  }

  .price-options .discount {
    color: #28a745;
    font-weight: 600;
    font-size: 0.95em;
  }

  .price-options .total-price {
    font-weight: 600;
    color: #333;
    font-size: 1em;
    margin-top: 3px;
  }
}

/* Transition for container hiding/showing */
.container {
  transition: opacity 0.3s ease;
}

.container.hidden {
  opacity: 0;
  pointer-events: none;
}