/* ============================================
   Houzz Mood - Fully Responsive Popup Styles
   Mobile First Design
   ============================================ */

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0A0A0F;
  color: #FFFFFF;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Main content styles */
.main-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  max-width: 100%;
  width: 100%;
  padding: 1rem;
}

/* Responsive Logo */
.logo {
  font-size: clamp(1.8rem, 8vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.logo .houzz {
  color: #FFFFFF;
}

.logo .mood {
  color: #D4AF37;
}

.tagline {
  font-size: clamp(0.8rem, 3vw, 1rem);
  color: #9CA3AF;
  margin-bottom: 1rem;
}

/* Responsive Headings */
h1 {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFFFFF, #D4AF37);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.3;
}

/* Features Grid - Responsive */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.feature {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: clamp(0.75rem, 2.5vw, 0.9rem);
  border: 1px solid rgba(212, 175, 55, 0.3);
  white-space: nowrap;
}

.feature i {
  color: #D4AF37;
  margin-right: 0.5rem;
}

/* Responsive Button */
.btn {
  background: linear-gradient(95deg, #D4AF37, #F59E0B);
  color: #0A0A0F;
  padding: clamp(0.8rem, 3vw, 1rem) clamp(1.5rem, 5vw, 2rem);
  border: none;
  border-radius: 3rem;
  font-weight: 700;
  cursor: pointer;
  font-size: clamp(0.9rem, 3vw, 1rem);
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

/* ========== RESPONSIVE POPUP OVERLAY ========== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s ease;
  padding: 1rem;
}

.popup-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Responsive Popup Container */
.popup-container {
  background: #111217;
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* Custom Scrollbar for Popup */
.popup-container::-webkit-scrollbar {
  width: 5px;
}

.popup-container::-webkit-scrollbar-track {
  background: #1E1E2A;
  border-radius: 10px;
}

.popup-container::-webkit-scrollbar-thumb {
  background: #D4AF37;
  border-radius: 10px;
}

.popup-overlay.active .popup-container {
  transform: scale(1);
}

/* Popup Header - Responsive */
.popup-header {
  background: linear-gradient(135deg, #1A1A24 0%, #0F0F14 100%);
  padding: clamp(1rem, 4vw, 1.3rem) clamp(1rem, 5vw, 1.8rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.popup-header h3 {
  font-weight: 700;
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
}

.popup-header h3 i {
  color: #D4AF37;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
}

/* Close Button */
.close-popup {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #9CA3AF;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  width: clamp(30px, 8vw, 34px);
  height: clamp(30px, 8vw, 34px);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-popup:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #D4AF37;
  transform: rotate(90deg);
}

/* Popup Body - Responsive Padding */
.popup-body {
  padding: clamp(1.2rem, 5vw, 1.8rem) clamp(1.2rem, 5vw, 1.8rem) clamp(1.5rem, 6vw, 2rem);
}

/* Brand Badge */
.brand-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 1.2rem;
}

.brand-badge .houzz {
  font-size: clamp(1rem, 4vw, 1.2rem);
  font-weight: 700;
  color: #FFFFFF;
}

.brand-badge .mood {
  font-size: clamp(1rem, 4vw, 1.2rem);
  font-weight: 700;
  color: #D4AF37;
}

/* Input Groups - Responsive */
.input-group {
  margin-bottom: clamp(1rem, 4vw, 1.3rem);
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: clamp(0.7rem, 2.5vw, 0.8rem);
  font-weight: 600;
  color: #D4AF37;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-group label i {
  font-size: clamp(0.8rem, 3vw, 0.9rem);
}

.required-star {
  color: #F59E0B;
}

/* Responsive Input Fields */
.input-group input,
.input-group select,
.input-group textarea {
  font-family: 'Inter', sans-serif;
  background: #1E1E2A;
  border: 1.5px solid #2A2A35;
  border-radius: clamp(0.7rem, 3vw, 0.8rem);
  padding: clamp(0.7rem, 3vw, 0.85rem) clamp(0.8rem, 3vw, 1rem);
  font-size: clamp(0.85rem, 3vw, 0.95rem);
  color: #FFFFFF;
  transition: all 0.25s ease;
  width: 100%;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.input-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23D4AF37' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
}

.input-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Submit Button - Responsive */
.submit-btn {
  background: linear-gradient(95deg, #D4AF37, #F59E0B);
  color: #0A0A0F;
  border: none;
  width: 100%;
  padding: clamp(0.85rem, 3.5vw, 1rem);
  font-weight: 700;
  font-size: clamp(0.9rem, 3vw, 1rem);
  border-radius: 2rem;
  cursor: pointer;
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Form Status Messages */
.form-status {
  margin-top: 1rem;
  font-size: clamp(0.75rem, 2.5vw, 0.85rem);
  text-align: center;
  padding: clamp(0.6rem, 2.5vw, 0.8rem);
  border-radius: 0.8rem;
  background: #1A1A24;
  color: #9CA3AF;
  word-wrap: break-word;
}

.success-status {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  border-left: 3px solid #22C55E;
}

.error-status {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border-left: 3px solid #EF4444;
}

/* Footer Note */
.footer-note {
  font-size: clamp(0.6rem, 2vw, 0.65rem);
  text-align: center;
  margin-top: 1rem;
  color: #5A5A6E;
  line-height: 1.4;
}

/* Location Text */
.location {
  margin-top: 1.5rem;
  font-size: clamp(0.65rem, 2.5vw, 0.7rem);
  color: #6B7280;
  text-align: center;
  padding: 0 1rem;
}

/* ========== MOBILE SPECIFIC STYLES ========== */
@media (max-width: 768px) {
  .popup-container {
    max-height: 85vh;
  }
  
  .popup-body {
    padding: 1.2rem;
  }
  
  .features {
    gap: 0.6rem;
  }
  
  .feature {
    white-space: normal;
    text-align: center;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .popup-container {
    max-height: 90vh;
    border-radius: 1.2rem;
  }
  
  .popup-header {
    padding: 0.9rem 1rem;
  }
  
  .popup-body {
    padding: 1rem;
  }
  
  .input-group {
    margin-bottom: 0.9rem;
  }
  
  .input-group input,
  .input-group select,
  .input-group textarea {
    padding: 0.7rem 0.9rem;
  }
  
  .submit-btn {
    padding: 0.8rem;
  }
  
  .features {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .feature {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
  
  .brand-badge {
    margin-bottom: 0.8rem;
  }
  
  .footer-note {
    font-size: 0.55rem;
  }
}

/* Landscape Mode Fix */
@media (max-width: 768px) and (orientation: landscape) {
  .popup-container {
    max-height: 85vh;
  }
  
  .popup-body {
    padding: 0.8rem 1rem;
  }
  
  .input-group {
    margin-bottom: 0.7rem;
  }
  
  .input-group input,
  .input-group select,
  .input-group textarea {
    padding: 0.5rem 0.8rem;
  }
  
  .input-group textarea {
    min-height: 60px;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .popup-container {
    max-width: 500px;
  }
  
  .hero {
    max-width: 90%;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .hero {
    max-width: 900px;
  }
  
  .popup-container {
    max-width: 580px;
  }
}