* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  /* background: linear-gradient(135deg, #b2b99e 0%, #d4c4a8 100%); */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #5a4a3a;
}

header {
  height: 5rem;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  align-content: center;
  position: sticky;
}

header.narrow {
  grid-template-columns: 1fr 4fr;
}

.header-left {
  padding: 0 2rem;
  background-color: #b2b9a0;
  height: 5rem;
  align-content: center;
  border-right: 4px dashed #8b7355;
}

.top-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.menu-dropdown-item {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 15px;
  margin-bottom: 15px;
  border: 2px solid rgba(139, 115, 85, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  align-items: center;
}

.button-group .btn {
  padding: 16px 32px !important;
  margin-top: 0 !important;
}

.btn {
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:disabled {
  background: #d4c4a8 !important;
  border-color: #d4c4a8 !important;
  cursor: not-allowed;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 74, 58, 0.3);
}

.btn:focus {
  outline-offset: 2px;
}

.primary-btn {
  padding: 16px 32px;
  background: #8b7355;
  color: white;
  border: none;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.primary-btn:hover {
  background: #6a5545;
}

.primary-btn:focus {
  outline: 3px solid #5a4a3a;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.3) !important;
  border: 2px solid #8b7355 !important;
  color: #5a4a3a !important;
  padding: 8px 16px;
  font-size: 14px;
}

.secondary-btn:hover {
  background: rgba(140, 115, 85, 0.7) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.secondary-btn.active {
  background: #8b7355 !important;
  color: #fff !important;
}

.btn-group {
  display: none;
  position: relative;
  top: 3rem;
  right: 0;
  flex-direction: column;
  top: 0;
  padding: 0.5rem 0;
}

.btn-group .btn {
  margin: 0.2rem;
}

/* Form Styles */
input[type='text'],
input[type='email'],
input[type='tel'],
textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #8b7355;
  border-radius: 0.8rem;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: #5a4a3a;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #5a4a3a;
  background: white;
}

input::placeholder {
  color: #9a8a7a;
}

.delivery-option:has(input[type='radio']:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

main {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  align-items: center;
  text-align: center;
  height: calc(100vh - 5rem);
}

main.narrow {
  grid-template-columns: 1fr 4fr;
  overflow: hidden;
}

.narrow .left-side {
  position: sticky;
  top: 0;
  height: calc(100vh - 5rem);
  overflow: hidden;
}

.left-side {
  background-color: #b2b9a0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-right: 4px dashed #8b7355;
}

.icon-container {
  height: 100%;
  align-content: center;
}

.mushroom-icon {
  font-size: 80px;
  margin: 0 auto;
  animation: float 3s ease-in-out infinite;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-image: url('./icon.png');
  background-size: contain;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.right-side {
  height: 100%;
  align-content: center;
  padding: 0rem 0 4rem 4rem;
  text-align: left;
}

.narrow .right-side {
  padding: 0 2rem;
  overflow-y: auto;
}

h1 {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 700;
  color: #5a4a3a;
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.subtitle {
  font-size: clamp(18px, 3vw, 24px);
  color: #7a6a5a;
  margin-bottom: 20px;
  max-width: 600px;
  line-height: 1.6;
}

.email-input {
  flex: 1;
  max-width: 250px;
  border-radius: 2rem !important;
}

footer {
  padding: 30px 20px;
  text-align: center;
  color: #7a6a5a;
  font-size: 14px;
}

.mobile-footer {
  display: none;
}

h3 {
  padding: 1rem;
}

.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.social-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid #8b7355;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a4a3a;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: #8b7355;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(90, 74, 58, 0.3);
}

.social-btn:focus {
  outline: 3px solid #5a4a3a;
  outline-offset: 2px;
}

.success-message {
  display: none;
  margin-top: 20px;
  padding: 15px 25px;
  background: rgba(139, 115, 85, 0.2);
  border-radius: 20px;
  color: #5a4a3a;
  font-weight: 500;
}

.error-message {
  background: rgba(200, 100, 100, 0.2);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #8b4545;
  border-left: 4px solid #c86464;
  display: none;
}

.show {
  display: block !important;
}

.show-flex {
  display: flex !important;
}

/* Box specific styles */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9a8a7a;
  font-weight: 600;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid #9a8a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.step.active {
  color: #5a4a3a;
}

.step.active .step-number {
  background: #8b7355;
  color: white;
  border-color: #8b7355;
}

.card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 30px;
  border: 2px solid rgba(139, 115, 85, 0.3);
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  font-weight: 600;
  color: #5a4a3a;
  margin-bottom: 8px;
  font-size: 16px;
  text-align: left;
}

.info-message {
  background: rgba(178, 185, 158, 0.3);
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #5a4a3a;
  border-left: 4px solid #b2b99e;
}

.product-box {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 30px;
}

.product-image {
  width: 200px;
  height: 200px;
  background: rgba(178, 185, 158, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  border: 2px solid rgba(139, 115, 85, 0.3);
}

.product-details h3 {
  font-size: 24px;
  color: #5a4a3a;
  margin-bottom: 10px;
}

.price {
  font-size: 32px;
  font-weight: 700;
  color: #8b7355;
  margin-bottom: 15px;
}

.product-includes {
  margin-top: 15px;
}

.product-includes h4 {
  font-size: 16px;
  color: #5a4a3a;
  margin-bottom: 10px;
}

.product-includes ul {
  list-style: none;
  padding-left: 0;
}

.product-includes li {
  padding: 6px 0;
  color: #7a6a5a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-includes li:before {
  content: '🍄';
  font-size: 14px;
}

.delivery-option {
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #8b7355;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delivery-option:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(5px);
}

.delivery-option.selected {
  background: rgba(178, 185, 158, 0.4);
  border-color: #5a4a3a;
}

.delivery-option input[type='radio'] {
  margin-right: 12px;
}

.delivery-option-title {
  font-weight: 600;
  color: #5a4a3a;
  margin-bottom: 5px;
  font-size: 18px;
}

.delivery-option-desc {
  color: #7a6a5a;
  font-size: 14px;
  margin-left: 28px;
}

.location-form {
  display: none;
}

.order-summary {
  background: rgba(178, 185, 158, 0.3);
  padding: 25px;
  border-radius: 12px;
  margin-top: 30px;
}

.order-summary h3 {
  font-size: 20px;
  color: #5a4a3a;
  margin-bottom: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #5a4a3a;
}

.summary-row.total {
  font-weight: 700;
  font-size: 20px;
  border-top: 2px solid #8b7355;
  margin-top: 10px;
  padding-top: 15px;
}

@media (max-width: 820px) {
  header {
    display: block;
  }

  .header-left {
    display: none;
    border: unset;
  }

  main {
    grid-template-columns: unset !important;
  }

  .narrow .left-side {
    position: sticky;
    height: 170px;
    overflow: unset;
  }

  .left-side {
    background-color: unset;
    border: unset;
    z-index: -1;
  }

  .top-buttons {
    top: 10px;
    right: 10px;
  }

  .mushroom-icon {
    font-size: 60px;
    width: 110px;
    height: 110px;
  }

  .right-side {
    align-content: unset;
    padding: 1rem 2rem 2rem 2rem !important;
    text-align: center;
  }

  .email-input {
    min-width: 100%;
  }

  footer {
    display: none;
  }

  .mobile-footer {
    display: block;
    position: relative;
    background-color: #b2b9a0;
    bottom: 0;
    width: 100%;
    padding: 20px 0;
  }

  /* Box specific styles */
  .product-box {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-image {
    margin: 0 auto;
  }

  .button-group {
    flex-direction: column;
  }

  .step-indicator {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .card {
    padding: 25px;
  }

  .product-includes ul {
    text-align: left;
  }

  .summary-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px;
  }
}
