/**
 * MAIN STYLESHEET - musicamatrimoniopadova.com
 * Consolidato da styles.css + professional-wedding.css + recensioni-style.css
 * + form-styling.css + footer-contrast.css + exit-intent.css + rules-subtle.css
 */

/* ====================================
   BASE STYLES
   ==================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
}

.font-playfair {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ====================================
   FORM STYLING
   ==================================== */

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#contact-form > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#contact-form .grid {
  display: grid;
  gap: 1.5rem;
}

#contact-form .grid.md\:grid-cols-2 > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#contact-form label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #2C2C2C;
  display: block;
  margin-bottom: 0.25rem;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form input[type="date"],
#contact-form textarea {
  width: 100%;
}

#contact-form .flex.items-start {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
}

#contact-form input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #C9A86A;
}

#contact-form .flex.items-start label {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

#contact-form .flex.items-start label a {
  color: #C9A86A;
  text-decoration: underline;
  font-weight: 600;
}

#contact-form button[type="submit"] {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 768px) {
  #contact-form .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  
  #contact-form {
    gap: 1.25rem;
  }
  
  #contact-form input,
  #contact-form textarea {
    font-size: 16px;
  }
}

/* ====================================
   FOOTER CONTRAST
   ==================================== */

footer,
.site-footer {
  background: #2C2C2C !important;
  color: #F5F5F5 !important;
}

footer h3,
footer h4 {
  color: #FFFFFF !important;
  font-weight: 600;
}

footer a {
  color: #E8E8E8 !important;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #FFFFFF !important;
  text-decoration: underline;
}

footer p,
footer li,
footer span {
  color: #D4D4D4 !important;
}

footer .text-amber-600,
footer .text-amber-700 {
  color: #F5B942 !important;
}

footer .w-8.h-8 {
  background: #404040 !important;
  color: #FFFFFF !important;
}

footer .w-8.h-8:hover {
  background: #C9A86A !important;
}

footer .border-t {
  border-color: #404040 !important;
}

footer .text-gray-500 {
  color: #B8B8B8 !important;
}

footer .text-amber-500 {
  color: #F5B942 !important;
}

/* ====================================
   EXIT INTENT POPUP
   ==================================== */

#exit-intent-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.exit-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.exit-popup-content {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exit-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.exit-popup-close:hover {
  color: #333;
}

.exit-popup-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2C2C2C;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
}

.exit-popup-main {
  font-size: 1.125rem;
  color: #2C2C2C;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

.exit-popup-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.exit-popup-benefits li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: #FFF9F0;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #2C2C2C;
  line-height: 1.5;
  border-left: 3px solid #FFD700;
}

.exit-popup-benefits li strong {
  color: #B76E79;
  font-weight: 700;
}

.exit-popup-disclaimer {
  font-size: 0.8125rem;
  color: #6B7280;
  margin-top: 1rem;
  margin-bottom: 0;
}

.exit-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.exit-popup-btn-primary {
  display: inline-block;
  background: #B76E79;
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(183, 110, 121, 0.3);
}

.exit-popup-btn-primary:hover {
  background: #A6616B;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(183, 110, 121, 0.4);
}

.exit-popup-btn-secondary {
  display: inline-block;
  background: transparent;
  color: #6B7280;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid #E5E7EB;
  cursor: pointer;
}

.exit-popup-btn-secondary:hover {
  background: #F9FAFB;
  color: #374151;
  border-color: #D1D5DB;
}

@media (max-width: 640px) {
  .exit-popup-content {
    padding: 2rem 1.5rem;
  }
  
  .exit-popup-content h3 {
    font-size: 1.5rem;
  }
  
  .exit-popup-main {
    font-size: 1rem;
  }
  
  .exit-popup-benefits li {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }
}

@keyframes subtle-shake {
  0%, 100% { transform: scale(1) translateX(0); }
  25% { transform: scale(1) translateX(-2px); }
  75% { transform: scale(1) translateX(2px); }
}

.exit-popup-content {
  animation: subtle-shake 0.5s ease-in-out 0.3s;
}

/* ====================================
   RULES SUBTLE - Design Improvements
   ==================================== */

.card,
.bg-white.rounded-xl,
.bg-white.rounded-2xl,
.rounded-2xl,
.rounded-xl {
  border-radius: 12px 18px 14px 20px !important;
  box-shadow: 
    4px 6px 0 rgba(193, 119, 103, 0.1),
    -1px -1px 0 rgba(193, 119, 103, 0.03) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.service-card:nth-child(odd),
.testimonial-card:nth-child(odd) {
  transform: rotate(-0.7deg);
}

.service-card:nth-child(even),
.testimonial-card:nth-child(even) {
  transform: rotate(0.9deg);
}

.card:hover,
.service-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow: 
    6px 10px 0 rgba(193, 119, 103, 0.15),
    -2px -2px 0 rgba(193, 119, 103, 0.05) !important;
}

button,
.btn,
a.bg-amber-700 {
  border-radius: 14px 22px 16px 20px !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

input,
textarea,
select {
  border-radius: 10px 14px 12px 16px !important;
  transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}

@media (max-width: 768px) {
  .card:nth-child(odd),
  .card:nth-child(even),
  .service-card:nth-child(odd),
  .service-card:nth-child(even) {
    transform: none !important;
  }
}

/* ====================================
   MOBILE MENU
   ==================================== */

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
