
/* modal.css */
.ipa-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Use viewport height */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000; /* Higher z-index to appear above iframe content */
    padding-top: 100px; /* Account for WordPress header */
}

.ipa-modal-content {
    position: relative;
    background-color: white;
    margin: 0 auto;
    width: 90%;
    max-width: 425px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
}

.ipa-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    color: #6B7280;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.ipa-close:hover {
    background-color: #F3F4F6;
}

.ipa-header {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    padding: 0 1.5rem;
}

.ipa-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    padding: 0 1rem;
}

.ipa-form {
    margin-top: 1.5rem;
}

.ipa-input-group {
    margin-bottom: 1.25rem;
}

.ipa-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.ipa-input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
    background-color: #F9FAFB;
}

.ipa-input-group input:focus {
    outline: none;
    border-color: #052048;
    box-shadow: 0 0 0 3px rgba(5, 32, 72, 0.1);
    background-color: #FFFFFF;
}

.ipa-input-group input::placeholder {
    color: #9CA3AF;
}

.ipa-error {
    display: none;
    color: #DC2626;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    padding-left: 0.5rem;
    border-left: 2px solid #DC2626;
}

.ipa-submit {
    width: 100%;
    background-color: #052048;
    color: white;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.ipa-submit:hover {
    background-color: #0A326E;
}

/* Mobile Optimizations */
@media screen and (max-width: 640px) {
    .ipa-modal {
        padding-top: 0;
        display: flex;
        align-items: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ipa-modal-content {
        margin: 20px auto;
        width: 90%;
        max-width: none;
        position: relative;
    }

    .ipa-header {
        font-size: 1.125rem;
        padding: 0 0.5rem;
    }

    .ipa-subtitle {
        font-size: 0.813rem;
        padding: 0;
    }

    .ipa-input-group {
        margin-bottom: 1rem;
    }

    .ipa-input-group input {
        padding: 0.625rem 0.875rem;
    }
}

/* Add animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ipa-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: -100px; /* Start below the viewport */
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s ease;
    min-width: 320px;
    max-width: 90%;
}

.notification.show {
    bottom: 24px;
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #10B981; /* Success green color */
}

.notification-message {
    flex-grow: 1;
}

.notification-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.notification-description {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Mobile optimization */
@media (max-width: 640px) {
    .notification {
        min-width: unset;
        width: 90%;
        bottom: -150px;
    }
    
    .notification.show {
        bottom: 16px;
    }
}


.pdf-capture-container {
    background: #f5f5f5;
    padding: 30px;
    margin: 0;
    font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color, #1f2937);
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--highlight-color, #1EA8E0); /* Using your highlight color for a professional border */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Using your --shadow-md for a subtle, professional shadow */
}

.company-info h1 {
    color: var(--primary-color, #052048); /* Dark blue as requested for the title */
    margin: 0 0 8px 0;
    font-size: 36px; /* Larger, more commanding title for impact */
    font-weight: 800; /* Extra bold for a strong, professional look */
    letter-spacing: -0.5px; /* Slight tightening for elegance */
    line-height: 1.2; /* Better readability for larger text */
}

.company-info h2 {
    color: var(--text-light, #6b7280); /* Using your light text color for the tagline */
    margin: 0;
    font-size: 16px; /* Slightly smaller, elegant tagline */
    font-weight: 500;
    opacity: 0.9; /* Slightly more visible for better readability */
    letter-spacing: 0.5px; /* Slight spacing for a clean look */
}

.user-info {
    text-align: right;
    font-size: 14px;
}

.user-info p {
    margin: 5px 0;
    color: var(--text-color, #1f2937); /* Using your primary text color for consistency */
    font-weight: 500; /* Slightly bolder for clarity */
}

.user-info strong {
    color: var(--primary-color, #052048); /* Matching dark blue for emphasis on labels, aligning with brand */
    font-weight: 600;
}

.pdf-footer {
    margin-top: 10px;
    padding-top: 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
    border-top: 2px solid #e0e0e0; /* Light gray border for separation */
}

.pdf-footer hr {
    border: none;
    border-top: 1px solid #e0e0e0; /* Lighter, consistent gray line */
    margin: 15px 0;
}

.pdf-footer p {
    margin: 5px 0;
    line-height: 1.5; /* Better readability */
    font-weight: 400;
}

.pdf-footer a {
    color: #1a73e8; /* Matching professional blue for links */
    text-decoration: none;
    font-weight: 500;
}

.pdf-footer a:hover {
    text-decoration: underline; /* Subtle interactivity */
}