﻿@font-face {
    font-family: 'peyda';
    src: url('../font/peyda-black[@mimvid].ttf') format('truetype');
}

:root {
    --blue-500: #0ea5e9;
    --blue-700: #075985;
    --blue-900: #003b6f;
    --yellow-500: #f59e0b;
    --bg: #f6fbff;
    --card: #ffffff;
    --muted: #64748b;
    --glass: rgba(255,255,255,0.6);
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: Peyda, "Helvetica Neue", Tahoma, Arial, sans-serif;
    background: linear-gradient(180deg,#f8fcff 0%, #f2f8ff 100%);
    color: var(--blue-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* لایه‌بندی کلی */
.layout {
    display: flex;
    gap: 28px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 18px;
    align-items: flex-start;
}

/* ========== SIDEBAR ========== */
.sidebar {
    color: #fff;
    position: sticky;
    top: 112px; /* ارتفاع منو + کمی فاصله (تنظیم کن) */
    z-index: 2; /* مطمئن می‌شویم زیر محتوا پنهان نشود */
    /*max-height: calc(100vh - 112px - 24px);*/ /* داخل ویوپورت جا شود */
    overflow: auto;
    /* استایل‌های قبلی خودت: */
    background: linear-gradient(180deg, rgba(6,76,129,0.95) 0%, rgba(1,44,88,0.95) 100%);
    padding: 28px 22px 24px;
    border-left: 1px solid #eef2f6;
    box-shadow: -8px 0 28px rgba(16,24,40,.04);
    border-radius: 20px;
}

.brand {
    font-weight: 800;
    font-size: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg,var(--yellow-500), #ffd24a);
    display: inline-block;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* کاروسل کوچک */
.sidebar .carousel-compact {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.slide-media {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 -30px 80px rgba(0,0,0,0.12);
}

    .slide-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.05);
        transition: transform .9s cubic-bezier(.2,.9,.2,1);
    }

.carousel-compact:hover .slide-media img {
    transform: scale(1.0)
}

.slide-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.slide-title {
    font-weight: 800;
    font-size: 16px;
    color: #103b65;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.slide-price {
    background: rgba(255,255,255,0.12);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--yellow-500);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18) inset;
}

.carousel-controls {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
    justify-content: space-between;
}

.dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.3);
    transition: transform .18s, background .18s;
}

    .dot.active {
        transform: scale(1.3);
        background: var(--yellow-500);
    }

.ctrl {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.06);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .15s ease, background .15s;
}

    .ctrl:hover {
        transform: translateY(-4px);
        background: rgba(255,255,255,0.12)
    }

/* باکس‌های اطلاعاتی */
.side-boxes {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.info-box {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 8px 20px rgba(2,6,23,0.12);
    transition: transform .25s cubic-bezier(.2,.9,.2,1), box-shadow .25s;
}

    .info-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 36px rgba(2,6,23,0.18)
    }

    .info-box .icon {
        width: 46px;
        height: 46px;
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
        display: grid;
        place-items: center;
        font-weight: 800;
        color: var(--yellow-500);
        flex-shrink: 0;
    }

    .info-box .txt {
        font-size: 14px;
        color: #fff;
        font-weight: 700
    }

/* دکمه مشاوره رایگان */
.free-cta {
    display: block;
    margin-top: 18px;
    background: linear-gradient(90deg,var(--yellow-500), #ffd24a);
    color: var(--blue-900);
    border: none;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(245,158,11,0.18);
    transition: transform .14s ease, box-shadow .14s;
    width: 100%;
    text-align: center;
}

    .free-cta:hover {
        transform: translateY(-4px);
        box-shadow: 0 26px 48px rgba(245,158,11,0.26)
    }

/* تماس پایین ثابت */
.floating-call {
    position: fixed;
    left: 24px;
    bottom: 24px;
    background: linear-gradient(180deg,#063a63,#025b93);
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(2,6,23,0.2);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 1200;
}

    .floating-call .tel {
        font-weight: 800;
        font-size: 15px
    }

    .floating-call .book {
        background: var(--yellow-500);
        color: var(--blue-900);
        padding: 8px 10px;
        border-radius: 8px;
        font-weight: 800;
        cursor: pointer
    }

/* scrollbar سبک در سایدبار */
.sidebar::-webkit-scrollbar {
    width: 8px
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 8px
}

/* ========== MAIN ========== */
.main {
    flex: 1;
    min-height: 600px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 14px
}

    .breadcrumb a {
        color: var(--muted);
        text-decoration: none
    }

    .breadcrumb .dot {
        width: 6px;
        height: 6px;
        background: var(--muted);
        border-radius: 99px;
        display: inline-block
    }

h1 {
    font-size: 28px;
    margin: 6px 0 10px;
    color: var(--blue-900)
}

.meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    margin-bottom: 14px;
    font-size:12px;
}

.top-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap
}

.pill {
    background: #e6f9ff;
    color: var(--blue-900);
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 700
}

.cta {
    background: var(--blue-500);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(14,165,233,0.18);
    transition: transform .12s ease;
    font-family: Peyda;
}

    .cta:hover {
        transform: translateY(-4px)
    }

.note {
    background: linear-gradient(90deg, rgba(255,243,205,0.95), rgba(255,250,235,0.95));
    padding: 12px 14px;
    border-radius: 12px;
    color: #3b3b3b;
    margin-bottom: 18px;
    border: 1px solid rgba(245,158,11,0.08)
}

/* کارت‌های دسترسی سریع */
.quick-wrap {
    margin-bottom: 18px;
    display:flex;
    gap:10px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-900);
    font-weight: 800;
    margin-bottom: 12px
}

    .section-title .dot {
        width: 10px;
        height: 10px;
        border-radius: 99px;
        background: var(--blue-500)
    }

