#doccheck-gating-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 18, 84, 0.85);
    z-index: 999999;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}

.doccheck-modal-dialog {
    position: absolute;
    max-width: 540px;
    width: calc(100% - 30px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideUp 0.4s ease-out;
}

.doccheck-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.doccheck-modal-header {
    background: linear-gradient(135deg, #171254 0%, #2a1f6b 100%);
    padding: 35px 40px;
    border: none;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.doccheck-modal-title {
    color: #ffffff;
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.doccheck-modal-body {
    padding: 30px 35px 35px;
}

.doccheck-modal-description {
    margin-bottom: 30px;
}

.doccheck-modal-description p {
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.doccheck-button-container {
    display: flex;
    justify-content: center;
}

dc-login-button {
    display: inline-block;
    --dc-button-background: #D5AABA;
    --dc-button-color: #171254;
    --dc-button-border: 2px solid #D5AABA;
    --dc-button-hover-background: #D5AABA;
    --dc-button-hover-transform: translateY(-3px);
    --dc-button-hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.doccheck-alternative {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.doccheck-alternative p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.doccheck-alternative-link {
    color: #171254;
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.2s ease;
    display: inline-block;
}

.doccheck-alternative-link:hover {
    color: #171254;
    text-decoration: none;
    transform: translateX(3px);
}

#doccheck-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 18, 84, 0.85);
    z-index: 999998;
}

.doccheck-loading {
    background: #ffffff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    color: #4a4a4a;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    .doccheck-modal-dialog {
        max-width: 90%;
        width: 90%;
    }

    .doccheck-modal-header {
        padding: 30px 35px;
    }

    .doccheck-modal-title {
        font-size: 1.6rem;
    }

    .doccheck-modal-body {
        padding: 30px 25px;
    }
}

@media (max-width: 576px) {
    #doccheck-gating-modal {
        padding: 15px;
    }

    .doccheck-modal-dialog {
        max-width: calc(100% - 30px);
        width: calc(100% - 30px);
    }

    .doccheck-modal-content {
        border-radius: 8px;
    }

    .doccheck-modal-header {
        padding: 25px 20px;
        border-radius: 8px 8px 0 0;
    }

    .doccheck-modal-title {
        font-size: 1.4rem;
    }

    .doccheck-modal-body {
        padding: 25px 20px 20px;
    }

    .doccheck-modal-description p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .doccheck-alternative p {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .doccheck-modal-title {
        font-size: 1.25rem;
    }

    .doccheck-modal-header {
        padding: 20px 15px;
    }

    .doccheck-modal-description p {
        font-size: 0.95rem;
    }
}

@media (prefers-contrast: high) {
    .doccheck-modal-content {
        border: 2px solid #000;
    }
}


.doccheck-alternative-link:focus,
.doccheck-alternative-link:focus-visible {
    outline: 3px solid #D5AABA;
    outline-offset: 2px;
}

dc-login-button:focus-visible {
    outline: 3px solid #D5AABA;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    #doccheck-gating-modal,
    .doccheck-modal-dialog,
    .doccheck-alternative-link {
        animation: none;
        transition: none;
    }
}

@media print {
    #doccheck-gating-modal,
    #doccheck-overlay {
        display: none !important;
    }
}