/* Order Page Specific Styles */

.order-main {
    padding-top: 120px;
    padding-bottom: 5rem;
}

.order-hero p {
    max-width: 600px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.order-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 3rem;
    border-radius: 24px;
    margin-top: 3rem;
    align-items: start;
}

.configurator h2 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-light);
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border-glass);
    margin: 3rem 0;
}

.config-group {
    margin-bottom: 2rem;
}

.config-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-body);
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 1rem center;
    /* RTL support */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.form-control option {
    background: var(--bg-base);
    color: var(--text-main);
}

/* Fixed Option Card */
.option-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.option-card i {
    font-size: 2.5rem;
    color: var(--primary-light);
}

.option-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.option-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    /* RTL */
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Range Slider */
.range-slider {
    position: relative;
    width: 100%;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0 5px;
}

/* Addons Checkbox Grid */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-card input {
    display: none;
}

.checkbox-card .card-content {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checkbox-card .card-content i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.checkbox-card .info h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.checkbox-card .info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.checkbox-card .price {
    margin-top: auto;
    font-weight: bold;
    color: var(--accent);
}

.checkbox-card input:checked+.card-content {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.checkbox-card input:checked+.card-content i {
    color: var(--primary-light);
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    padding: 0.3rem;
    border: 1px solid var(--border-glass);
}

.cycle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.cycle-btn:hover {
    color: var(--text-main);
}

.cycle-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}


/* Order Summary Sidebar */
.order-summary {
    position: sticky;
    top: 120px;
}

.summary-card {
    padding: 2rem;
    border-radius: 16px;
    border-top: 4px solid var(--primary);
}

.summary-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.summary-list {
    list-style: none;
    margin-bottom: 2rem;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.summary-list li .val {
    font-weight: bold;
    color: var(--accent);
}

.total-box {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-glass);
    margin-bottom: 1rem;
}

.total-label {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.total-price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.disclaimer {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .order-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: relative;
        top: 0;
        order: -1;
        /* Move summary to top on mobile */
    }
}

@media (max-width: 768px) {
    .billing-toggle {
        flex-direction: column;
        border-radius: 12px;
    }

    .cycle-btn {
        border-radius: 8px;
    }
}