.quick {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.q-card {
    background: linear-gradient(180deg,#fff,#f7fbff);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 31%;
    box-shadow: 0 12px 30px rgba(2,6,23,0.06);
    cursor: pointer;
    transform: translateY(0);
    transition: transform .28s cubic-bezier(.2,.85,.2,1), box-shadow .28s;
    animation: cardIn .45s ease forwards;
}

    .q-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 44px rgba(2,6,23,0.12)
    }

.q-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(180deg,var(--blue-500),var(--blue-700));
    color: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* کارت‌های مقاله */
.card {
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px
}

    .card .badge {
        display: inline-block;
        background: var(--yellow-500);
        color: var(--blue-900);
        padding: 6px 10px;
        border-radius: 999px;
        font-weight: 800;
        font-size: 13px;
        margin-bottom: 10px
    }

.list {
    margin: 10px 0 0;
    padding-left: 18px
}

    .list li {
        margin: 8px 0;
        color: #0f172a
    }

/* Carousel بزرگ مقاله (نمایشی) */
.carousel-large {
    margin-top: 14px
}

    .carousel-large .track {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
    }

    .carousel-large .slide {
        flex: 0 0 78%;
        scroll-snap-align: center;
        background: var(--card);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 12px 26px rgba(2,6,23,0.08);
        transition: transform .18s ease;
    }

        .carousel-large .slide:hover {
            transform: translateY(-8px)
        }

.slide .slide-body {
    padding: 14px
}

/* ریسپانسیو */
@media (max-width:980px) {
    .layout {
        flex-direction: column;
        padding: 12px;
        gap: 16px;
        margin: 14px
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: auto;
        padding: 16px
    }

    .carousel-large .slide {
        flex-basis: 92%
    }

    .q-card {
        min-width: 100px
    }
}

.form-wrap {
    max-width: 780px;
    margin: auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(40,80,140,0.07);
    overflow: hidden;
}
/* header */
.form-head {
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.form-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(160deg,#1e86ff,#4cb8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
}

.form-h-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e86ff
}

.form-h-sub {
    font-size: 13px;
    color: #8aaad6
}
/* layout */
.form-body {
    display: flex;
    padding: 14px;
    gap: 14px;
}

@media(max-width:720px) {
    .form-body {
        flex-direction: column;
    }
}
/* steps */
.form-main {
    flex: 1
}

.form-step {
    display: none
}

    .form-step.active {
        display: block
    }

.form-panel {
    width: 230px;
    min-width: 200px;
    background: linear-gradient(180deg,#f9fcff,#f1f7ff);
    border-radius: 16px;
    padding: 14px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
    height: fit-content;
}

@media(max-width:720px) {
    .form-panel {
        width: 100%;
        order: -1
    }
}

.form-panel h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #1e86ff;
    font-weight: 700
}

.form-p-row {
    margin-bottom: 12px;
    font-size: 14px
}

.form-p-key {
    font-size: 12px;
    color: #8aaad6
}

.form-p-val {
    font-weight: 600;
    color: #103b7a
}
/* fields */
.form-row {
    display: flex;
    gap: 50px;
    margin-left: 20px;
}

.form-field {
    flex: 1
}

label {
    font-size: 12px;
    color: #8aaad6;
    display: block;
    margin-bottom: 6px
}

input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid #d8e7ff;
    font-size: 14px;
}
/* buttons */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px
}

.form-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    text-align: center;
}

.form-btn-main {
    background: #1e86ff;
    color: #fff
}

.form-btn-sec {
    background: #e9f3ff;
    color: #1e86ff
}
/* calendar */
.form-cal {
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #e3edff;
}

.form-cal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1e86ff;
}

.form-nav-btn {
    background: #e9f3ff;
    border-radius: 8px;
    padding: 6px 10px;
    color: #1e86ff;
    cursor: pointer
}

.form-week {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    font-size: 12px;
    color: #8aaad6;
    margin-bottom: 6px;
    text-align: center
}

.form-days {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 6px
}

.form-day {
    padding: 8px 0;
    text-align: center;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    background: #f7fbff;
    border: 1px solid #e2ecff
}

    .form-day.sel {
        background: linear-gradient(170deg,#1e86ff,#4cb8ff);
        color: #fff;
        border: 0;
        font-weight: 700
    }
/* times */
.form-times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px
}

.form-t {
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid #d8e7ff;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer
}

    .form-t.sel {
        background: #1e86ff;
        color: #fff;
        border: 0
    }
/* review */
.form-success {
    margin-top: 14px;
    padding: 10px 14px;
    background: #eaffea;
    border-radius: 12px;
    color: #0b8c31;
    font-weight: 700;
    display: none;
}

    .form-success.show {
        display: block
    }
/* INFO BOXES */
.info-cards-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: linear-gradient(180deg,#0ea5e9,#075985);
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 12px 28px rgba(3,40,80,0.25);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .info-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 45px rgba(3,40,80,0.4);
    }

    .info-card img {
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

    .info-card h3 {
        margin: 12px;
        font-size: 17px;
        font-weight: 800;
    }

    .info-card ul {
        list-style: none;
        padding: 0 14px;
        margin: 8px 0;
        font-size: 14px;
    }

        .info-card ul li {
            margin: 6px 0;
        }

    .info-card button {
        width: calc(100% - 28px);
        margin: 12px 14px 16px;
        border: none;
        border-radius: 10px;
        background: #facc15;
        color: #0a2540;
        font-weight: 800;
        padding: 10px;
        cursor: pointer;
        transition: transform .15s ease;
    }

        .info-card button:hover {
            transform: scale(1.03);
        }
.q-link {
    text-decoration: none;
    color: inherit;
    width:32%;
}
