/*
Plugin Name: DeshKaBasha Download Gate (v18.4.5)
Description: Stylesheet strictly for Email-Gated PDF Download Cards on 25 Download Pages.
Version: 18.4.5
*/

/* 
 ==========================================================================
 EMAIL-GATED DOWNLOAD CARDS (DESKTOP + MOBILE RESPONSIVE)
 Replaces old broken page content ONLY on 25 Download Pages.
 ========================================================================== 
*/

.dkb-download-card-wrapper {
    max-width: 680px;
    margin: 30px auto 50px auto;
    padding: 35px 30px;
    background: #ffffff;
    border: 1px solid #e5dfd4;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #2c2925;
}

.dkb-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.dkb-language-badge {
    display: inline-block;
    background: #eefaec;
    color: #1e702c;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.dkb-card-title {
    font-size: 28px;
    font-weight: 800;
    color: #1b1916;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.dkb-file-meta {
    font-size: 14px;
    color: #68635c;
    font-weight: 500;
}

.dkb-meta-separator {
    margin: 0 8px;
    color: #c6bfae;
}

.dkb-content-preview {
    background: #faf8f5;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 22px 0 28px 0;
    border: 1px solid #ece6db;
}

.dkb-content-preview h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: #433e36;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dkb-content-preview ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}

.dkb-content-preview li {
    font-size: 14px;
    color: #38342e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dkb-content-preview li::before {
    content: "✓";
    display: inline-block;
    color: #1a8f36;
    font-weight: 800;
    font-size: 15px;
}

.dkb-gate-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dkb-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.dkb-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #3c3730;
}

.dkb-input-field {
    width: 100%;
    height: 50px;
    padding: 10px 16px;
    font-size: 16px;
    border: 1.5px solid #d0c8ba;
    border-radius: 10px;
    background: #fff;
    color: #1b1916;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.dkb-input-field:focus {
    border-color: #d4a550;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 165, 80, 0.2);
}

.dkb-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.dkb-checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #8c5b00;
    cursor: pointer;
    flex-shrink: 0;
}

.dkb-checkbox-group label {
    font-size: 13px;
    color: #5c564c;
    line-height: 1.4;
    cursor: pointer;
}

.dkb-submit-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #f5a818 0%, #df8c00 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(223, 140, 0, 0.35);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dkb-submit-btn:hover {
    background: linear-gradient(135deg, #f5b331 0%, #c97e00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(223, 140, 0, 0.45);
}

.dkb-submit-btn:active {
    transform: translateY(0);
}

.dkb-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.dkb-download-success {
    text-align: center;
    padding: 24px 10px;
    border-radius: 12px;
    background: #f2faec;
    border: 1px solid #bce2ae;
    margin-top: 20px;
    animation: dkbFadeIn 0.3s ease;
}

.dkb-download-success h3 {
    color: #1a7428;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.dkb-download-success p {
    color: #2c5934;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.dkb-fallback-download-btn {
    display: inline-block;
    background: #1e8731;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s ease;
}

.dkb-fallback-download-btn:hover {
    background: #166925;
}

.dkb-form-error {
    background: #feeef0;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: none;
    margin-bottom: 10px;
}

@media screen and (max-width: 600px) {
    .dkb-download-card-wrapper {
        margin: 15px auto 35px auto;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .dkb-card-title {
        font-size: 22px;
    }

    .dkb-content-preview ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dkb-input-field {
        height: 48px;
        font-size: 16px;
    }

    .dkb-submit-btn {
        height: 50px;
        font-size: 16px;
    }
}
