﻿
.hidden {
    display: none !important;
}

.table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

/* ── WIZARD PROGRESS BAR ── */
.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 30px auto 40px;
    max-width: 600px;
}

.wp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

    .wp-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 18px;
        left: 50%;
        width: 100%;
        height: 2px;
        background: #ddd;
        z-index: 0;
        transition: background 0.3s;
    }

    .wp-step.done:not(:last-child)::after {
        background: #1e88e5;
    }

.wp-bubble {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: background 0.3s, color 0.3s;
    border: 2px solid #ddd;
}

.wp-step.active .wp-bubble {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
    box-shadow: 0 0 0 4px rgba(30,136,229,0.15);
}

.wp-step.done .wp-bubble {
    background: #1e88e5;
    color: #fff;
    border-color: #1e88e5;
}

.wp-label {
    margin-top: 6px;
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
    font-weight: 500;
}

.wp-step.active .wp-label,
.wp-step.done .wp-label {
    color: #1e88e5;
}

/* ── VALIDATION STYLES ── */
.input-modern.is-invalid {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 2px rgba(229,57,53,0.1) !important;
}

.field-error {
    color: #e53935;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

    .field-error.visible {
        display: block;
    }

/* shake animation on validation fail */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.shake {
    animation: shake 0.35s ease;
}

/* ── CARD ── */
.quote-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: auto;
}

/* ── SECTION TITLE ── */
.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* ── FORM INPUTS ── */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-size: 13px;
        color: #777;
        margin-bottom: 5px;
        display: block;
    }

.input-modern {
    width: 100%;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .input-modern:focus {
        border-color: #1e88e5;
        outline: none;
        box-shadow: 0 0 0 2px rgba(30,136,229,0.1);
    }

.textarea {
    height: 100px;
    padding-top: 10px;
}

/* ── PRODUCT / SERVICE ROWS ── */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s;
}

    .product-row:hover {
        background: #f7fbff;
    }

    .product-row.active {
        border-color: #1e88e5;
        background: #eef6ff;
    }

.product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .product-info img {
        width: 45px;
        height: 45px;
        object-fit: contain;
    }

.qty-input {
    width: 80px;
    height: 38px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* ── CONFIRM CARD ── */
.success-card {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
}

    .success-icon.confirm {
        background: #1e88e5;
    }

.success-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.success-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 10px;
}

.success-sub {
    font-size: 13px;
    color: #888;
}

/* ── WIZARD ACTIONS ── */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 40px auto 0;
}

.btn-back {
    background: transparent;
    border: none;
    color: #777;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

    .btn-back:hover {
        background: #f0f0f0;
    }

.btn-next {
    background: #1e88e5;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-next:hover {
        background: #1565c0;
    }

.btn-submit {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-submit:hover {
        background: #218838;
    }


/* ── ALERTS ── */
.alert-box {
    max-width: 900px;
    margin: 0 auto 25px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-alert {
    background: #eafaf1;
    border: 1px solid #27ae60;
    color: #1e8449;
}

.error-alert {
    background: #fdf2f2;
    border: 1px solid #e74c3c;
    color: #c0392b;
}

@media(max-width: 768px) {
    .quote-card {
        padding: 20px;
    }
}


