.edg-download-link {
    display: inline-block;
    margin: 10px 0;
}

.edg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    gap: 8px;
}

.edg-link:hover {
    background: linear-gradient(135deg, #005a87 0%, #004670 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

.edg-link:active {
    transform: translateY(0);
}

.edg-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.edg-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.edg-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #696969 0%, #676767 100%);
    color: white;
    margin-bottom: 0;
}

.edg-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.edg-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.edg-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.edg-popup-content {
    padding: 24px;
}

.edg-popup-content p {
    margin: 0 0 20px 0;
    color: #555;
    line-height: 1.5;
    font-size: 15px;
}

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

.edg-popup-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.edg-popup-content input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.edg-popup-content input[type="email"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.edg-popup-content .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.edg-popup-content .checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.edg-popup-content .checkbox-group label {
    margin: 0;
    font-weight: normal;
    color: #555;
    line-height: 1.4;
    font-size: 14px;
}

.edg-popup-content button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #445173 0%, #435a96 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.edg-popup-content button[type="submit"]:hover {
    background: linear-gradient(135deg, #3b496e 0%, #2f406e 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.edg-popup-content button[type="submit"]:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.edg-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 480px) {
    .edg-popup {
        width: 95%;
        max-width: none;
        margin: 20px;
    }

    .edg-popup-header {
        padding: 16px 20px;
    }

    .edg-popup-content {
        padding: 20px;
    }

    .edg-link {
        padding: 10px 20px;
        font-size: 15px;
        width: 100%;
    }
}

/* Loading state */
.edg-loading {
    position: relative;
    color: transparent !important;
}

.edg-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: edg-spin 0.8s linear infinite;
}

@keyframes edg-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Embedded Form Styles */
.edg-embedded-form {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 0;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edg-embedded-form-content {
    padding: 0;
}

.edg-embedded-form-header {
    background: linear-gradient(135deg, #696969 0%, #676767 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
}

.edg-embedded-form-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.edg-embedded-form-body {
    padding: 24px;
}

.edg-embedded-form-body p {
    margin: 0 0 20px 0;
    color: #555;
    line-height: 1.5;
    font-size: 15px;
}

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

.edg-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.edg-embedded-email {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.edg-embedded-email:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.edg-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.edg-checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.edg-checkbox-group label {
    margin: 0;
    font-weight: normal;
    color: #555;
    line-height: 1.4;
    font-size: 14px;
}

.edg-embedded-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #445173 0%, #435a96 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(68, 81, 115, 0.3);
}

.edg-embedded-submit:hover {
    background: linear-gradient(135deg, #3b496e 0%, #2f406e 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(68, 81, 115, 0.4);
}

.edg-embedded-submit:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Success State */
.edg-download-success {
    text-align: center;
    padding: 20px;
}

.edg-success-message p {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 15px;
}

.edg-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    gap: 8px;
}

.edg-download-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

/* Responsive Design for Embedded Form */
@media screen and (max-width: 480px) {
    .edg-embedded-form-body {
        padding: 20px;
    }

    .edg-embedded-form-header {
        padding: 16px 20px;
    }

    .edg-embedded-form-header h4 {
        font-size: 16px;
    }
}

.edg-form-container {
    text-align: center;
}