/**
 * PDF Lead Generator - Public Styles
 */

/* Landing Page Styles */
.pdf-lead-landing-page {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.pdf-lead-container {
    width: 100%;
}

/* Header Styles */
.pdf-lead-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pdf-lead-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pdf-lead-description {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0;
}

.pdf-lead-description p {
    margin-bottom: 1rem;
}

.pdf-lead-description p:last-child {
    margin-bottom: 0;
}

/* Form Section */
.pdf-lead-form-section {
    margin-bottom: 2rem;
}

.pdf-lead-form-wrapper {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

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

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

.pdf-lead-form-group:last-child {
    margin-bottom: 0;
}

.pdf-lead-email-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.pdf-lead-email-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.pdf-lead-email-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.pdf-lead-submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    position: relative;
    min-height: 50px;
}

.pdf-lead-submit-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pdf-lead-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pdf-lead-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pdf-lead-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner Animation */
.pdf-lead-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: pdf-lead-spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes pdf-lead-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.pdf-lead-messages {
    margin-top: 1rem;
}

.pdf-lead-success-message,
.pdf-lead-error-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

.pdf-lead-success-message {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.pdf-lead-error-message {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* File Info */
.pdf-lead-file-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.pdf-lead-file-preview {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.pdf-lead-file-icon {
    font-size: 2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.pdf-lead-file-details {
    flex-grow: 1;
}

.pdf-lead-file-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.pdf-lead-file-meta {
    font-size: 0.875rem;
    color: #718096;
}

/* Privacy Notice */
.pdf-lead-privacy {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.pdf-lead-privacy small {
    color: #718096;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 640px) {
    .pdf-lead-landing-page {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .pdf-lead-title {
        font-size: 1.75rem;
    }
    
    .pdf-lead-description {
        font-size: 1rem;
    }
    
    .pdf-lead-form-wrapper {
        padding: 1rem;
    }
    
    .pdf-lead-file-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .pdf-lead-file-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Theme Compatibility */
.pdf-lead-landing-page * {
    box-sizing: border-box;
}

.pdf-lead-landing-page h1,
.pdf-lead-landing-page h2,
.pdf-lead-landing-page h3,
.pdf-lead-landing-page h4,
.pdf-lead-landing-page h5,
.pdf-lead-landing-page h6 {
    margin-top: 0;
}

.pdf-lead-landing-page p {
    margin-top: 0;
}

.pdf-lead-landing-page input,
.pdf-lead-landing-page button {
    font-family: inherit;
}

/* Alternative Color Schemes */
.pdf-lead-landing-page.theme-dark {
    background: #2d3748;
    color: #f7fafc;
}

.pdf-lead-landing-page.theme-dark .pdf-lead-title {
    color: #f7fafc;
}

.pdf-lead-landing-page.theme-dark .pdf-lead-description {
    color: #cbd5e0;
}

.pdf-lead-landing-page.theme-dark .pdf-lead-form-wrapper {
    background: #4a5568;
    border-color: #718096;
}

.pdf-lead-landing-page.theme-dark .pdf-lead-file-preview {
    background: #4a5568;
    border-color: #718096;
}

/* Focus States for Accessibility */
.pdf-lead-submit-btn:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

.pdf-lead-email-input:focus {
    outline: none;
}

/* Print Styles */
@media print {
    .pdf-lead-landing-page {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .pdf-lead-submit-btn {
        background: #000 !important;
    }
}