/* =========================================================
   FDL Redirect CSS
   - Top timer: content se PEHLE (before content)
   - Bottom area: content ke BAAD (after content)
   ========================================================= */

/* ── TOP TIMER BOX ───────────────────────────────────────── */
#fdl-timer-top {
    margin: 0 0 28px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border: 1px solid #c9d5ff;
}

#fdl-timer-inner {
    padding: 28px 32px;
    text-align: center;
}

#fdl-timer-step-info {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c7db0;
    margin-bottom: 18px;
}

/* SVG Ring Timer */
#fdl-timer-countdown-wrap {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

#fdl-svg-ring {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.fdl-ring-bg {
    fill: none;
    stroke: #d6dff5;
    stroke-width: 5;
}

.fdl-ring-progress {
    fill: none;
    stroke: #4361ee;
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.9s linear;
}

#fdl-timer-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 800;
    color: #2b3a8c;
    line-height: 1;
}

/* Timer Button */
#fdl-timer-btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: not-allowed;
    background: #b8c3e8;
    color: #fff;
    letter-spacing: 0.02em;
    transition: background 0.3s ease, box-shadow 0.25s ease, transform 0.15s ease;
    white-space: nowrap;
}

#fdl-timer-btn.fdl-btn-ready {
    background: linear-gradient(135deg, #4361ee, #2b3acc);
    box-shadow: 0 4px 18px rgba(67, 97, 238, 0.42);
    cursor: pointer;
    animation: fdl-glow 1.8s ease-in-out infinite;
}

#fdl-timer-btn.fdl-btn-ready:hover {
    background: linear-gradient(135deg, #3352d8, #1f2faa);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(67, 97, 238, 0.55);
}

@keyframes fdl-glow {
    0%, 100% { box-shadow: 0 4px 18px rgba(67, 97, 238, 0.4); }
    50%       { box-shadow: 0 4px 28px rgba(67, 97, 238, 0.7); }
}

#fdl-timer-message {
    margin-top: 14px;
    font-size: 13px;
    color: #7080a8;
    line-height: 1.5;
}


/* ── BOTTOM AREA ─────────────────────────────────────────── */
#fdl-bottom-area {
    margin-top: 36px;
    border-top: 2px dashed #e2e6f0;
    padding-top: 32px;
}

/* Next Step Button */
#fdl-next-step-wrap {
    text-align: center;
    padding-bottom: 12px;
}

.fdl-next-btn {
    display: inline-block;
    padding: 15px 44px;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, #f77f00, #e05d00);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(247, 127, 0, 0.38);
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
    letter-spacing: 0.02em;
    animation: fdl-bounce 2.2s ease-in-out infinite;
}

.fdl-next-btn:hover {
    background: linear-gradient(135deg, #e06800, #c04d00);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(247, 127, 0, 0.52);
}

.fdl-next-btn:disabled,
.fdl-next-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
    transform: none;
}

@keyframes fdl-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}


/* Download Section */
#fdl-download-section {
    margin-top: 20px;
}

#fdl-download-box {
    background: linear-gradient(135deg, #f0fff6, #d4f0e0);
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 6px 28px rgba(39, 174, 96, 0.18);
    animation: fdl-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fdl-pop {
    0%   { transform: scale(0.88); opacity: 0; }
    100% { transform: scale(1);    opacity: 1; }
}

#fdl-download-icon {
    width: 56px;
    height: 56px;
    background: #27ae60;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(39, 174, 96, 0.38);
}

#fdl-download-title {
    font-size: 22px;
    font-weight: 800;
    color: #155724;
    margin: 0 0 8px;
}

#fdl-download-desc {
    font-size: 14px;
    color: #1a6b37;
    margin-bottom: 22px;
}

.fdl-download-final-btn {
    display: inline-block;
    padding: 15px 48px;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #27ae60, #1a8a49);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(39, 174, 96, 0.4);
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
    letter-spacing: 0.03em;
    animation: fdl-shine 2.5s ease-in-out infinite;
}

.fdl-download-final-btn:hover {
    background: linear-gradient(135deg, #219a52, #166a3a);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(39, 174, 96, 0.55);
}

@keyframes fdl-shine {
    0%, 100% { box-shadow: 0 4px 18px rgba(39, 174, 96, 0.38); }
    50%       { box-shadow: 0 4px 28px rgba(39, 174, 96, 0.62); }
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    #fdl-timer-inner {
        padding: 20px 18px;
    }

    .fdl-next-btn,
    .fdl-download-final-btn {
        padding: 13px 26px;
        font-size: 15px;
    }

    #fdl-download-box {
        padding: 28px 18px;
    }
}
