/* ============================================
   محاسبه‌گر شانس قبولی تیزهوشان - استایل اختصاصی
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;
    --gold: #f59e0b;
    --gold-light: #facc15;
    --red: #ef4444;
    --green: #22c55e;
    --blue: #3b82f6;
    --purple: #7c3aed;
    --violet: #8b5cf6;
    --sky: #0ea5e9;
    --bg: #f8fafc;
    --white: #ffffff;
    --text: #1e1e2e;
    --text-soft: #6b7280;
    --border: #e2e8f0;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ======================
   Hero Section
   ====================== */
.calc-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.calc-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.calc-hero__title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.calc-hero__highlight {
    color: #facc15;
}

.calc-hero__desc {
    opacity: 0.9;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    color:#facc15;
}

/* ======================
   Container
   ====================== */
.calc-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ======================
   Calculator Card
   ====================== */
.calc-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.calc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa);
}

.calc-card__title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-align: center;
    color: #1e1b4b;
}

.calc-card__subtitle {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 28px;
    font-size: 0.9rem;
}

/* ======================
   Form Group
   ====================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group__icon {
    margin-left: 6px;
}

.form-group__select {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    font-family: inherit;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.form-group__select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: var(--white);
}

/* ======================
   Range Group
   ====================== */
.range-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.range-group__slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
    outline: none;
    cursor: pointer;
}

.range-group__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.range-group__value {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--primary);
    min-width: 50px;
    text-align: center;
}

.range-group__unit {
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* ======================
   Intelligence Grid
   ====================== */
.intel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.intel-item {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border: 1px solid var(--border);
}

.intel-item__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.intel-item__range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.intel-item__range input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.intel-item__range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    cursor: pointer;
}

.intel-item__value {
    font-weight: 800;
    font-size: 0.9rem;
    min-width: 35px;
    text-align: center;
}

.intel-item__value--green { color: #22c55e; }
.intel-item__value--blue { color: #3b82f6; }
.intel-item__value--purple { color: #7c3aed; }
.intel-item__value--red { color: #dc2626; }
.intel-item__value--sky { color: #0ea5e9; }
.intel-item__value--violet { color: #8b5cf6; }

/* ======================
   Calculate Button
   ====================== */
.calc-btn {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 900;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
    margin-top: 24px;
}

.calc-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
}

/* ======================
   Result Box
   ====================== */
.result-box {
    display: none;
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--green);
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.result-box__circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    border: 8px solid transparent;
}

.result-box__circle--high {
    background: #dcfce7;
    color: #166534;
    border-color: #22c55e;
}

.result-box__circle--medium {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.result-box__circle--low {
    background: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.result-box__title {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.result-box__analysis {
    color: var(--text-soft);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.9;
}

.result-box__cta {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1e1b4b;
    border-radius: 40px;
    font-weight: 900;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
}

.result-box__cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 32px rgba(245, 158, 11, 0.6);
}

/* ======================
   Tips Box
   ====================== */
.tips-box {
    display: none;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.tips-box__title {
    font-weight: 900;
    margin-bottom: 16px;
    color: #1e1b4b;
    font-size: 1.1rem;
}

.tip-item {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.tip-item:last-child {
    border-bottom: none;
}

.tip-item__icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-item__text {
    font-size: 0.9rem;
    color: var(--text-soft);
    line-height: 1.8;
}

.tip-item__text strong {
    color: var(--text);
}

.tip-item__link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.tip-item__link:hover {
    text-decoration: underline;
}

/* ======================
   Responsive
   ====================== */
@media (max-width: 640px) {
    .calc-hero {
        padding: 30px 16px;
    }

    .calc-hero__title {
        font-size: 1.3rem;
    }

    .calc-card {
        padding: 24px 18px;
    }

    .intel-grid {
        grid-template-columns: 1fr;
    }

    .result-box__circle {
        width: 120px;
        height: 120px;
        font-size: 2.2rem;
    }

    .result-box {
        padding: 24px 18px;
    }
}