.wof-container {
    font-family: iransans !important;
    direction: rtl;
    margin: 30px auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* بخش گردونه */
.wof-wheel-section {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    order: 1;
    background: transparent !important;
}

.wheel-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
}

#wof-wheel {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: transparent !important;
    display: block !important;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #d63638;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* بخش فرم */
.wof-form-section {
    width: 100%;
    max-width: 500px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    order: 2;
}

.wof-form-section h3 {
    color: #083b7f;
    margin-bottom: 25px;
    text-align: center;
    font-family: iransans !important;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.6;
}

.phone-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.phone-input-group input {
    flex: 1;
    font-family: iransans !important;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.phone-input-group input:focus {
    border-color: #083b7f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 59, 127, 0.1);
}

.phone-input-group button {
    background: #046307 !important;
    color: #ffffff !important;
    font-family: iransans !important;
    border: none !important;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 4px 15px rgba(46, 182, 0, 0.4);
}

.phone-input-group button:hover:not(:disabled) {
    background: #FFD700 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 182, 0, 0.4);
}

.phone-input-group button:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* نتیجه */
#wof-result {
    margin-top: 20px;
    text-align: center;
}

.result-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 25px;
    border-radius: 15px;
    font-family: iransans !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-success h3 {
    color: #155724;
    margin-bottom: 15px;
    font-family: iransans !important;
    font-size: 22px;
}

.result-success p {
    margin: 10px 0;
    font-family: iransans !important;
    font-size: 16px;
    line-height: 1.6;
}

/* استایل برای پیام هشدار */
.result-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 25px;
    border-radius: 15px;
    font-family: iransans !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-warning h3 {
    color: #856404;
    margin-bottom: 15px;
    font-family: iransans !important;
    font-size: 22px;
}

.result-warning p {
    margin: 10px 0;
    font-family: iransans !important;
    font-size: 16px;
    line-height: 1.6;
}

/* استایل برای کانتینر کد تخفیف و دکمه */
.discount-button-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    flex-wrap: wrap;
}

.discount-code {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 10px;
    font-family: iransans !important;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.course-button {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333 !important;
    text-decoration: none;
    padding: 23px 10px;
    border-radius: 10px;
    font-family: iransans !important;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    flex: 1;
    max-width: 300px;
    text-align: center;
    white-space: nowrap;
}

/* استایل‌های hover و active */
.discount-code:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.course-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.6);
    color: #000 !important;
    border-color: #ff9800;
}

.discount-code:active,
.course-button:active {
    transform: translateY(-1px);
}

.code-text {
    display: block;
    font-size: 15px;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.copy-text {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    font-weight: normal;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* دسکتاپ */
@media (min-width: 769px) {
    .wof-container {
        flex-direction: column;
    }

    .wof-wheel-section {
        order: 1;
    }

    .wof-form-section {
        order: 2;
        max-width: 500px;
    }

    .phone-input-group {
        flex-direction: row;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .wof-container {
        flex-direction: column;
        padding: 15px;
        max-width: 100%;
    }

    .wof-wheel-section {
        order: 1;
        padding: 10px;
    }

    .wof-form-section {
        order: 2;
        padding: 25px 20px;
        max-width: 100%;
    }

    #wof-wheel {
        max-width: 320px;
        height: 320px;
    }

    .wheel-wrapper {
        transform: scale(0.95);
    }

    .phone-input-group {
        flex-direction: row;
        gap: 8px;
    }

    .phone-input-group input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .phone-input-group button {
        min-width: 100px;
        padding: 12px 16px;
        font-size: 14px;
        white-space: normal;
        line-height: 1.3;
    }

    /* موبایل - استایل‌های نتیجه */
    .result-success,
    .result-warning {
        padding: 20px 15px;
        margin: 15px 0;
    }

    .result-success h3,
    .result-warning h3 {
        font-size: 20px;
    }

    .result-success p,
    .result-warning p {
        font-size: 15px;
    }

    .discount-button-container {
        flex-direction: column;
        gap: 12px;
    }

    .discount-code,
    .course-button {
        min-width: 100%;
        max-width: 100%;
        padding: 15px 25px;
    }

    .discount-code {
        font-size: 16px;
    }

    .course-button {
        font-size: 15px;
    }
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 480px) {
    .phone-input-group {
        gap: 6px;
    }

    .phone-input-group input {
        font-size: 13px;
        padding: 10px 14px;
    }

    .phone-input-group button {
        min-width: 90px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .discount-button-container {
        gap: 10px;
    }

    .discount-code,
    .course-button {
        padding: 12px 20px;
    }

    .code-text {
        font-size: 18px;
    }

    .result-success h3,
    .result-warning h3 {
        font-size: 18px;
    }

    .result-success p,
    .result-warning p {
        font-size: 14px;
    }
}

/* تبلت */
@media (min-width: 769px) and (max-width: 1024px) {
    .wof-container {
        max-width: 95%;
    }

    #wof-wheel {
        max-width: 350px;
        height: 350px;
    }
}

/* انیمیشن‌های ظریف */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    }

    100% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }
}

.discount-code {
    animation: pulse 2s infinite;
}

.discount-code:hover {
    animation: none;
}