/* Trax Email Collection Popup Styling */

.email-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.email-popup.active {
    display: block;
}

.email-popup-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s ease-out;
    border: 1px solid var(--border-medium);
}

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

.email-popup-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.email-popup-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.email-popup-subtitle {
    font-size: 1.1rem;
    margin-top: 8px;
    opacity: 0.9;
}

.email-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.email-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.email-popup-body {
    padding: 30px;
}

.email-description {
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.launch-date {
    font-weight: 600;
    color: var(--accent-blue);
}

.email-form {
    margin-top: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-submit {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #f97316 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-disclaimer {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.success-message {
    display: none;
    text-align: center;
    padding: 30px 20px;
}

.success-message.active {
    display: block;
}

.success-message h3 {
    color: var(--accent-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-green);
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .email-popup-content {
        margin: 15% auto;
        width: 95%;
    }
    
    .email-popup-header h2 {
        font-size: 1.5rem;
    }
    
    .email-popup-subtitle {
        font-size: 1rem;
    }
    
    .email-popup-body {
        padding: 25px 20px;
    }
}

@media (max-width: 400px) {
  .email-popup-content {
    margin: 10% auto !important;
    width: 99% !important;
    max-width: 99vw !important;
    padding: 4px 2px !important;
  }
  .email-popup-header h2 {
    font-size: 1.1rem !important;
  }
  .email-popup-subtitle {
    font-size: 0.9rem !important;
  }
  .email-popup-body {
    padding: 8px 2px !important;
  }
  .form-group label {
    font-size: 1rem !important;
  }
  .form-group input, .form-group textarea {
    font-size: 0.98rem !important;
    padding: 8px 6px !important;
  }
  .form-disclaimer, .success-message p {
    font-size: 0.85rem !important;
  }
  .email-popup-close {
    top: 8px !important;
    right: 8px !important;
    font-size: 1.3rem !important;
    width: 28px !important;
    height: 28px !important;
  }
}

@media (max-width: 350px) {
  .email-popup-header h2 {
    font-size: 0.95rem !important;
  }
  .email-popup-content {
    padding: 2px 0 !important;
  }
}
