/* Garcia Builder - Newsletter & Lead Generation Styles */

/* Newsletter Forms */
.newsletter-form {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(246, 200, 78, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.newsletter-form:hover {
    border-color: rgba(246, 200, 78, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.newsletter-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.newsletter-header h3 {
    color: #F6C84E;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.newsletter-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.newsletter-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    padding: 0.875rem 1.25rem;
    border: 1px solid rgba(246, 200, 78, 0.3);
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.9);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: #F6C84E;
    box-shadow: 0 0 0 3px rgba(246, 200, 78, 0.1);
}

.newsletter-btn {
    background: linear-gradient(135deg, #F6C84E, #FFD700);
    color: #000;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
    min-width: 160px;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(246, 200, 78, 0.4);
}

/* Lead Capture Forms */
.hero-lead-form {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(246, 200, 78, 0.3);
    border-radius: 25px;
    padding: 2rem; /* slightly tighter to feel less bulky */
    backdrop-filter: blur(20px);
    max-width: 500px;
    margin: 0 auto;
}

.lead-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.lead-form-header h3 {
    color: #F6C84E;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.lead-form-header .badge {
    background: linear-gradient(135deg, #F6C84E, #FFD700);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.lead-form-field {
    margin-bottom: 1rem;
}

.lead-form-field label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.lead-form-field input,
.lead-form-field select,
.lead-form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(18, 18, 18, 0.9);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Fix select dropdown styling */
.lead-form-field select {
    background: rgba(18, 18, 18, 0.9);
    color: white;
    border: 1px solid rgba(246, 200, 78, 0.3);
}

.lead-form-field select option {
    background: #1a1a1a;
    color: white;
    padding: 0.5rem;
}

.lead-form-field input:focus,
.lead-form-field select:focus,
.lead-form-field textarea:focus {
    outline: none;
    border-color: #F6C84E;
    background: rgba(255, 255, 255, 0.08);
}

.lead-form-field input::placeholder,
.lead-form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.lead-form-submit {
    width: 100%;
    background: linear-gradient(135deg, #F6C84E, #FFD700);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.lead-form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(246, 200, 78, 0.4);
}

.lead-form-benefits {
    margin-top: 1rem; /* compact */
    padding-top: 1rem; /* compact */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lead-form-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lead-form-benefits li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lead-form-benefits li i {
    color: #F6C84E;
    font-size: 0.8rem;
}

/* Exit Intent Popup - Improved Layout */
.exit-intent-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: popupFadeIn 0.3s ease-out;
}

.popup-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.popup-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid rgba(246, 200, 78, 0.4);
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(246, 200, 78, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    color: #F6C84E;
    background: rgba(246, 200, 78, 0.2);
    border-color: rgba(246, 200, 78, 0.6);
}

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

.popup-header h3 {
    color: #F6C84E;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.popup-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.popup-body {
    padding: 1.5rem 2rem 2rem;
}

.popup-body h4 {
    color: #F6C84E;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.popup-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.popup-body li {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.popup-form {
    margin-top: 1.5rem;
}

.popup-form input[type="email"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(246, 200, 78, 0.3);
    border-radius: 8px;
    background: rgba(18, 18, 18, 0.9);
    color: white;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.popup-form input[type="email"]:focus {
    outline: none;
    border-color: #F6C84E;
    box-shadow: 0 0 0 2px rgba(246, 200, 78, 0.2);
}

.popup-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.popup-form button {
    width: 100%;
    background: linear-gradient(135deg, #F6C84E, #FFD700);
    color: #000;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.popup-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(246, 200, 78, 0.3);
}

.privacy-note {
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.privacy-note i {
    color: #F6C84E;
    margin-right: 0.3rem;
}

.guide-preview {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 15px;
    margin: 0 auto 1.5rem;
    display: block;
    border: 2px solid rgba(246, 200, 78, 0.4);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.popup-body h4 {
    color: #F6C84E;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.popup-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
}

.popup-body li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.popup-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.popup-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(246, 200, 78, 0.3);
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.9);
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.popup-form input[type="email"]:focus {
    outline: none;
    border-color: #F6C84E;
    box-shadow: 0 0 0 3px rgba(246, 200, 78, 0.1);
}

.popup-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.popup-form button {
    background: linear-gradient(135deg, #F6C84E, #FFD700);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.popup-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(246, 200, 78, 0.3);
}

.privacy-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    margin: 0;
}

.privacy-note i {
    color: #F6C84E;
    margin-right: 0.25rem;
}

/* Consultation Forms */
.consultation-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(246, 200, 78, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
}

.consultation-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Download Forms */
.download-form {
    background: linear-gradient(135deg, rgba(246, 200, 78, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(246, 200, 78, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.download-preview {
    margin-bottom: 1.5rem;
}

.download-preview img {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(246, 200, 78, 0.3);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border-left: 4px solid #F6C84E;
    border-radius: 10px;
    padding: 1rem;
    color: white;
    max-width: 400px;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.notification.notification-success {
    border-left-color: #10B981;
}

.notification.notification-error {
    border-left-color: #EF4444;
}

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

.notification-content i {
    font-size: 1.1rem;
}

.notification.notification-success i {
    color: #10B981;
}

.notification.notification-error i {
    color: #EF4444;
}

/* Newsletter CTA Sections */
.newsletter-cta {
    background: linear-gradient(135deg, rgba(246, 200, 78, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(246, 200, 78, 0.3);
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    backdrop-filter: blur(15px);
}

.newsletter-cta h3 {
    color: #F6C84E;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-cta .newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-input-group {
        flex-direction: column;
    }

    .popup-content {
        margin: 1rem;
    }

    .popup-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .popup-body {
        padding: 1.5rem;
    }

    .popup-form {
        flex-direction: column;
    }

    .hero-lead-form {
        padding: 2rem 1.5rem;
    }

    .consultation-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes popupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Footer Newsletter */
.footer-newsletter {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(246, 200, 78, 0.3);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-newsletter h4 {
    color: #F6C84E;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-newsletter .newsletter-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
}

/* Lead Magnets */
.lead-magnet {
    background: linear-gradient(135deg, rgba(246, 200, 78, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(246, 200, 78, 0.4);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
}

/* Animations */
@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .popup-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }

    .popup-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .popup-body {
        padding: 1.5rem;
    }

    .popup-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-input {
        min-width: unset;
        width: 100%;
    }

    .newsletter-btn {
        min-width: unset;
        width: 100%;
    }

    .lead-form-header h3 {
        font-size: 1.3rem;
    }

    .newsletter-form {
        padding: 1.5rem;
    }

    .newsletter-header h3 {
        font-size: 1.8rem;
    }
}.lead-magnet {
    text-align: center;
}

/* Enhanced Footer Styling */
.footer .footer-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(246, 200, 78, 0.4);
}

.footer-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: #F6C84E !important;
    transition: color 0.3s ease;
}

/* Newsletter CTA Section Enhancements */
.newsletter-cta {
    position: relative;
    overflow: hidden;
}

.newsletter-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(246, 200, 78, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.lead-magnet h4 {
    color: #F6C84E;
    margin-bottom: 1rem;
    font-weight: 700;
}

.lead-magnet .benefit-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    display: inline-block;
}

.lead-magnet .benefit-list li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lead-magnet .benefit-list i {
    color: #F6C84E;
}

/* Exit Intent Popup - Modern Design */
.exit-intent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.exit-intent-overlay.show {
  opacity: 1;
}

.exit-intent-popup {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 20px;
  border: 2px solid rgba(246, 200, 78, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
  from {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.exit-intent-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  cursor: pointer;
  z-index: 1;
  transition: color 0.2s ease;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-intent-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.exit-intent-content {
  padding: 40px 30px 30px;
  text-align: center;
  color: #fff;
}

.exit-intent-header {
  margin-bottom: 30px;
}

.exit-intent-badge {
  display: inline-block;
  background: linear-gradient(135deg, #F6C84E, #f39c12);
  color: #000;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.exit-intent-header h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 10px 0;
  background: linear-gradient(135deg, #F6C84E, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.exit-intent-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin: 0;
}

.exit-intent-form {
  margin: 30px 0;
}

.exit-intent-form input[type="email"] {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
  transition: border-color 0.3s ease, background 0.3s ease;
  box-sizing: border-box;
}

.exit-intent-form input[type="email"]:focus {
  outline: none;
  border-color: #F6C84E;
  background: rgba(255, 255, 255, 0.1);
}

.exit-intent-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.exit-intent-form button {
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #F6C84E, #f39c12);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.exit-intent-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(246, 200, 78, 0.4);
}

.exit-intent-form button:active {
  transform: translateY(0);
}

.exit-intent-benefits {
  margin-top: 25px;
}

.exit-intent-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.exit-intent-benefits li {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exit-intent-benefits i {
  color: #28a745;
  width: 16px;
  flex-shrink: 0;
}

/* Success state styles */
.lead-form-success {
  text-align: center;
  padding: 2rem;
  background: rgba(40, 167, 69, 0.1);
  border: 2px solid rgba(40, 167, 69, 0.3);
  border-radius: 15px;
  color: #fff;
}

.lead-form-success i {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 1rem;
}

.lead-form-success h3 {
  color: #F6C84E;
  margin: 1rem 0;
}

.lead-form-success p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0.5rem 0;
}

/* Mobile responsive - Enhanced */
@media (max-width: 575.98px) {
  .exit-intent-popup {
    width: 95%;
    margin: 10px;
    max-height: 95vh;
    border-radius: 15px;
  }

  .exit-intent-content {
    padding: 25px 15px 15px;
  }

  .exit-intent-header h3 {
    font-size: 22px;
    line-height: 1.3;
  }

  .exit-intent-header p {
    font-size: 14px;
  }

  .exit-intent-badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 15px;
  }

  .exit-intent-form input[type="email"] {
    padding: 18px 16px;
    font-size: 16px; /* Prevent zoom on iOS */
    border-radius: 10px;
  }

  .exit-intent-form button {
    padding: 18px 20px;
    font-size: 16px;
    border-radius: 10px;
    min-height: 54px; /* Better touch target */
  }

  .exit-intent-benefits li {
    font-size: 13px;
    padding: 6px 0;
  }

  .exit-intent-close {
    top: 12px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
  }
}

/* Extra small devices (portrait phones) */
@media (max-width: 375px) {
  .exit-intent-popup {
    width: 98%;
    margin: 5px;
  }

  .exit-intent-content {
    padding: 20px 12px 12px;
  }

  .exit-intent-header h3 {
    font-size: 20px;
  }

  .exit-intent-form {
    margin: 20px 0;
  }
}

/* Tablet responsive - Enhanced */
@media (max-width: 768px) and (min-width: 576px) {
  .exit-intent-popup {
    width: 85%;
    max-width: 500px;
  }

  .exit-intent-header h3 {
    font-size: 26px;
  }

  .exit-intent-form input[type="email"] {
    font-size: 16px; /* Prevent zoom */
  }
}

/* Landscape orientation optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .exit-intent-popup {
    max-height: 90vh;
    overflow-y: auto;
  }

  .exit-intent-content {
    padding: 15px;
  }

  .exit-intent-header h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .exit-intent-header p {
    font-size: 14px;
  }

  .exit-intent-form {
    margin: 15px 0;
  }

  .exit-intent-benefits {
    margin-top: 15px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .exit-intent-close {
    width: 44px;
    height: 44px;
    font-size: 22px;
    background: rgba(0, 0, 0, 0.7);
  }

  .exit-intent-form button {
    min-height: 48px;
    padding: 16px 20px;
  }

  .exit-intent-form input[type="email"] {
    min-height: 48px;
    padding: 16px;
  }
}
