﻿#myNav.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9990;
    overflow-y: auto;
}
    #myNav.overlay.open {
        display: block;
    }
 
#myNav .overlay-content {
    max-width: 960px;
    margin: 40px auto;
}

    #myNav .overlay-content p {
        color: #e9ecef;
        line-height: 1.6;
        font-size: 15.5px;
    }

    #myNav .overlay-content b {
        color: #ffffff;
        font-weight: 700;
    }
     
.kvkk-title {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    margin: 8px 0 18px;
    line-height: 1.35;
}
 
#myNav a {
    color: #cfe2ff;
    text-decoration: underline;
}

.kvkk-consent-row {
    display: flex;
    align-items: center;  
    gap: 20px;
    color: #f1f3f5;
    margin-top: 16px;
    margin-bottom: 8px;
}

    .kvkk-consent-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        margin: 0;
        margin-right: 5px;
    }

    .kvkk-consent-row label {
        margin: 0;  
        line-height: 18px;  
        display: flex;
        align-items: center; 
    }

    .kvkk-consent-row.kvkk-error {
        outline: 2px solid #dc3545;
        outline-offset: 4px;
    }
     
.kvkk-actions {
    margin-top: 8px;
    margin-bottom: 10px;
}

    .kvkk-actions button {
        min-width: 120px;
    }

.bootstrap-datepicker {
    z-index: 1060;
}

.form-group .d-flex {
    min-height: 20px;
}

.validation-message {
    text-align: left;
    flex: 1;
    margin-left: 10px;
}

    .validation-message .text-danger {
        font-size: 0.875rem;
        margin-bottom: 0;
    }

#name-surname-counter {
    font-weight: 500;
}
 
.btn-outline-primary#openPdfModalBtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: .65rem;
    border: 0 !important;
    background: linear-gradient(135deg, #ffc107, #ffe08a);
    color: #212529 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(255,193,7,.35), 0 0 0 0 rgba(255,193,7,.55);
    transition: transform .12s ease-in-out, box-shadow .2s ease-in-out, background .2s ease-in-out;
    animation: pdfPulse 1.8s infinite;
}
 
    .btn-outline-primary#openPdfModalBtn::before {
        content: "📄";
        line-height: 1;
        font-size: 1.05em;
    }
     
    .btn-outline-primary#openPdfModalBtn:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(255,193,7,.45), 0 0 0 0 rgba(255,193,7,.55);
    }

    .btn-outline-primary#openPdfModalBtn:active {
        transform: translateY(0) scale(.98);
    }
     
    .btn-outline-primary#openPdfModalBtn:focus,
    .btn-outline-primary#openPdfModalBtn:focus-visible {
        outline: 3px solid rgba(255,193,7,.5);
        outline-offset: 2px;
    }
     
#submitConfirmModal.bottom-sheet .modal-dialog {
    position: fixed;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 100%);  
    width: 100%;
    max-width: 720px; 
    margin: 0;  
    transition: transform .25s ease;
}

#submitConfirmModal.bottom-sheet.show .modal-dialog {
    transform: translate(-50%, 0);  
}

#submitConfirmModal.bottom-sheet .modal-content {
    border-radius: 14px 14px 0 0;
    max-height: 80vh;
    overflow: auto;
}
 
@keyframes pdfPulse {
    0% {
        box-shadow: 0 10px 24px rgba(255,193,7,.35), 0 0 0 0 rgba(255,193,7,.55);
    }

    70% {
        box-shadow: 0 10px 24px rgba(255,193,7,.35), 0 0 0 16px rgba(255,193,7,0);
    }

    100% {
        box-shadow: 0 10px 24px rgba(255,193,7,.35), 0 0 0 0 rgba(255,193,7,0);
    }
}
 
@media (prefers-color-scheme: dark) {
    .btn-outline-primary#openPdfModalBtn {
        background: linear-gradient(135deg, #ffca2c, #ffd45e);
        color: #1b1f22 !important;
        box-shadow: 0 10px 24px rgba(255,193,7,.4), 0 0 0 0 rgba(255,193,7,.55);
    }
}
 
@media (prefers-reduced-motion: reduce) {
    .btn-outline-primary#openPdfModalBtn {
        animation: none;
        transition: none;
    }
}
 
@media (max-width: 576px) {
    #onload {
        position: absolute;
        top: 18vh;
        bottom: 15vh;
    }

    #onload .modal-dialog {        
        margin: 0;
        z-index: 10050;
    }  

    .btn-outline-primary#openPdfModalBtn {
        padding: 10px 14px;
        font-size: .95rem;
        white-space: normal;
        text-align: left;
    } 
     
    #submitConfirmModal.bottom-sheet .modal-dialog {
        position: fixed;
        left: 50%;
        bottom: calc(28% + env(safe-area-inset-bottom, 0px));  
        transform: translateX(-50%) translateY(100%);
        width: calc(100% - 16px);  
        max-width: none;
        margin: 0;
        transition: transform .25s ease, bottom .25s ease;
    }

    #submitConfirmModal.bottom-sheet.show .modal-dialog {
        transform: translateX(-50%) translateY(0);
    }
     
    #submitConfirmModal.bottom-sheet .modal-content {
        border-radius: 14px 14px 0 0;
        max-height: calc(90vh - env(safe-area-inset-top, 0px));
        overflow: auto;
    }  

    #myNav .overlay-content {
        margin: 20px auto;
        padding: 0 12px;
    }

        #myNav .overlay-content p {
            font-size: 14.5px;
        }

    .kvkk-actions {
        text-align: center;
    }
} 
