/* Network Quote Pro - Frontend Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-gray: #ecf0f1;
    --dark-gray: #34495e;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    background-color: #f5f7fa;
    color: #333;
}

.nqp-form-container {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Progress Bar */
.nqp-progress {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to left, #3498db, #2980b9);
    padding: 30px 20px;
    position: relative;
}

.nqp-progress::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.progress-step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    z-index: 1;
    transition: var(--transition);
    cursor: pointer;
}

.progress-step.active {
    background: white;
    color: #3498db;
    transform: scale(1.1);
}

.progress-step.completed {
    background: var(--success-color);
    color: white;
}

/* Form Steps */
.nqp-form-step {
    padding: 40px 30px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nqp-step-header {
    margin-bottom: 30px;
    text-align: center;
}

.nqp-step-header h2 {
    color: var(--dark-gray);
    font-size: 24px;
    margin-bottom: 10px;
}

.nqp-step-header p {
    color: #666;
    font-size: 14px;
}

/* Services Grid */
.nqp-services-grid {
    margin-bottom: 30px;
}

.service-category {
    margin-bottom: 30px;
}

.service-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    border-right: 3px solid var(--primary-color);
    padding-right: 10px;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.service-card {
    background: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.service-card.active {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

.service-card h4 {
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 14px;
}

.service-card p {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

/* Options */
.nqp-options {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.option-radio {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.option-radio:hover {
    border-color: var(--primary-color);
    background: #f9f9f9;
}

.option-radio input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
}

.option-radio span {
    color: var(--dark-gray);
}

/* Tier Buttons */
.nqp-tier-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.tier-btn {
    background: var(--light-gray);
    border: 2px solid transparent;
    padding: 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.tier-btn:hover {
    border-color: var(--primary-color);
    background: white;
}

.tier-btn.active {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

.tier-name {
    display: block;
    font-weight: bold;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.tier-desc {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Products Grid */
.nqp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.product-card h4 {
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-size: 14px;
}

.product-desc {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    color: var(--success-color);
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.market-price {
    font-size: 11px;
    color: var(--warning-color);
}

/* Additional Services */
.nqp-additional-services {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.nqp-additional-services label {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.nqp-additional-services input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
}

/* Pricing Summary */
.nqp-pricing-summary {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.pricing-table thead {
    background: var(--dark-gray);
    color: white;
}

.pricing-table th {
    padding: 12px;
    text-align: right;
    font-weight: bold;
}

.pricing-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-breakdown {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.price-row span {
    color: #666;
}

.price-row strong {
    color: var(--dark-gray);
    font-weight: bold;
}

.price-row.discount {
    color: var(--warning-color);
}

.price-row.tax {
    color: var(--primary-color);
}

.price-row.total {
    border-top: 2px solid var(--dark-gray);
    border-bottom: 2px solid var(--dark-gray);
    padding: 15px 0;
    font-size: 16px;
}

.price-row.total strong {
    color: var(--success-color);
    font-size: 18px;
}

/* Customer Form */
.nqp-customer-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Tahoma', 'Arial', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-prev,
.btn-next {
    background: var(--primary-color);
    color: white;
}

.btn-prev:hover,
.btn-next:hover {
    background: #2980b9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-submit {
    background: var(--success-color);
    color: white;
    font-size: 16px;
    padding: 15px 40px;
}

.btn-submit:hover {
    background: #229954;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

/* Navigation */
.nqp-step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.nqp-step-navigation button {
    min-width: 120px;
}

/* Success Message */
.nqp-success-message {
    text-align: center;
    padding: 40px 20px;
}

.nqp-success-message h2 {
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .nqp-form-container {
        margin: 10px;
    }

    .nqp-form-step {
        padding: 20px 15px;
    }

    .nqp-progress {
        padding: 15px 10px;
    }

    .progress-step {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .service-options,
    .nqp-products-grid {
        grid-template-columns: 1fr;
    }

    .nqp-tier-buttons {
        grid-template-columns: 1fr;
    }

    .nqp-step-navigation {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
}
