/* -------------------------------------------------------------------------
 * Verifikasi Download - CSS Stylesheet (Minimalis, Modern, & Responsif)
 * ------------------------------------------------------------------------- */

/* Backdrop Overlay */
.vd-overlay {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: vd-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Container Modal */
.vd-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 28px;
    overflow-y: auto;

    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 
                0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    box-sizing: border-box;
    animation: vd-scale-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vd-modal * {
    box-sizing: border-box;
}

/* Tombol Tutup */
.vd-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.vd-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Header Modal */
.vd-header {
    margin-bottom: 20px;
    padding-right: 20px;
}

.vd-header h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.vd-header p {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.45;
}

/* Row Input */
.vd-row {
    margin-top: 14px;
}

.vd-row:first-of-type {
    margin-top: 0;
}

.vd-row label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.vd-row label .vd-required {
    color: #ef4444;
}

/* Fields (Input & Textarea) */
.vd-modal .vd-field {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vd-modal .vd-field:hover {
    border-color: #94a3b8 !important;
}

.vd-modal .vd-field:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), inset 0 1px 2px rgba(0,0,0,0.02) !important;
}

.vd-modal .vd-field::placeholder {
    color: #94a3b8 !important;
}

/* Resizing Textarea */
.vd-modal textarea.vd-field {
    resize: vertical;
    min-height: 75px;
}

/* Wrapper reCAPTCHA */
.vd-recaptcha-wrapper {
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
}

/* Alert / Pesan Error & Validasi */
.vd-message {
    display: none;
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid transparent;
}

.vd-message.vd-show {
    display: block;
}

.vd-message.vd-error {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.vd-message.vd-success {
    background-color: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

/* Button & Aksi */
.vd-actions {
    margin-top: 20px;
}

.vd-modal .vd-submit-btn {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    border-radius: 8px !important;
    border: none !important;
    background: #0f172a !important; /* Elegant slate-900 */
    color: #ffffff !important;
    cursor: pointer !important;
    transition: background 0.15s ease, transform 0.10s ease;
}

.vd-modal .vd-submit-btn:hover {
    background: #1e293b !important;
}

.vd-modal .vd-submit-btn:active {
    transform: scale(0.985);
}

.vd-modal .vd-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
}

/* -------------------------------------------------------------------------
 * SUCCESS STATE STYLING & KEYFRAMES (Checkmark Animasi Modern Tanpa GIF)
 * ------------------------------------------------------------------------- */
.vd-success-container {
    text-align: center;
    padding: 20px 0 10px 0;
}

.vd-success-container h4 {
    margin: 14px 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.vd-success-container p {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
}

/* Animasi Checkmark Circle & Check */
.vd-success-icon {
    display: block;
    margin: 0 auto;
    width: 64px;
    height: 64px;
}

.vd-checkmark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #22c55e; /* Green checkmark */
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #22c55e;
    animation: vd-fill .4s ease-in-out .4s forwards, vd-scale .3s ease-in-out .9s both;
}

.vd-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #22c55e;
    fill: none;
    animation: vd-stroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.vd-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: vd-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

/* Keyframes Animasi */
@keyframes vd-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vd-scale-in {
    from {
        opacity: 0;
        transform: translate(-50%, -47%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes vd-stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes vd-fill {
    100% { box-shadow: inset 0px 0px 0px 30px #ffffff; }
}

@keyframes vd-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Responsive breakpoint mobile */
@media (max-width: 480px) {
    .vd-modal {
        padding: 20px 20px;
    }
    .vd-close {
        top: 12px;
        right: 12px;
    }
}