﻿ 
.demo-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

    .step.active {
        border-color: var(--primary-color-4);
        background: linear-gradient(135deg, #fff, #f8f9fa);
        transform: translateX(10px);
    }

    .step:hover {
        transform: translateX(5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color-4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color-1);
    animation: pulse 2s infinite;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}

/* Phone Mockup */
.phone-mockup {
    width: 320px;
    height: 640px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 2rem 1.5rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.screen-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    color: white;
}

.app-step {
    display: none;
    flex-direction: column;
    height: 100%;
}

    .app-step.active {
        display: flex;
    }

.app-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem 1rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

.app-body {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Step 1 Styles */
.field-options {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1rem;
}

.field-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    flex: 1;
    margin: 0 0.2rem;
}

    .field-option.active {
        background: rgba(255,255,255,0.2);
        opacity: 1;
        transform: scale(1.05);
    }

    .field-option i {
        font-size: 1.5rem;
    }

    .field-option span {
        font-size: 0.8rem;
    }

.field-details {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

    .field-details h5 {
        margin-bottom: 0.5rem;
        font-size: 1.2rem;
    }

    .field-details p {
        margin-bottom: 1rem;
        opacity: 0.9;
        font-size: 0.9rem;
    }

.price-for-field {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}

/* Step 2 Styles */
.calendar-header {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.calendar-days {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1rem;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.month-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
}

.day {
    text-align: center;
    padding: 0.5rem 0.3rem;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .day.today {
        background: rgba(79, 172, 254, 0.3);
        font-weight: bold;
    }

    .day.other {
        opacity: 0.3;
    }

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slot {
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .slot.available {
        background: rgba(40, 167, 69, 0.3);
    }

    .slot.booked {
        background: rgba(220, 53, 69, 0.3);
        opacity: 0.5;
        text-decoration: line-through;
    }

/* Step 3 Styles */
.payment-summary {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.total {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-weight: bold;
    font-size: 1.1rem;
}

.amount {
    color: #4facfe;
}

.payment-methods {
    display: flex;
    gap: 0.5rem;
}

.payment-method {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

    .payment-method.active {
        background: rgba(255,255,255,0.2);
        opacity: 1;
    }

    .payment-method i {
        font-size: 1.3rem;
    }

    .payment-method span {
        font-size: 0.8rem;
    }

/* Demo Action Button */
.demo-action {
    margin-top: auto;
}

.btn-demo {
    width: 100%;
    padding: 1rem;
    background: rgba(79, 172, 254, 0.8);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .btn-demo:hover {
        background: rgba(79, 172, 254, 1);
        transform: scale(1.02);
    }

.pay-btn {
    background: rgba(40, 167, 69, 0.8);
}

    .pay-btn:hover {
        background: rgba(40, 167, 69, 1);
    }

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - بهینه‌سازی برای موبایل */
@media (max-width: 1199.98px) {
    .demo-container {
        grid-template-columns: 1fr 350px;
        gap: 2.5rem;
    }

    .phone-mockup {
        width: 300px;
        height: 600px;
        padding: 1.5rem 1rem;
    }

    .step {
        padding: 1.25rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .demo-container {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
        padding: 1.25rem 0.75rem;
    }

    .step {
        padding: 1rem;
        gap: 0.75rem;
    }

    .step-content h4 {
        font-size: 1.1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .app-header {
        padding: 1.25rem 0.75rem 0.75rem;
        font-size: 1rem;
    }

    .app-body {
        padding: 1.25rem 0.75rem;
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .demo-steps {
        order: 2;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .demo-visual {
        order: 1;
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
        padding: 0.75rem 0.5rem;
        margin: 0 auto;
    }

    .phone-screen {
        border-radius: 20px;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1rem 0.75rem;
        min-height: auto;
    }

        .step.active {
            transform: translateY(-3px);
        }

        .step:hover {
            transform: translateY(-2px);
        }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .step-content h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        line-height: 1.3;
    }

    .step-content p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .app-header {
        padding: 0.75rem 0.5rem 0.5rem;
        font-size: 0.85rem;
    }

    .app-body {
        padding: 0.75rem 0.5rem;
        gap: 0.75rem;
    }

    .field-options {
        padding: 0.5rem;
    }

    .field-option {
        padding: 0.375rem;
    }

        .field-option i {
            font-size: 1rem;
        }

        .field-option span {
            font-size: 0.65rem;
        }

    .field-details {
        padding: 0.75rem;
    }

        .field-details h5 {
            font-size: 0.9rem;
        }

        .field-details p {
            font-size: 0.7rem;
            margin-bottom: 0.5rem;
        }

    .price-for-field {
        font-size: 0.9rem;
    }

    .calendar-header {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .calendar-days {
        padding: 0.5rem;
    }

    .week-days {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .month-days {
        gap: 0.2rem;
    }

    .day {
        padding: 0.25rem 0.15rem;
        font-size: 0.65rem;
        border-radius: 5px;
    }

    .time-slots {
        gap: 0.25rem;
    }

    .slot {
        padding: 0.5rem;
        font-size: 0.75rem;
        border-radius: 7px;
    }

    .payment-summary {
        padding: 0.75rem;
    }

    .summary-item {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .total {
        font-size: 0.85rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }

    .payment-methods {
        gap: 0.25rem;
    }

    .payment-method {
        padding: 0.5rem;
    }

        .payment-method i {
            font-size: 0.9rem;
        }

        .payment-method span {
            font-size: 0.65rem;
        }

    .btn-demo {
        padding: 0.6rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 1.3rem;
    }

    .section-header .lead {
        font-size: 0.8rem;
    }

    .demo-steps {
        gap: 0.75rem;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 0.5rem 0.375rem;
        border-radius: 25px;
    }

    .phone-screen {
        border-radius: 18px;
    }

    .step {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-content h4 {
        font-size: 0.8rem;
    }

    .step-content p {
        font-size: 0.7rem;
    }

    .app-header {
        padding: 0.5rem 0.375rem 0.375rem;
        font-size: 0.8rem;
    }

    .app-body {
        padding: 0.5rem 0.375rem;
        gap: 0.5rem;
    }

    .field-options {
        padding: 0.375rem;
    }

    .field-option {
        padding: 0.25rem;
    }

        .field-option i {
            font-size: 0.9rem;
        }

        .field-option span {
            font-size: 0.6rem;
        }

    .field-details {
        padding: 0.5rem;
    }

        .field-details h5 {
            font-size: 0.8rem;
        }

        .field-details p {
            font-size: 0.65rem;
        }

    .price-for-field {
        font-size: 0.8rem;
    }

    .calendar-header {
        font-size: 0.8rem;
    }

    .calendar-days {
        padding: 0.375rem;
    }

    .week-days {
        font-size: 0.65rem;
    }

    .day {
        padding: 0.2rem 0.1rem;
        font-size: 0.6rem;
    }

    .slot {
        padding: 0.375rem;
        font-size: 0.7rem;
    }

    .payment-summary {
        padding: 0.5rem;
    }

    .summary-item {
        font-size: 0.7rem;
    }

    .total {
        font-size: 0.8rem;
    }

    .payment-method {
        padding: 0.375rem;
    }

        .payment-method i {
            font-size: 0.8rem;
        }

        .payment-method span {
            font-size: 0.6rem;
        }

    .btn-demo {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* بهبود نمایش در حالت لنداسکیپ موبایل */
@media (max-width: 991.98px) and (orientation: landscape) {
    .demo-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .demo-steps {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .phone-mockup {
        width: 200px;
        height: 350px;
    }

    .step {
        flex-direction: row;
        text-align: right;
        padding: 0.75rem;
    }
}
