/* Mobile Responsive Fixes for PluggedIn.studio */

/* Navigation button alignment - apply always */
.flex.items-center.space-x-4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* General responsive fixes */
@media (max-width: 768px) {
  /* Header/Navigation fixes */
  .nav-container {
    padding: 0.75rem 1rem;
  }
  
  .logo-container img {
    height: 24px !important;
    margin-right: 0.5rem;
  }
  
  .nav-buttons {
    gap: 0.5rem;
  }
  
  .nav-buttons button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  /* Hero section fixes */
  .hero-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Search form fixes */
  .search-container {
    margin-top: 1.5rem;
    padding: 0.75rem;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .search-form > div {
    width: 100%;
    min-width: 0;
  }
  
  .search-input {
    width: 100%;
    height: 40px;
    font-size: 14px;
    padding: 0 10px;
  }
  
  .search-button {
    width: 100%;
    margin-top: 0.5rem;
    height: 44px;
  }
  
  /* Fix search date boxes */
  .check-in-out-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  
  .search-date-input {
    font-size: 13px;
    padding: 6px;
    height: 40px;
  }
  
  /* Filter tag fixes */
  .filter-tags {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .filter-tag {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  
  /* Featured Studios Section fixes */
  .category-filters {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
  }
  
  .studio-card {
    min-width: 260px;
    max-width: 85vw;
  }
  
  /* Fix content overflow */
  body {
    overflow-x: hidden;
  }
}

/* Fix piano key search interface */
@media (max-width: 768px) {
  /* Piano keyboard search interface fixes */
  .flex.items-end.bg-black.rounded-lg {
    flex-direction: column;
    padding: 1rem;
  }
  
  /* Make white keys stack on mobile */
  .flex.flex-1 {
    flex-direction: column;
    width: 100%;
  }
  
  /* Fix each piano key */
  .piano-key {
    width: 100% !important;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    z-index: 5;
  }
  
  /* Ensure black piano keys display properly */
  .black-key-container {
    display: none; /* Hide on mobile as they cause obstruction */
  }
  
  /* Improve button clickability */
  button, a, .beta-access-btn, input, select {
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
    cursor: pointer;
  }
}

/* Small phone fixes */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .search-container {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  
  .filter-tag {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  
  /* Registration form mobile fixes */
  #registerModal .bg-white {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  #registerModal h2 {
    font-size: 1.5rem;
  }
  
  #registerModal .form-step h3 {
    font-size: 1.25rem;
  }
  
  #registerModal .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Registration form fixes for all screen sizes */
.max-h-90vh {
  max-height: 90vh;
}

#formProgressBar {
  width: 33%; /* Default starting width */
}

/* Improved form step animations */
.form-step {
  transition: opacity 0.3s ease-in-out;
}

.form-step.hidden {
  display: none;
  opacity: 0;
}

.form-step.active-step {
  display: block;
  opacity: 1;
}
