/* 1. Main Container Standardization */
.ucm-ai-funnel {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    padding: 40px;
    border-radius: 24px; /* Slightly smoother radius */
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    text-align: center;
    overflow: hidden;
}

/* 2. Premium Offer Banner */
.ucm-funnel-offer-banner {
    background: #10b981;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    animation: pulse-green 2s infinite;
}

.ucm-funnel-offer-banner strong {
    text-transform: uppercase;
    margin-left: 5px;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* 3. Progress Bar Smoothing */
.ucm-funnel-progress {
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

#funnel-progress-bar {
    height: 100%;
    background: #10b981;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#funnel-progress-text {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

/* 4. Grid Selection (Degree, Budget, Exp, Mode, etc.) */
.funnel-step { display: none; }
.funnel-step.active { display: block; }

.funnel-step h2 {
    color: #1e293b;
    font-size: 26px;
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.3;
}

.funnel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Uniform grid width */
    gap: 16px;
    margin: 20px 0;
}

.funnel-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 140px; /* Standardized card height */
    padding: 20px;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
    color: #334155 !important; 
    font-size: 15px;
    font-weight: 700;
}

.funnel-opt .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #2563eb; 
}

.funnel-opt:hover {
    border-color: #2563eb;
    background-color: #f8fafc;
    color: #2563eb !important;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
    transform: translateY(-3px);
}

/* 5. Standardized Search & Suggestions */
.ucm-funnel-search-wrap { 
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative; 
}

.funnel-search-input { 
    width: 100%; 
    height: 58px;
    padding: 0 25px; 
    border: 2px solid #e2e8f0; 
    border-radius: 14px; 
    font-size: 16px; 
    outline: none; 
    transition: 0.3s; 
    background: #f8fafc;
}

.funnel-search-input:focus { 
    border-color: #2563eb; 
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); 
}

.ucm-funnel-results-box { 
    position: absolute; 
    top: 105%; 
    left: 0; 
    width: 100%; 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    z-index: 100; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    max-height: 250px; 
    overflow-y: auto; 
}

/* 6. Standardized Quick Picks (Small Squares) */
.ucm-quick-picks { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); 
    gap: 12px; 
    margin-top: 15px; 
}

.ucm-quick-box { 
    background: #fff; 
    border: 1.5px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 15px 10px; 
    font-size: 12px; 
    font-weight: 700; 
    color: #475569; 
    cursor: pointer; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    min-height: 70px; 
}

.ucm-quick-box:hover { 
    border-color: #2563eb; 
    color: #2563eb; 
    background: #f0f9ff; 
    transform: translateY(-2px); 
}

/* 7. Specialization Category Scroll Bar */
.ucm-scroll-area {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 10px;
}

.ucm-scroll-area::-webkit-scrollbar { width: 6px; }
.ucm-scroll-area::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
.ucm-scroll-area::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.ucm-spec-category-label { 
    font-size: 10px; 
    font-weight: 800; 
    color: #0369a1; 
    text-transform: uppercase; 
    margin-top: 25px; 
    margin-bottom: 10px; 
    border-bottom: 1px solid #e0f2fe; 
    padding-bottom: 5px; 
    text-align: left; 
    width: 100%; 
    letter-spacing: 0.5px;
}

/* 8. Standardized Form (Stage 9) */
.ucm-form-container {
    max-width: 650px;
    margin: 0 auto;
}

.ucm-form-row { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 20px; 
}

.ucm-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ucm-input-group label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
}

#ucm-funnel-lead-form input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
}

/* 9. Final Submission Button */
.funnel-submit {
    background: #ff5722;
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    margin-top: 10px;
}

.funnel-submit:hover {
    background: #e64a19;
    box-shadow: 0 5px 15px rgba(230, 74, 25, 0.3);
}

/* 10. Trust Section & Navigation */
.ucm-funnel-advantages {
    background: #f0f9ff;
    border: 1px solid #e0f2fe;
    border-radius: 12px;
    padding: 15px;
    margin-top: 30px;
    text-align: center;
}

.adv-badge {
    background: #dcfce7; 
    color: #16a34a;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
}

#funnel-prev {
    color: #64748b;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 15px;
}

/* Responsive Jumps */
@media screen and (max-width: 600px) {
    .ucm-form-row { flex-direction: column; gap: 15px; }
    .funnel-grid { grid-template-columns: 1fr; }
    .ucm-ai-funnel { padding: 25px 20px; }
}