/**
 * Lead Magnet Box Styles
 */

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('iranyekan.ttf') format('truetype');
}

.farazsms-lead-magnet-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 24px;
    min-width: 360px;
    max-width: 420px;
    z-index: 999999;
    font-family: IRANSans, 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
    animation: slideInUp 0.4s ease-out;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.farazsms-lead-magnet-box[data-position="bottom-left"] {
    right: auto;
    left: 20px;
}

.farazsms-lead-magnet-box.closing {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.farazsms-lead-magnet-close {
    position: absolute;
    top: 8px;
    left: 8px;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.farazsms-lead-magnet-close:hover {
    opacity: 0.6;
}

.farazsms-lead-magnet-close .close-icon {
    font-size: 25px;
    line-height: 1;
    font-weight: 400;
}

.farazsms-lead-magnet-content {
    padding: 0;
}

.lead-magnet-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.4;
}

.lead-magnet-main-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.lead-magnet-text {
    flex: 1;
    min-width: 0;
}

.lead-magnet-text p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.lead-magnet-text p strong {
    font-weight: bold;
    color: #1a1a1a;
}

.lead-magnet-disclaimer {
    font-size: 12px !important;
    color: #999 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.lead-magnet-countdown-circle {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.countdown-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.countdown-circle-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 6;
}

.countdown-circle-progress {
    fill: none;
    stroke: #51D1A4;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear;
}

.countdown-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #51D1A4;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.countdown-minutes,
.countdown-seconds {
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.lead-magnet-cta-button {
    width: 100%;
    background: #51D1A4;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    margin-bottom: 12px;
    font-family: IRANSans, 'Tahoma', 'Arial', sans-serif;
}

.lead-magnet-cta-button:hover {
    background: #1abc9c;
    box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
    transform: translateY(-1px);
}

.lead-magnet-cta-button:active {
    transform: translateY(0);
}

.lead-magnet-powered {
    text-align: center;
    font-size: 10px;
    color: #ccc;
    margin: 0;
    padding: 0;
    text-transform: lowercase;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .farazsms-lead-magnet-box {
        min-width: 320px;
        max-width: calc(100% - 40px);
        bottom: 15px;
        right: 20px;
        left: auto;
        padding: 20px;
    }

    .farazsms-lead-magnet-box[data-position="bottom-left"] {
        left: 20px;
        right: auto;
    }

    .lead-magnet-title {
        font-size: 18px;
    }

    .lead-magnet-main-content {
        gap: 12px;
    }

    .lead-magnet-countdown-circle {
        width: 70px;
        height: 70px;
    }

    .countdown-time {
        font-size: 12px;
    }

    .lead-magnet-text p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .farazsms-lead-magnet-box {
        min-width: calc(100% - 30px);
        bottom: 10px;
        right: 15px;
        left: auto;
        padding: 18px;
    }

    .farazsms-lead-magnet-box[data-position="bottom-left"] {
        left: 15px;
        right: auto;
    }

    .lead-magnet-main-content {
        flex-direction: column;
        align-items: center;
    }

    .lead-magnet-text {
        text-align: center;
    }

    .lead-magnet-countdown-circle {
        width: 80px;
        height: 80px;
    }
}

