/* Modern CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
  min-height: 100vh;
  margin: 0;
  line-height: 1.6;
  color: #333;
}

/* Logo styling */
.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.logo {
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
  border: 3px solid #FFD700;
  border-radius: 15px;
  padding: 1.5rem 3rem;
  position: relative;
  transform: perspective(1000px) rotateX(5deg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out 0.1s both;
}

.logo-text {
  font-family: 'Noto Sans Gujarati', 'Gujarati MT', Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.logo-tagline {
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: skew(-2deg);
}

/* Overlay with modern glassmorphism effect */
.overlay {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Main container with modern styling */
.container {
  max-width: 800px;
  width: 100%;
  text-align: center;
  color: white;
}

/* Typography improvements */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  animation: fadeInUp 1s ease-out;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #fff;
  animation: fadeInUp 1s ease-out 0.2s both;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  margin-bottom: 1rem;
  color: #fff;
  animation: fadeInUp 1s ease-out 0.4s both;
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 1rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* Offer box with modern design */
.offer-box {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, #FFD700, #FFC107);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 2px solid #4CAF50;
  animation: fadeInUp 1s ease-out 0.8s both;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.offer-box h4 {
  color: #333;
  margin-bottom: 1rem;
}

.offer-box p {
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.offer-box del {
  color: #666;
  font-size: 0.9em;
}

.offer-box strong {
  color: #d32f2f;
  font-size: 1.1em;
}

/* Card with modern styling */
.card {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  animation: fadeInUp 1s ease-out 1s both;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.card h4 {
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Form styling */
.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
}

.form-control:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  outline: none;
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: #999;
  font-weight: 400;
}

/* Quantity Input Group */
.quantity-input-group {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.quantity-input-group:focus-within {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  transform: translateY(-2px);
}

.quantity-btn {
  background: linear-gradient(135deg, #4CAF50, #388E3C);
  color: white;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: linear-gradient(135deg, #388E3C, #2E7D32);
  transform: scale(1.05);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.quantity-input {
  border: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
  background: transparent;
  flex: 1;
  min-width: 80px;
}

.quantity-input:focus {
  outline: none;
  box-shadow: none;
  transform: none;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-input[type=number] {
  -moz-appearance: textfield;
}

.form-label {
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Button styling */
.btn {
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-success {
  background: linear-gradient(135deg, #4CAF50, #388E3C);
  color: white;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
  border: 2px solid #FFD700;
}

.btn-success:hover {
  background: linear-gradient(135deg, #388E3C, #2E7D32);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
}

.btn-success:active {
  transform: translateY(0);
}

/* Success message styling */
.text-success {
  color: #4caf50 !important;
  font-weight: 600;
  padding: 0;
  border-radius: 15px;
  background: transparent;
  border: none;
  animation: fadeIn 0.5s ease-out;
}

.success-message {
  background: linear-gradient(135deg, #4CAF50, #388E3C);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
  border: 2px solid #FFD700;
  text-align: left;
  animation: slideInUp 0.5s ease-out;
}

.success-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  animation: bounce 1s ease-in-out;
}

.success-content h5 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.success-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.order-details {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  list-style: none;
}

.order-details li {
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 500;
  padding: 0.25rem 0;
}

.order-details li:last-child {
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFD700;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}

.confirmation-badge {
  background: linear-gradient(135deg, #FFD700, #FFC107);
  color: #333;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-align: center;
  margin: 1rem auto;
  display: inline-block;
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  animation: pulse 2s infinite;
}

.whatsapp-note {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.next-steps {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-style: italic;
}

/* Notification styling */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 0.75rem;
}

.notification-icon {
  font-size: 1.5rem;
}

.notification-text {
  font-weight: 600;
  color: #333;
}

.notification-success {
  border-left: 4px solid #4CAF50;
}

.notification-info {
  border-left: 4px solid #2196F3;
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Modal Dialog Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(135deg, #4CAF50, #388E3C);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 3px solid #FFD700;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease-in-out;
}

.modal-header h3 {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-body {
  padding: 1.5rem 2rem;
  color: white;
}

.confirmation-text {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.order-summary {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.order-summary h4 {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.order-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-info:last-child {
  border-bottom: none;
}

.order-info.total {
  border-top: 2px solid #FFD700;
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.order-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.order-value {
  color: white;
  font-weight: 600;
}

.order-info.total .order-value {
  color: #FFD700;
  font-size: 1.2rem;
}

.whatsapp-info {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1rem;
}

.whatsapp-info p {
  color: white;
  font-weight: 600;
  margin: 0;
}

.next-steps-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.next-steps-info p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0;
  font-style: italic;
}

.modal-footer {
  padding: 1rem 2rem 2rem;
  text-align: center;
}

.modal-btn {
  background: linear-gradient(135deg, #FFD700, #FFC107);
  color: #333;
  border: 2px solid white;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.modal-btn:hover {
  background: linear-gradient(135deg, #FFC107, #FF8F00);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Countdown timer styling */
#countdown {
  font-family: 'Courier New', monospace;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.1);
  padding: 1rem 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-block;
  margin: 1rem 0;
  animation: pulse 2s infinite;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .overlay {
    padding: 15px;
  }
  
  .container {
    padding: 0;
  }
  
  .offer-box {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }
  
  .card {
    padding: 2rem 1.5rem;
    margin: 1.5rem auto;
  }
  
  .form-control {
    padding: 0.875rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  #countdown {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-link {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .social-link i {
    font-size: 1.25rem;
  }
  
  .quantity-input-group {
    flex-direction: row;
  }
  
  .quantity-btn {
    padding: 0.875rem 1rem;
    font-size: 1.1rem;
    min-width: 45px;
  }
  
  .quantity-input {
    padding: 0.875rem;
    font-size: 1rem;
  }
  
  .success-message {
    padding: 1.5rem;
  }
  
  .success-content h5 {
    font-size: 1.3rem;
  }
  
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .modal-content {
    width: 95%;
    max-width: none;
  }
  
  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .modal-header h3 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 1rem 1.5rem;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .offer-box {
    padding: 1.25rem;
  }
  
  .card {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
}

/* Social Media Links */
.social-media {
  animation: fadeInUp 1s ease-out 1.2s both;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.social-link:hover i {
  transform: scale(1.2);
}

.social-link.instagram {
  background: linear-gradient(135deg, #E4405F, #C13584);
  box-shadow: 0 8px 20px rgba(228, 64, 95, 0.3);
}

.social-link.instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(228, 64, 95, 0.4);
  border-color: #FFD700;
}

.social-link.facebook {
  background: linear-gradient(135deg, #1877F2, #0D6EFD);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.social-link.facebook:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(24, 119, 242, 0.4);
  border-color: #FFD700;
}

/* Loading animation for better UX */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
