/* Polaroid Stack Carousel Styles */

.polaroid-stack-container {
  position: relative;
  perspective: 1200px;
  user-select: none;
}

.polaroid-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.polaroid {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s cubic-bezier(.4,2,.6,1), z-index 0.3s, box-shadow 0.3s, opacity 0.3s;
  cursor: pointer;
  overflow: hidden;
}

.polaroid img {
  object-fit: cover;
}

.polaroid-stack-nav {
  position: absolute;
  top: 50%;
  left: -48px;
  right: -48px;
  display: flex;
  justify-content: space-between;
  width: calc(100% + 96px);
  z-index: 100;
  pointer-events: none;
}

.polaroid-stack-nav button {
  pointer-events: auto;
  transition: background 0.2s;
}

/* Star Rating Styles */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    gap: 0.25rem;
}
.star-rating input {
    display: none;
}
.star-rating label {
    color: #ddd;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    transition: color 0.2s;
    text-shadow: 1px 1px 2px #bbb;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #779641;
}

/* Inline with label */
#star-rating-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 600px) {
  .polaroid-stack-container {
    width: 98vw;
    height: 60vw;
    min-height: 220px;
    max-width: 98vw;
  }
  .polaroid {
    width: 60vw;
    height: 56vw;
    min-width: 160px;
    min-height: 180px;
    max-width: 98vw;
    max-height: 70vw;
  }
}

/* Navbar Mobile Fixes */
#main-navbar {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

#main-navbar img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Prevent mobile viewport issues */
@supports (-webkit-touch-callout: none) {
    #main-navbar {
        position: -webkit-sticky;
        position: sticky;
    }
}

/* Form Input Styling - Consistent Green Theme */
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1.5px solid #bbf7d0;
    border-radius: 0.375rem;
    font-size: 1rem;
    color: #14532d;
    background: #f6fef8;
    transition: border 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #779641;
    box-shadow: 0 0 0 2px rgba(119, 150, 65, 0.2);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(51, 101, 35, 0.6);
}

.form-checkbox {
    width: 1rem;
    height: 1rem;
    color: #779641;
    border: 1.5px solid #bbf7d0;
    border-radius: 0.25rem;
    background: #f6fef8;
}

.form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(119, 150, 65, 0.2);
}

/* Dark mode support */
.dark .form-input, .dark .form-textarea, .dark .form-select {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.dark .form-input:focus, .dark .form-textarea:focus, .dark .form-select:focus {
    border-color: #779641;
    box-shadow: 0 0 0 2px rgba(119, 150, 65, 0.2);
}

.dark .form-checkbox {
    background: #1f2937;
    border-color: #374151;
}

