body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(90deg, #7a2efb, #9b47e0);
    min-height: 200px;
}

    .hero-section h2 {
        font-size: 1.9rem;
    }

.steps span {
    font-weight: 500;
}

/* Category Card */
.category-card {
    background-color: #fff;
    transition: all 0.3s ease;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }

    .category-card h5 {
        color: #4a148c;
        margin-top: 10px;
    }

/*modal*/
/* Modal Brand Cards */
.brand-card {
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .brand-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }

/* Placeholder for images */
.img-placeholder {
    background-color: #f0f0f0;
    height: 120px;
    border-radius: 12px;
}

/* Make modal header clean */
.modal-content {
    border-radius: 20px;
}

.modal-title {
    color: #4a148c;
}
/* Brand and Phone cards */
.brand-card, .phone-card {
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .brand-card:hover, .phone-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }

/* Placeholder for images */
.img-placeholder {
    background-color: #f0f0f0;
    height: 120px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .img-placeholder img {
        max-height: 100%;
        object-fit: cover;
    }

    /*condition question design*/
body {
    background-color: #f8f9fa;
}

.condition-page .condition-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    border: none;
}

.condition-card h5 {
    font-size: 1.05rem;
}

.condition-buttons {
    margin-top: 10px;
}

    .condition-buttons .btn {
        border: 1px solid #dcdcdc;
        background: #fff;
        color: #000;
        border-radius: 6px;
        padding: 6px 18px;
        margin-right: 8px;
        transition: all 0.2s ease;
        font-weight: 500;
    }

        .condition-buttons .btn:hover {
            background-color: #f3f3f3;
        }

.btn-check:checked + .btn.btn-yes {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.btn-check:checked + .btn.btn-no {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.continue-btn {
    background-color: #0d6efd;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
}

.device-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
    padding: 18px;
    max-width: 320px;
}

.device-image {
    /*width: 70px;*/
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}
.device-image1 {
    width: 70px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Soft rounded modal design */
.modal-content {
    border-radius: 1.5rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: none;
}

.text-purple {
    color: #6f42c1;
}

/* Elegant dropdown */
.stylish-dropdown {
    border: 1.5px solid #d0b7f9;
    border-radius: 1rem;
    color: #4b0082;
    background-color: #faf9ff;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.15);
    transition: all 0.25s ease;
}

    .stylish-dropdown:focus {
        border-color: #6f42c1;
        box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
    }

/* Card design */
.card {
    border: 1px solid #eee;
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background-color: #fff;
    top:20px;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 20px rgba(111, 66, 193, 0.15);
    }

    /* Card image */
    .card img {
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
        height: 130px;
        object-fit: contain;
    }

    /* Device name */
    .card h6 {
        color: #333;
        font-weight: 600;
    }

/* Select button */
.btn-outline-purple {
    border: 1.5px solid #6f42c1;
    color: #6f42c1;
    font-weight: 500;
    border-radius: 0.8rem;
    padding: 0.4rem 1.25rem;
    transition: all 0.25s ease;
}

    .btn-outline-purple:hover {
        background-color: #6f42c1;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(111, 66, 193, 0.2);
    }

/* Responsive adjustments */
@media (max-width: 576px) {
    .modal-content {
        border-radius: 1rem;
        padding: 0.5rem;
    }

    .stylish-dropdown {
        width: 100% !important;
    }
}
.text-purple {
    color: #7A3EFF; /* Adjust to match your brand */
}

.stylish-dropdown, .stylish-input {
    border-radius: 12px;
    border: 1px solid #c5a8ff;
    box-shadow: 0 0 8px rgba(122, 62, 255, 0.1);
    transition: all 0.2s ease;
}

    .stylish-dropdown:focus, .stylish-input:focus {
        border-color: #7A3EFF;
        box-shadow: 0 0 8px rgba(122, 62, 255, 0.3);
    }

/* Ensure equal height cards */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Button hover effect */
.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
    transition: 0.2s ease;
}

    .btn-outline-purple:hover {
        background-color: #6f42c1;
        color: #fff;
    }


.text-purple {
    color: #6f42c1;
}

.btn-outline-purple {
    border-color: #6f42c1;
    color: #6f42c1;
    transition: all 0.2s ease;
}

    .btn-outline-purple:hover {
        background-color: #6f42c1;
        color: white;
    }

.card:hover {
    transform: translateY(-4px);
    transition: transform 0.2s ease;
}
/* Smooth fade animation for loader */
/* ===== MODAL THEME ===== */

/* Smooth fade-in animation */
.modal.fade .modal-dialog {
    transform: translateY(-10%);
    transition: all 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

/* Purple glow around modals */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

/* Modal header styling */
.modal-header {
    /*background: linear-gradient(90deg, #7e22ce, #a855f7);*/
    color: white;
    border-bottom: none;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

    /* Close button styling */
    .modal-header .btn-close {
        filter: invert(1);
        opacity: 0.9;
        transition: all 0.2s;
    }

        .modal-header .btn-close:hover {
            transform: rotate(90deg);
            opacity: 1;
        }

/* Modal body padding and soft background */
.modal-body {
    /*background-color: #faf7ff;*/
    /*border-bottom-left-radius: 1rem;*/
    border-bottom-right-radius: 1rem;
    padding: 1.5rem;
    width: 100%;
    display: block;
}

/* Category and model cards */
.category-card, .model-card {
    transition: all 0.25s ease;
    border-radius: 1rem !important;
}

    .category-card:hover, .model-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    }

/* ===== DROPDOWN + SEARCH BAR DESIGN ===== */

/* Unified container for filters */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

/* Search input */
#deviceSearch {
    border-radius: 0.75rem;
    border: 1px solid #d8b4fe;
    box-shadow: 0 0 4px rgba(139, 92, 246, 0.1);
}

    #deviceSearch:focus {
        border-color: #a855f7;
        box-shadow: 0 0 6px rgba(139, 92, 246, 0.3);
    }

/* Series dropdown */
#seriesDropdown {
    border-radius: 0.75rem;
    border: 1px solid #d8b4fe;
    box-shadow: 0 0 4px rgba(139, 92, 246, 0.1);
}

    #seriesDropdown:focus {
        border-color: #a855f7;
        box-shadow: 0 0 6px rgba(139, 92, 246, 0.3);
    }

/* ===== Loader Overlay Enhancement ===== */
#loaderOverlay {
    background: rgba(124, 58, 237, 0.25);
    backdrop-filter: blur(6px);
}

.spinner-border.text-light {
    color: #8b5cf6 !important;
}

.spinner-border {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
