/* ========================================
   UNIFIED WIZARD CSS - MODERN DESIGN
   ========================================
   
   This file contains ALL wizard styling to ensure consistency
   across all quiz builder steps. Update here to change all pages.
   
   Used by:
   - index.html (Steps 1-7: Region, Method, Difficulty, Formats, Email, Summary)
   - customize_categories.html (Step 3: Category Builder)
   - generate_questions_only.html (Questions-only generator)
   
   ======================================== */

/* Import Google Fonts - Enhanced for Modern Look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ========================================
   GLOBAL BODY & BACKGROUND
   ======================================== */

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(94, 165, 163, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* ========================================
   WIZARD CONTAINER & CARD
   ======================================== */

.wizard-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 15px;
}

.wizard-card {
    background: white;
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 920px;
    width: 100%;
    min-height: 400px;
    border: none;
    position: relative;
    backdrop-filter: blur(20px);
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-card:hover {
    /* Remove transform to prevent entire section from shifting */
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 6px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   WIZARD HEADER
   ======================================== */

.wizard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #0891b2 50%, #0e7490 75%, #06b6d4 100%);
    padding: 20px 32px;
    color: white;
    text-align: left;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.wizard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 35%, rgba(255, 255, 255, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 65%, rgba(94, 165, 163, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 45% 15%, rgba(8, 145, 178, 0.1) 0%, transparent 25%);
    animation: headerFloat 15s ease-in-out infinite;
    z-index: 0;
}

.wizard-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
    animation: shimmer 8s linear infinite;
    z-index: 1;
}

@keyframes headerFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(1px) translateY(-1px); }
    50% { transform: translateX(-1px) translateY(1px); }
    75% { transform: translateX(1px) translateY(1px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.wizard-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
    line-height: 1.25;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step-indicator {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.header-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-link:hover .header-logo {
    transform: scale(1.05);
}

.app-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   PROGRESS BAR
   ======================================== */

.progress-bar-custom {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    margin: 20px 0 0 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #06d6a0 50%, #118ab2 100%);
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   WIZARD CONTENT
   ======================================== */

.wizard-content {
    padding: 0.5rem 2rem 1.5rem 2rem; /* Reduced top and bottom padding */
    background: #ffffff;
    color: #1f2937;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

/* Side-by-side layout for steps with progressive sidebar */
.wizard-content.with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Form section (left side) */
.form-section {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Form section when no sidebar is present - center content better */
.wizard-content:not(.with-sidebar) {
    display: block !important; /* Override flex layout when no sidebar */
}

.wizard-content:not(.with-sidebar) .form-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Ensure sidebar is completely hidden when not displayed */
.progress-sidebar[style*="display: none"] {
    display: none !important;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Force hide sidebar on step 1 - aggressive override */
.wizard-content:not(.with-sidebar) .progress-sidebar {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Categories sidebar (right side) */
.categories-sidebar {
    width: 320px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #dcfce7 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
    transition: all 0.6s ease-in-out;
}

/* Completion state for sidebar when all categories are done */
.categories-sidebar.sidebar-completed {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #dcfce7 100%);
    border: 2px solid #f59e0b;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3), 0 0 0 1px rgba(245, 158, 11, 0.1);
    position: relative;
}

.categories-sidebar.sidebar-completed::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f59e0b, #eab308, #f59e0b, #eab308);
    background-size: 400% 400%;
    border-radius: 14px;
    z-index: -1;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.categories-sidebar.sidebar-completed .categories-sidebar-title {
    color: #065f46;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
    position: relative;
}

.categories-sidebar.sidebar-completed .categories-sidebar-title::after {
    content: '🏆';
    margin-left: 0.5rem;
    font-size: 1.2em;
    animation: trophy-bounce 2s ease-in-out infinite;
}

@keyframes trophy-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.categories-sidebar.sidebar-completed .progress-item-label,
.categories-sidebar.sidebar-completed .progress-item-value {
    color: #065f46 !important;
}

.categories-sidebar.sidebar-completed .sidebar-category-item {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border: 1px solid #f59e0b;
    color: #065f46;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.categories-sidebar.sidebar-completed .sidebar-category-number {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.categories-sidebar.sidebar-completed .sidebar-category-name {
    color: #065f46;
    font-weight: 500;
}

/* Progressive sidebar for main wizard steps */
.progress-sidebar {
    width: 320px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #dcfce7 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #bbf7d0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

/* Reorder categories button in sidebar */
.reorder-categories-button {
    margin-top: 1rem;
    text-align: center;
}

.reorder-categories-button .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #10b981;
    color: #065f46;
    font-weight: 500;
}

.reorder-categories-button .btn:hover {
    background: #10b981;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

.reorder-categories-button .btn i {
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

.progress-sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 1rem;
    text-align: left;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.progress-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* Much smaller gap for super compact layout */
}

.progress-item {
    background: linear-gradient(135deg, #ffffff 0%, #f9fdfb 100%);
    border: 1px solid #d1fae5;
    border-radius: 6px;
    padding: 0.35rem 0.5rem; /* Much smaller padding for compactness */
    text-align: left;
    position: relative;
    min-height: 1.8rem; /* Compact height */
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.1);
}

.progress-item-label {
    font-size: 0.65rem; /* Much smaller font */
    color: #6b7280;
    margin-bottom: 0.1rem; /* Reduced margin */
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.progress-item-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.75rem; /* Much smaller font for compactness */
    display: flex;
    align-items: center;
    gap: 0.35rem; /* Reduced gap */
}

.progress-item-icon {
    font-size: 0.9rem; /* Much smaller icon for compactness */
}

/* Progress item states */
.progress-item-value.pending {
    opacity: 0.6;
    font-style: italic;
}

/* Clear buttons for progress items */
.progress-clear-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.6rem; /* Smaller font */
    padding: 1px 3px; /* Smaller padding */
    border-radius: 2px;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.progress-clear-btn:hover {
    opacity: 1;
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

/* Section headers for categories */
.progress-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.5rem 0 0.25rem 0; /* Much smaller margins */
    padding-bottom: 0.25rem; /* Reduced padding */
    border-bottom: 1px solid #e5e7eb;
}

.progress-section-header .progress-item-label {
    margin: 0;
    font-weight: 600;
    color: #374151;
}

.progress-section-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

/* Category slots styling */
.progress-item.category-slot {
    margin-bottom: 0;
    padding: 0.3rem 0.5rem; /* Much smaller padding for compactness */
    min-height: 1.6rem; /* Much smaller height */
    display: flex;
    align-items: center;
}

.progress-item.category-slot .progress-item-value {
    font-size: 0.7rem; /* Much smaller font for compactness */
}

.progress-item.category-slot .progress-item-icon {
    font-size: 0.65rem; /* Extra small icons for category slots */
}

/* Hover effects for clickable category items */
.progress-item.category-slot[style*="cursor: pointer"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.progress-item.category-slot[style*="cursor: pointer"]:active {
    transform: translateY(0);
}

.categories-sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 1rem;
    text-align: left;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.categories-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Reduced gap for more compact layout */
}

.sidebar-category-item {
    background: linear-gradient(135deg, #ffffff 0%, #f9fdfb 100%);
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 0.6rem 0.75rem; /* Reduced vertical padding */
    text-align: left;
    position: relative;
    transition: all 0.2s ease;
    min-height: 2.5rem; /* Ensure consistent height */
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.1);
}

.sidebar-category-item.current {
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Hover effects for clickable categories */
.sidebar-category-item[style*="cursor: pointer"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.sidebar-category-item[style*="cursor: pointer"]:active {
    transform: translateY(0);
}

.sidebar-category-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.sidebar-category-number {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.sidebar-category-item.current .sidebar-category-number {
    background: #16a34a;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.4);
}

/* Hide old top categories display (we now use sidebar) */
#previous-categories {
    display: none !important;
}

/* Simple final total display */
.final-total-container {
    margin: 2rem 0;
}

.total-display {
    background: linear-gradient(135deg, #ffffff 0%, #f9fdfb 100%);
    border: 2px solid #d1fae5;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.total-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.5rem;
}

.total-amount {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #22c55e !important;
    text-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

/* Responsive: Mobile stacked layout */
@media (max-width: 768px) {
    .wizard-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .categories-sidebar {
        width: 100%;
        order: -1; /* Show categories first on mobile */
    }
    
    .categories-sidebar-list {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .sidebar-category-item {
        min-width: 200px;
        flex-shrink: 0;
    }
}

.wizard-step {
    display: none !important;
}

.wizard-step.active {
    display: block !important;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

.step-question,
.question-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem; /* Reduced from 2rem */
    font-weight: 700;
    line-height: 1.1; /* Tighter line height */
    margin-bottom: 0.15rem; /* Reduced from 0.25rem */
    color: #0f172a;
    text-align: center;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-description,
.question-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem; /* Slightly smaller */
    color: #64748b;
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    line-height: 1.4; /* Tighter line height */
    text-align: center;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-next {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #0891b2 75%, #0e7490 100%);
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.btn-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(8, 145, 178, 0.3);
    color: white;
}

.btn-next:hover::before {
    left: 100%;
}

.btn-next:disabled {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 50%, #cbd5e1 100%);
    color: white;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
}

.btn-next:disabled::before {
    display: none;
}

.btn-next:disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-back {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    padding: 16px 32px;
    border-radius: 8px;
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 140px;
}

.btn-back:hover {
    border-color: #94a3b8;
    color: #334155;
    background: rgba(248, 250, 252, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Navigation Buttons Container - Better Layout */
.navigation-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 8px 0; /* Much reduced from 16px to move buttons higher */
    margin-top: 0 !important; /* Override Bootstrap mt-4 class completely */
}

.navigation-buttons-container .btn {
    margin: 0;
    min-width: 160px;
}

/* Ensure buttons look good when both are visible */
.navigation-buttons-container .btn-back:not(.hidden) + .btn-next,
.navigation-buttons-container .btn-back:not(.hidden) + .btn-next.hidden + .btn-next {
    margin-left: 0;
}

/* ========================================
   FORMS & INPUTS
   ======================================== */

.form-select-lg,
.form-control {
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.form-select-lg:focus,
.form-control:focus {
    border-color: #5ea5a3;
    box-shadow: 
        0 0 0 0.25rem rgba(94, 165, 163, 0.15),
        0 4px 12px rgba(94, 165, 163, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.form-floating label {
    color: #64748b;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

/* ========================================
   CATEGORY & REGION OPTIONS
   ======================================== */

.category-option,
.region-option {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.category-option::before,
.region-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.02) 0%, rgba(94, 165, 163, 0.02) 100%);
    z-index: -1;
    transition: all 0.3s ease;
}

.category-option:hover,
.region-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(8, 145, 178, 0.12);
    border-color: #06b6d4;
    background: rgba(248, 250, 252, 1);
}

.category-option:hover::before,
.region-option:hover::before {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, rgba(94, 165, 163, 0.05) 100%);
}

.category-option.selected,
.region-option.selected {
    border-color: #0e7490;
    background: rgba(8, 145, 178, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(8, 145, 178, 0.2);
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumb-section {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 20px;
    margin: 0 8px 8px 0;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #94a3b8;
    background: rgba(248, 250, 252, 1);
}

.breadcrumb-section strong {
    color: #0891b2;
    margin-right: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb-section .value {
    color: #1f2937;
    font-weight: 600;
}

/* ========================================
   CHOICE SELECTIONS & CONTAINERS
   ======================================== */

.choice-selections {
    background: transparent;
    padding: 8px 0;
    margin-bottom: 16px;
}

.region-selection-container {
    margin: 0 auto;
}

/* ========================================
   SINGLE CATEGORY FORM (Step 3)
   ======================================== */

.single-category-form {
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
    background: rgba(248, 250, 252, 0.5);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.category-input-group {
    margin-bottom: 2.5rem;
}

.question-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* ========================================
   DIFFICULTY SLIDER STYLES
   ======================================== */

.difficulty-slider-container {
    margin: 1rem 0;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.slider-container {
    position: relative;
    margin: 20px 0;
    padding: 0 14px; /* Add padding to account for slider thumb */
}

/* Simple, clean tick marks that actually work */
.slider-container::before {
    content: '● ● ● ● ● ●';
    position: absolute;
    top: 50%;
    left: 14px;
    right: 14px;
    transform: translateY(-50%);
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    line-height: 1;
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10 !important;
    letter-spacing: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any conflicting slider styling from other CSS files */
.difficulty-slider-container::before,
.difficulty-slider-container::after,
.difficulty-slider-container *::before,
.difficulty-slider-container *::after {
    display: none !important;
}

#difficulty-slider::before,
#difficulty-slider::after,
.difficulty-range::before,
.difficulty-range::after {
    display: none !important;
}

/* Aggressively hide any potential dot-creating elements */
.slider-container *:not(.difficulty-range):not(::before):not(::after) {
    color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force hide any inherited elements that might show */
.slider-container span,
.slider-container div:not(.difficulty-range),
.slider-container .slider-labels,
.slider-container .slider-label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Extra aggressive hiding for any potential conflicting elements */
#step-4 .slider-labels,
#step-4 .slider-label,
.difficulty-slider-container .slider-labels,
.difficulty-slider-container .slider-label,
.wizard-step .slider-labels,
.wizard-step .slider-label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.slider-labels {
    display: none !important; /* Hide the number labels */
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.slider-label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    text-align: center;
    width: 20px;
}

.slider-label.extreme {
    color: #dc2626;
    font-weight: 600;
}

.difficulty-display {
    text-align: center;
    margin-bottom: 1rem;
}

.difficulty-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.difficulty-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
}

#difficulty-slider.difficulty-range {
    width: calc(100% - 28px); /* Account for container padding */
    height: 8px;
    border-radius: 20px;
    background: linear-gradient(to right, #22c55e 0%, #65a30d 20%, #eab308 40%, #f97316 60%, #ef4444 80%, #dc2626 100%);
    outline: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 0 14px; /* Center within the container */
}

#difficulty-slider.difficulty-range:hover {
    opacity: 1;
}

#difficulty-slider.difficulty-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid #0891b2;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
}

#difficulty-slider.difficulty-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #0e7490;
}

#difficulty-slider.difficulty-range::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid #0891b2;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Sample Questions Styling */
.sample-questions-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sample-questions-container h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.sample-questions {
    display: grid;
    gap: 12px;
    text-align: left;
}

.sample-question {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sample-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0891b2, #0e7490, #06b6d4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sample-question:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: rgba(8, 145, 178, 0.2);
}

.sample-question:hover::before {
    opacity: 1;
}

.sample-question strong {
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.sample-question .answer {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 4px;
    font-style: normal;
}

.extreme-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 16px;
    color: #92400e;
    text-align: center;
}

.extreme-warning i {
    color: #dc2626;
    margin-right: 8px;
}

.extreme-warning strong {
    color: #92400e;
    font-weight: 700;
}

/* Difficulty level colors */
.difficulty-level-1 { color: #28a745; }
.difficulty-level-2 { color: #20c997; }
.difficulty-level-3 { color: #ffc107; }
.difficulty-level-4 { color: #fd7e14; }
.difficulty-level-5 { color: #dc3545; }
.difficulty-level-6 { color: #6f42c1; }

/* ========================================
   STEP 7 - ORDER SUMMARY STYLES
   ======================================== */

.order-summary-container {
    max-width: 900px;
    margin: 0 auto;
}

.summary-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0891b2, #0e7490, #06b6d4);
}

.summary-section {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
}

.summary-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.summary-section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-section-icon {
    font-size: 1.2rem;
    color: #0891b2;
}

.edit-section-btn {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.edit-section-btn:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #475569;
    transform: translateY(-1px);
}

.categories-showcase {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(168, 85, 247, 0.05));
    border: 2px solid rgba(8, 145, 178, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin: 16px 0;
    position: relative;
}

.categories-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0891b2, #0e7490, #06b6d4);
    border-radius: 16px 16px 0 0;
}

.enhanced-rounds-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.enhanced-round-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.enhanced-round-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(8, 145, 178, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.15);
}

.round-number {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.round-category {
    flex: 1;
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.round-icon {
    font-size: 1.2rem;
    color: #0e7490;
    flex-shrink: 0;
}

.summary-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.summary-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.summary-info-icon {
    font-size: 1.1rem;
    color: #0891b2;
    width: 20px;
}

.summary-info-content {
    flex: 1;
}

.summary-info-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2px;
}

.summary-info-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

/* Selected Formats List Styling */
.selected-format {
    display: inline-block;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 6px 10px 6px 0;
    box-shadow: 0 2px 6px rgba(8, 145, 178, 0.3);
    transition: all 0.3s ease;
}

.selected-format:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(8, 145, 178, 0.4);
}

.format-summary {
    margin-top: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.format-summary .summary-card {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.8));
    border: 2px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.format-summary .summary-card::before {
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
}

.summary-content {
    margin-bottom: 16px;
}

.summary-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-title::before {
    content: '📋';
    font-size: 1.2rem;
}

#selected-formats-list {
    min-height: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0; /* Use margin on children instead */
    padding: 12px;
    background: rgba(248, 250, 252, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 1.1rem;
}

.total-label {
    font-weight: 600;
    color: #475569;
}

.total-amount {
    font-weight: 800;
    color: #059669;
    font-size: 1.3rem;
}

/* ========================================
   OUTPUT FORMAT STYLES
   ======================================== */

.format-selection-container {
    max-width: 800px;
    margin: 0 auto;
}

.format-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 16px for more compactness */
}

.format-card {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px; /* Reduced from 24px to make more compact */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
}

.format-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(94, 165, 163, 0.15);
    border-color: #5ea5a3;
    background: rgba(255, 255, 255, 1);
}

.format-card.selected {
    border-color: #0891b2;
    background: rgba(8, 145, 178, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.2);
}

.format-icon {
    font-size: 1.8rem; /* Slightly smaller for compactness */
    margin-right: 16px; /* Reduced margin */
    width: 50px; /* Smaller width */
    text-align: center;
    flex-shrink: 0;
}

.format-icon i {
    color: #5ea5a3;
}

.format-card.selected .format-icon i {
    color: #0891b2;
}

.format-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.format-info {
    flex: 1;
}

.format-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px; /* Reduced from 8px */
    font-size: 1.1rem; /* Slightly smaller */
}

.format-description {
    color: #64748b;
    margin-bottom: 8px; /* Reduced from 12px */
    font-size: 0.9rem; /* Slightly smaller */
    line-height: 1.3; /* Tighter line height */
}

.format-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(94, 165, 163, 0.1);
    color: #2d7a77;
    padding: 3px 10px; /* Reduced padding for compactness */
    border-radius: 20px;
    font-size: 0.75rem; /* Slightly smaller */
    font-weight: 500;
}

.format-card.selected .feature-tag {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
}

.format-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Added to center vertically */
    margin-left: 16px; /* Reduced margin */
    min-width: 80px; /* Smaller width for compactness */
}

.format-badge {
    padding: 4px 12px; /* Reduced padding for compactness */
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem; /* Slightly smaller */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px; /* Reduced margin */
}

.free-badge {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.premium-badge {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.format-card-check {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.format-card.selected .format-card-check {
    background: #0891b2;
    border-color: #0891b2;
    color: white;
}

/* Hide the FontAwesome icon completely and use CSS pseudo-element instead */
.format-card-check i {
    display: none !important;
}

/* Create checkmark with CSS pseudo-element for perfect centering */
.format-card.selected .format-card-check::after {
    content: '✓';
    position: absolute;
    top: 3px;
    left: 4px;
    right: 4px;
    bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

/* Specific format icons */
.excel-icon i { color: #107c41; }
.word-icon i { color: #2b579a; }
.pdf-icon i { color: #dc2626; }
.powerpoint-icon i { color: #d24726; }

.format-card.selected .excel-icon i,
.format-card.selected .word-icon i,
.format-card.selected .pdf-icon i,
.format-card.selected .powerpoint-icon i {
    color: #0891b2;
}

/* Legacy format-option styles for backward compatibility */
.format-option {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    text-align: left;
}

.format-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(94, 165, 163, 0.15);
    border-color: #5ea5a3;
    background: rgba(255, 255, 255, 1);
}

.format-option.selected {
    border-color: #0891b2;
    background: rgba(8, 145, 178, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.2);
}

.format-details h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.format-details p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   EMAIL FORM STYLES
   ======================================== */

.email-form-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(248, 250, 252, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.email-input-group {
    margin-bottom: 1rem;
}

/* ========================================
   ORDER SUMMARY STYLES
   ======================================== */

.order-summary-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(248, 250, 252, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
}

.summary-label {
    font-weight: 500;
    color: #64748b;
}

.summary-value {
    font-weight: 600;
    color: #0f172a;
}

/* ========================================
   TYPEFORM-STYLE REGION SELECTION
   ======================================== */

.typeform-question {
    display: block;
}

.typeform-question.hidden {
    display: none;
}

.question-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.typeform-options {
    margin: 0.15rem 0; /* Further reduced for compactness */
}

/* Region Grid Layout - 2 columns of 3 (2 rows) */
.region-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 columns for 2 rows of 3 */
    gap: 12px; /* Better spacing with more room */
    max-width: 800px; /* Larger max-width to use available space */
    margin: 0 auto;
}

/* Quiz Type Grid Layout - 2 columns for step 2 */
.quiz-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns side by side */
    gap: 16px; /* Even tighter spacing - reduced from 20px */
    max-width: 900px; /* Narrower for more compact feel */
    margin: 8px auto 0; /* Even less top margin - reduced from 16px */
    padding: 0 16px; /* Side padding for mobile safety */
}

/* Enhanced question container for step 2 */
#step-2 .question-container {
    max-width: 900px; /* Match the grid width */
    margin-bottom: 4px; /* Even tighter bottom margin */
}

#step-2 .question-title {
    margin-bottom: 8px !important; /* Much tighter spacing */
}

#step-2 .question-subtitle {
    margin-bottom: 8px !important; /* Much tighter spacing */
    font-size: 0.95rem !important; /* Smaller subtitle */
    color: #475569 !important; /* Darker color for better readability */
}

/* Clean main page style for quiz type options */
.quiz-type-grid .typeform-option {
    min-height: 140px; /* Much more compact - reduced from 200px */
    display: flex;
    flex-direction: column;
    padding: 8px; /* Even tighter padding - reduced from 12px */
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.quiz-type-grid .typeform-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(8, 145, 178, 0.1);
    border-color: #0ea5e9;
}

.quiz-type-grid .typeform-option.selected {
    border-color: #0ea5e9;
    background: rgba(8, 145, 178, 0.08);
    transform: none;
    box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.2), 0 4px 12px rgba(8, 145, 178, 0.12);
}

/* New clean layout structure */
.quiz-type-grid .option-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

/* Option Badge Styling */
.quiz-type-grid .option-badge {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    align-self: center;
    min-width: 70px;
}

.quiz-type-grid .option-header {
    text-align: center;
    margin-bottom: 4px; /* Much tighter - reduced from 8px */
}

.quiz-type-grid .option-title {
    font-size: 1.3rem; /* Smaller */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px; /* Much tighter */
    line-height: 1.2;
}

.quiz-type-grid .option-price {
    font-size: 2rem; /* Smaller */
    font-weight: 800;
    color: #0891b2;
    text-shadow: 0 2px 4px rgba(8, 145, 178, 0.1);
}

.quiz-type-grid .option-price-from {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    margin-right: 4px;
}

/* Feature list styling */
.quiz-type-grid .option-features {
    flex: 1;
    text-align: left;
    margin-bottom: 4px; /* Much tighter - reduced from 8px */
}

.quiz-type-grid .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2px; /* Much tighter - reduced from 4px */
    gap: 4px; /* Smaller gap - reduced from 6px */
}

.quiz-type-grid .feature-check {
    color: #22c55e;
    font-weight: 700;
    font-size: 0.9rem; /* Smaller */
    flex-shrink: 0;
    margin-top: 1px;
}

.quiz-type-grid .feature-text {
    color: #374151;
    font-size: 0.85rem; /* Smaller */
    line-height: 1.3; /* Tighter */
    font-weight: 400;
}

/* Pricing breakdown for questions only */
.quiz-type-grid .pricing-breakdown {
    background: #f8fafc;
    border-radius: 6px; /* Smaller radius */
    padding: 10px; /* Much tighter padding */
    margin-bottom: 12px; /* Much tighter margin */
    text-align: left;
}

.quiz-type-grid .pricing-header {
    font-size: 0.8rem; /* Smaller */
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px; /* Much tighter */
    text-align: center;
}

.quiz-type-grid .pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px; /* Much tighter */
}

.quiz-type-grid .pricing-label {
    font-size: 0.75rem; /* Smaller */
    color: #6b7280;
    font-weight: 500;
}

.quiz-type-grid .pricing-value {
    font-size: 0.75rem; /* Smaller */
    color: #0891b2;
    font-weight: 600;
}

/* Remove old button styling - no longer needed */

@media (max-width: 768px) {
    .region-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns x 3 rows for mobile */
        gap: 8px;
    }
    
    .quiz-type-grid {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 16px;
        max-width: 100%;
        padding: 0 16px;
    }
    
    .quiz-type-grid .typeform-option {
        min-height: 120px; /* Much more compact on mobile - reduced from 180px */
        padding: 8px; /* Tighter padding */
    }
    
    .quiz-type-grid .option-title {
        font-size: 1.2rem;
    }
    
    .quiz-type-grid .option-price {
        font-size: 1.8rem;
    }
    
    .quiz-type-grid .feature-text {
        font-size: 0.8rem;
    }
    
    .quiz-type-grid .option-header {
        margin-bottom: 10px;
    }
    
    .quiz-type-grid .option-features {
        margin-bottom: 10px;
    }
}

.typeform-option {
    background: rgba(248, 250, 252, 0.8);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px; /* Reduced from 12px 16px */
    margin-bottom: 6px; /* Reduced from 10px */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Reduced from 12px */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.typeform-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.02) 0%, rgba(94, 165, 163, 0.02) 100%);
    z-index: -1;
    transition: all 0.3s ease;
}

.typeform-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.15);
    border-color: #06b6d4;
    background: rgba(255, 255, 255, 1);
}

.typeform-option:hover::before {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.05) 0%, rgba(94, 165, 163, 0.05) 100%);
}

.typeform-option.selected {
    border-color: #0e7490;
    background: rgba(8, 145, 178, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.2);
}

.typeform-option.selected::before {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1) 0%, rgba(94, 165, 163, 0.05) 100%);
}

.option-flag {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.option-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    flex: 1;
    text-align: left;
}

.option-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    flex: 1;
    gap: 16px;
}

.typeform-option .option-flag {
    font-size: 2rem !important; /* Reduced further from 2.5rem */
    text-align: center !important;
    display: block !important;
    margin-bottom: 6px !important; /* Reduced from 8px */
    line-height: 1 !important;
}

.typeform-option .option-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.2rem !important; /* Reduced further from 1.5rem */
    font-weight: 700 !important;
    color: #0891b2 !important;
    margin-bottom: 3px !important; /* Reduced from 4px */
    display: block !important;
    text-align: center !important;
    text-shadow: 0 2px 4px rgba(8, 145, 178, 0.2);
    width: auto !important;
    white-space: normal !important;
}

.option-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.3;
}

.option-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.format-icons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    margin-left: 16px;
}

.format-icon {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
}

/* ========================================
   MODERN REGION CARDS
   ======================================== */

.modern-region-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px !important;
    margin-bottom: 6px !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(20px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 80px !important; /* Increased for better proportion in 3-column layout */
    transform: translateY(0) !important;
    text-align: center !important;
}

.modern-region-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.02) 0%, rgba(59, 130, 246, 0.02) 50%, rgba(16, 185, 129, 0.02) 100%);
    z-index: -1;
    transition: all 0.4s ease;
    opacity: 0;
}

.modern-region-card:hover:not(.selected) {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 12px rgba(8, 145, 178, 0.1) !important;
    border-color: #0ea5e9 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(252, 250, 255, 0.98) 100%) !important;
}

.modern-region-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(16, 185, 129, 0.03) 100%);
}

.modern-region-card.selected {
    border-color: #0ea5e9 !important;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%) !important;
    transform: none !important;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.3), 0 4px 12px rgba(8, 145, 178, 0.15) !important;
}

.modern-region-card.selected::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.12) 0%, rgba(59, 130, 246, 0.06) 50%, rgba(16, 185, 129, 0.04) 100%);
}

.region-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
}

.region-icon img {
    width: 40px !important;
    height: auto !important;
    border-radius: 6px !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15)) !important;
    transition: all 0.3s ease !important;
}

.modern-region-card:hover .region-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(8, 145, 178, 0.3)) !important;
}

.modern-region-card .option-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.region-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 !important;
    display: block !important;
    line-height: 1.2 !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.modern-region-card:hover .region-title {
    color: #0891b2 !important;
    text-shadow: 0 2px 4px rgba(8, 145, 178, 0.15);
}

/* Responsive adjustments for modern cards */
@media (max-width: 768px) {
    .modern-region-card {
        padding: 12px !important;
        min-height: 55px !important;
        gap: 10px !important;
    }
    
    .region-icon img {
        width: 36px !important;
    }
    
    .region-title {
        font-size: 1rem !important;
    }
}

/* Animation for when cards load */
.modern-region-card {
    animation: slideUpFade 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Remove ALL spacing from step content to bring buttons closer */
#step-1 .question-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#step-1 .typeform-options {
    margin: 0 !important;
}

#step-1 .typeform-option,
#step-1 .modern-region-card {
    margin-bottom: 0 !important;
}

#step-2 .question-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#step-2 .typeform-options {
    margin: 0 !important;
}

#step-2 .typeform-option {
    margin-bottom: 0 !important;
}

/* Reduce navigation button margin */
.wizard-content.with-sidebar .mt-2 {
    margin-top: 0.25rem !important;
}

/* ========================================
   QUESTIONS ONLY BUILDER COMPACT STYLING
   ======================================== */

/* Target the Questions Only page specifically */
body:has([title*="Generate Questions Only"]) .suggest-section-highlight,
body:has([title*="Questions Only"]) .suggest-section-highlight,
.suggest-section-highlight {
    padding: 10px !important; /* Reduced from 16px */
    margin-bottom: 8px !important; /* Further reduced from 16px */
}

/* Target Questions Only template specifically */
body:has([title*="Generate Questions Only"]) .suggest-section-highlight.mb-4,
body:has([title*="Questions Only"]) .suggest-section-highlight.mb-4,
.suggest-section-highlight.mb-4 {
    margin-bottom: 8px !important; /* Override Bootstrap mb-4 class */
}

body:has([title*="Generate Questions Only"]) .suggest-section-content,
body:has([title*="Questions Only"]) .suggest-section-content,
.suggest-section-content {
    margin-bottom: 8px !important; /* Reduced from 12px */
}

body:has([title*="Questions Only"]) .suggest-section-icon,
.suggest-section-icon {
    width: 32px !important; /* Reduced from 40px */
    height: 32px !important; /* Reduced from 40px */
    margin-right: 10px !important; /* Reduced from 12px */
}

body:has([title*="Questions Only"]) .suggest-section-icon i,
.suggest-section-icon i {
    font-size: 1rem !important; /* Reduced from 1.2rem */
}

body:has([title*="Questions Only"]) .suggest-section-title,
.suggest-section-title {
    font-size: 0.9rem !important; /* Reduced from 1rem */
    margin: 0 0 1px 0 !important; /* Reduced from 2px */
}

body:has([title*="Questions Only"]) .suggest-section-subtitle,
.suggest-section-subtitle {
    font-size: 0.8rem !important; /* Reduced from 0.85rem */
    line-height: 1.2 !important; /* Reduced from 1.3 */
}

body:has([title*="Questions Only"]) .btn-suggest,
.btn-suggest {
    padding: 8px 16px !important; /* Reduced from 12px 20px */
    font-size: 0.9rem !important; /* Reduced from 1rem */
    min-height: 36px !important; /* Reduced from 48px */
}

/* Compact form elements */
body:has([title*="Questions Only"]) .mb-3,
.category-input-group .mb-3 {
    margin-bottom: 6px !important; /* Further reduced from 12px */
}

body:has([title*="Questions Only"]) .row.mb-3,
.category-input-group .row.mb-3 {
    margin-bottom: 6px !important; /* Further reduced from 12px */
}

/* Compact form controls */
body:has([title*="Questions Only"]) .form-floating,
.category-input-group .form-floating {
    margin-bottom: 4px !important; /* Further reduced spacing between form elements */
}

body:has([title*="Questions Only"]) .form-control,
.category-input-group .form-control {
    padding: 8px 12px !important; /* Reduced from default Bootstrap padding */
    font-size: 0.9rem !important; /* Slightly smaller text */
}

body:has([title*="Questions Only"]) .form-floating label,
.category-input-group .form-floating label {
    font-size: 0.85rem !important; /* Smaller labels */
}

/* Compact textarea */
body:has([title*="Questions Only"]) textarea.form-control,
.category-input-group textarea.form-control {
    min-height: 60px !important; /* Further reduced - was 80px */
    padding: 6px 10px !important; /* Even smaller padding */
    font-size: 0.85rem !important; /* Smaller text */
    line-height: 1.3 !important; /* Tighter line height */
}

/* Compact question title and subtitle */
body:has([title*="Questions Only"]) .question-title,
.question-container .question-title {
    font-size: 1.8rem !important; /* Reduced from larger default */
    margin-bottom: 8px !important; /* Reduced spacing */
    line-height: 1.2 !important;
}

body:has([title*="Questions Only"]) .question-subtitle,
.question-container .question-subtitle {
    font-size: 0.95rem !important; /* Slightly smaller */
    margin-bottom: 16px !important; /* Reduced from larger default */
    line-height: 1.4 !important;
}

/* Compact the overall form container */
body:has([title*="Questions Only"]) .single-category-form,
.single-category-form {
    padding: 0 !important; /* Remove any extra padding */
}

body:has([title*="Questions Only"]) .question-container,
.question-container {
    padding: 16px 0 !important; /* Reduced vertical padding */
}

/* Compact range slider section */
body:has([title*="Questions Only"]) .col-md-4,
.category-input-group .col-md-4 {
    margin-bottom: 8px !important;
}

/* Compact buttons and navigation */
body:has([title*="Questions Only"]) .mt-4,
.single-category-form .mt-4 {
    margin-top: 8px !important; /* Further reduced from 16px */
}

body:has([title*="Questions Only"]) .mb-4,
.single-category-form .mb-4 {
    margin-bottom: 8px !important; /* Further reduced from 16px */
}

/* Specifically target Questions Only template mb-4 classes */
body:has([title*="Questions Only"]) .form-floating.mb-4,
.form-floating.mb-4 {
    margin-bottom: 6px !important; /* Very compact spacing for textarea area */
}

/* Specifically target the Next Category button area */
body:has([title*="Questions Only"]) .text-center.mt-4,
.single-category-form .text-center.mt-4 {
    margin-top: 12px !important; /* Minimal space above Next Category button */
}

body:has([title*="Questions Only"]) .text-center.mb-4,
.single-category-form .text-center.mb-4 {
    margin-bottom: 8px !important; /* Minimal space below Next Category button */
}

/* Ensure buttons are closer to form */
body:has([title*="Questions Only"]) .category-navigation,
.category-navigation {
    margin-top: 6px !important; /* Further reduced spacing above buttons */
}

/* Target the specific button containers */
body:has([title*="Questions Only"]) #next-category-btn,
body:has([title*="Questions Only"]) .btn-next-category {
    margin-top: 8px !important; /* Minimal space above Next Category button */
}

/* Reduce space around Clear All button */
body:has([title*="Questions Only"]) .btn-danger,
body:has([title*="Questions Only"]) .text-center:has(.btn-danger) {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* Compact any additional spacing elements */
body:has([title*="Questions Only"]) .text-center.mt-3,
.text-center.mt-3 {
    margin-top: 12px !important; /* Reduced from Bootstrap mt-3 (16px) */
}

/* Overall container adjustments for Questions Only */
body:has([title*="Questions Only"]) .form-section,
.wizard-content.with-sidebar .form-section {
    padding: 12px !important; /* Further reduced overall padding */
}

/* Aggressive spacing reductions for textarea area */
body:has([title*="Questions Only"]) .form-floating:has(textarea),
.category-input-group .form-floating:has(textarea) {
    margin-bottom: 2px !important; /* Minimal space after textarea */
}

/* Reduce any default Bootstrap spacing */
body:has([title*="Questions Only"]) .row {
    margin-bottom: 4px !important; /* Override any row margins */
}

body:has([title*="Questions Only"]) .col-md-8,
body:has([title*="Questions Only"]) .col-md-4 {
    margin-bottom: 4px !important; /* Minimal column spacing */
    padding-bottom: 2px !important; /* Minimal column padding */
}

/* Make the form field heights smaller */
body:has([title*="Questions Only"]) .form-control {
    padding: 6px 10px !important; /* Even smaller padding */
    min-height: 32px !important; /* Reduce minimum height */
}

/* Tighten up the range input area */
body:has([title*="Questions Only"]) input[type="range"] {
    margin: 2px 0 !important; /* Minimal margins on range slider */
}

/* Compact any spacing around form groups */
body:has([title*="Questions Only"]) .form-group,
body:has([title*="Questions Only"]) .input-group {
    margin-bottom: 4px !important;
}

/* Direct targeting for Questions Only page - Alternative approach */
.suggest-section-highlight.mb-4 {
    margin-bottom: 4px !important; /* Even more compact - was 8px */
    padding: 8px !important; /* Even smaller padding - was 10px */
}

.category-input-group .mb-3 {
    margin-bottom: 2px !important; /* Minimal spacing - was 6px */
}

.category-input-group .form-floating.mb-4 {
    margin-bottom: 2px !important; /* Minimal textarea spacing - was 6px */
}

.category-input-group textarea.form-control {
    min-height: 50px !important; /* Even smaller textarea - was 60px */
    padding: 4px 8px !important; /* Smaller padding - was 6px 10px */
    font-size: 0.8rem !important; /* Smaller text - was 0.85rem */
}

.category-input-group .row.mb-3 {
    margin-bottom: 2px !important; /* Minimal row spacing - was 6px */
}

.single-category-form .text-center.mt-4 {
    margin-top: 4px !important; /* Minimal button spacing - was 8px */
}

.single-category-form .text-center.mb-4 {
    margin-bottom: 4px !important; /* Minimal button spacing - was 8px */
}

/* Ultra-aggressive spacing reductions for highlighted areas */
.category-input-group .row {
    margin-bottom: 2px !important; /* Override all row margins */
    margin-top: 0 !important;
}

.category-input-group .col-md-8,
.category-input-group .col-md-4 {
    padding-bottom: 0 !important; /* Remove column padding */
    margin-bottom: 2px !important;
}

/* Target the specific area between category name/count and description */
.category-input-group .question-count-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.category-input-group .text-center.mt-1 {
    margin-top: 2px !important; /* Minimal spacing for "1-25 questions" text */
    margin-bottom: 0 !important;
}

/* Target the area between description and buttons */
.single-category-form > .text-center:first-of-type {
    margin-top: 2px !important; /* Minimal space above Next Category button */
}

/* Character count wrapper spacing */
.category-input-group .character-count-wrapper {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
}

/* Nuclear option - target the exact problem areas from screenshot */
.category-input-group * {
    margin-bottom: 0 !important; /* Remove all bottom margins within category input group */
}

.category-input-group .form-floating {
    margin-bottom: 1px !important; /* Override the above for form-floating to have minimal space */
}

.category-input-group .row {
    margin-bottom: 1px !important; /* Override the above for rows to have minimal space */
}

/* Force minimal spacing in button area */
.single-category-form .text-center {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove any hidden margins/padding */
.category-input-group .form-control {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Target the Bootstrap utility classes directly - Questions Only page only */
body:has([title*="Generate Questions Only"]) .mt-1,
body:has([title*="Questions Only"]) .mt-1 {
    margin-top: 2px !important;
}

body:has([title*="Generate Questions Only"]) .mb-3,
body:has([title*="Questions Only"]) .mb-3 {
    margin-bottom: 2px !important;
}

body:has([title*="Generate Questions Only"]) .mb-4,
body:has([title*="Questions Only"]) .mb-4 {
    margin-bottom: 2px !important;
}

body:has([title*="Generate Questions Only"]) .mt-4,
body:has([title*="Questions Only"]) .mt-4 {
    margin-top: 2px !important;
}

/* Hide the subtitle text in Questions Only builder to save space */
body:has([title*="Generate Questions Only"]) .question-subtitle,
body:has([title*="Questions Only"]) .question-subtitle {
    display: none !important;
}

/* Mobile responsive adjustments for compact layout */
@media (max-width: 768px) {
    /* CRITICAL: Fix excessive mobile padding - reduce wizard content padding dramatically */
    .wizard-content {
        padding: 0.5rem 0.5rem 1rem 0.5rem !important; /* Much reduced from 2rem to 0.5rem on sides */
    }
    
    /* Ensure form section uses minimal padding on mobile */
    .form-section {
        padding: 0 !important;
    }
    
    /* Fix region grid - change to 2 columns x 3 rows so Next button is visible */
    .region-grid {
        grid-template-columns: 1fr 1fr !important; /* 2 columns instead of 3 */
        gap: 8px !important; /* Smaller gap for mobile */
        max-width: 100% !important; /* Use full width */
        margin: 0 auto !important;
    }
    
    /* Make region cards smaller for mobile 2x3 layout */
    .modern-region-card {
        min-height: 65px !important; /* Smaller height for 2x3 layout */
        padding: 10px !important; /* Reduced padding */
    }
    
    .region-icon img {
        width: 32px !important; /* Smaller flag icons */
    }
    
    .region-title {
        font-size: 0.9rem !important; /* Smaller text */
    }
    
    /* Reduce question container padding on mobile */
    .question-container {
        padding: 8px 0 !important; /* Much reduced padding */
    }
    
    /* Questions Only specific mobile fixes */
    body:has([title*="Questions Only"]) .suggest-section-highlight,
    .suggest-section-highlight {
        padding: 6px !important; /* Even smaller on mobile */
        margin-bottom: 8px !important; /* Reduced mobile spacing */
    }
    
    body:has([title*="Questions Only"]) .question-title,
    .question-container .question-title {
        font-size: 1.4rem !important; /* Smaller mobile title */
        margin-bottom: 4px !important; /* Minimal mobile spacing */
    }
    
    body:has([title*="Questions Only"]) .question-subtitle,
    .question-container .question-subtitle {
        font-size: 0.85rem !important; /* Smaller mobile subtitle */
        margin-bottom: 8px !important; /* Reduced mobile spacing */
    }
    
    body:has([title*="Questions Only"]) textarea.form-control {
        min-height: 50px !important; /* Even smaller textarea on mobile */
    }
    
    body:has([title*="Questions Only"]) .form-section {
        padding: 8px !important; /* Minimal mobile padding */
    }
    
    .category-input-group textarea.form-control {
        min-height: 50px !important; /* Mobile compact textarea */
    }
    
    /* ========================================
       STEP 2 MOBILE COMPACT LAYOUT
       ======================================== */
    
    /* Make Step 2 quiz type cards much more compact for mobile */
    .quiz-type-grid .typeform-option {
        min-height: 120px !important; /* Much shorter - was 140px+ */
        padding: 12px !important; /* Tighter padding */
        margin-bottom: 12px !important; /* Less spacing between cards */
    }
    
    /* Hide detailed feature lists on mobile - too much text */
    .quiz-type-grid .option-features {
        display: none !important; /* Hide all the feature bullet points */
    }
    
    /* Hide detailed pricing breakdown on mobile */
    .quiz-type-grid .pricing-breakdown {
        display: none !important; /* Hide the detailed pricing table */
    }
    
    /* Make titles and prices more prominent since we removed details */
    .quiz-type-grid .option-title {
        font-size: 1.1rem !important; /* Slightly larger title */
        margin-bottom: 8px !important; /* More space below title */
    }
    
    .quiz-type-grid .option-price {
        font-size: 1.8rem !important; /* Larger, more prominent price */
        font-weight: 800 !important;
        color: #0891b2 !important;
    }
    
    /* Add a simple subtitle to replace the removed features */
    .quiz-type-grid .option-header::after {
        content: attr(data-mobile-subtitle); /* We'll add this via JS or direct content */
        display: block;
        font-size: 0.8rem;
        color: #6b7280;
        margin-top: 4px;
        font-weight: 400;
        line-height: 1.3;
    }
    
    /* Specific mobile subtitles for each option */
    .quiz-type-grid .typeform-option[data-quiz-type="custom"] .option-header::after {
        content: "Complete package with 72 questions, multiple formats & handouts";
    }
    
    .quiz-type-grid .typeform-option[data-quiz-type="generate_questions_only"] .option-header::after {
        content: "Custom questions in Excel format, flexible pricing";
    }
    
    /* Stack quiz type options vertically on mobile for better readability */
    .quiz-type-grid {
        grid-template-columns: 1fr !important; /* Single column on mobile */
        gap: 12px !important; /* Tighter spacing */
        max-width: 100% !important;
        padding: 0 !important; /* Remove side padding */
    }
    
    /* Change Step 2 title to be much shorter on mobile */
    #step-2 .question-title {
        font-size: 1.4rem !important; /* Smaller font */
        margin-bottom: 8px !important; /* Less space below */
    }
    
    /* Use CSS to replace the long title with shorter text on mobile */
    #step-2 .question-title {
        font-size: 0 !important; /* Hide original text */
    }
    
    #step-2 .question-title::before {
        content: "Choose Your Package" !important;
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        display: block !important;
    }
    
    /* ========================================
       QUESTIONS ONLY BUILDER MOBILE FIXES - SIMPLE DIRECT TARGETING
       ======================================== */
    
    /* NUCLEAR OPTION: Complete form restructure with CSS Grid - NO COMPLEX SELECTORS */
    .add-category-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2px !important;
        grid-template-areas: 
            "name"
            "description" 
            "questions"
            "button" !important;
    }
    
    .form-row {
        display: contents !important; /* Make rows invisible - children become direct grid items */
    }
    
    /* Assign grid areas to force the correct order */
    .form-group-name {
        grid-area: name !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .form-group-description {
        grid-area: description !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .form-group-questions {
        grid-area: questions !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .form-group-button {
        grid-area: button !important;
        margin: 4px 0 0 0 !important; /* Small space above button */
        padding: 0 !important;
    }
    
    /* Form inputs with consistent styling */
    .add-category-form .form-input {
        margin: 0 !important;
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure textarea has same styling */
    .add-category-form .form-textarea {
        min-height: 60px !important;
        font-size: 0.9rem !important;
        resize: vertical !important;
    }
    
    /* Remove lightbulb */
    .suggest-section-icon {
        display: none !important;
    }
    
    .suggest-section-highlight {
        padding: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .suggest-section-content {
        margin-bottom: 4px !important;
        padding-left: 0 !important;
    }
    
    .suggest-section-text {
        margin-left: 0 !important;
    }
    
    .btn-suggest {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        min-height: 32px !important;
    }
    
    /* Make the price display like the custom quiz builder - small badge next to QUIZ BUILDER */
    .brand-section {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    
    .header-pricing {
        margin: 0 !important;
        position: static !important; /* Remove absolute positioning */
    }
    
    .pricing-display {
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important; /* Orange like custom builder */
        padding: 2px 6px !important; /* Very small badge */
        border-radius: 8px !important;
        box-shadow: 0 1px 3px rgba(243, 156, 18, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        display: inline-block !important;
        white-space: nowrap !important;
    }
    
    .pricing-amount {
        font-size: 0.7rem !important; /* Small badge text */
        font-weight: 700 !important;
        color: white !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .pricing-details {
        display: none !important; /* Hide "X questions" text to keep it super clean */
    }
    
    /* Hide sample questions on difficulty step for mobile to show Next/Back buttons */
    .sample-questions-container {
        display: none !important;
    }
    
    /* Make navigation buttons smaller and side-by-side for mobile - target both containers */
    .navigation-buttons-container,
    .difficulty-navigation {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 8px 0 !important;
        margin-top: 8px !important;
    }
    
    .navigation-buttons-container .btn,
    .difficulty-navigation .btn {
        flex: 1 !important;
        max-width: 140px !important;
        min-width: 120px !important;
        padding: 10px 16px !important; /* Smaller padding */
        font-size: 0.9rem !important; /* Smaller text */
        margin: 0 !important;
    }
    
    /* When only one button is visible, center it but keep it smaller */
    .navigation-buttons-container .btn:only-child:not(.hidden),
    .difficulty-navigation .btn:only-child:not(.hidden) {
        max-width: 200px !important;
        flex: none !important;
    }
}

.modern-region-card:nth-child(1) { animation-delay: 0.1s; }
.modern-region-card:nth-child(2) { animation-delay: 0.2s; }
.modern-region-card:nth-child(3) { animation-delay: 0.3s; }
.modern-region-card:nth-child(4) { animation-delay: 0.4s; }
.modern-region-card:nth-child(5) { animation-delay: 0.5s; }
.modern-region-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.format-icon.pdf {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.format-icon.word {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.format-icon.excel {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.format-icon.ppt {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Pricing in Quiz Type Selection */
.option-price {
    font-size: 24px;
    font-weight: 800;
    color: #0891b2;
    margin: 8px 0;
    text-align: center;
}

.option-price-from {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.pricing-breakdown {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pricing-row {
    font-size: 12px;
    font-weight: 700;
    color: #0891b2;
    text-align: left;
    padding: 2px 0;
}



/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1rem;
}

/* ========================================
   CHARACTER COUNT STYLING
   ======================================== */

/* Position relative for form containers to allow absolute character counters */
.form-floating {
    position: relative;
}

.character-count-wrapper {
    position: absolute;
    top: 20px;
    right: 12px;
    z-index: 10;
    pointer-events: none;
}

/* Special positioning for textarea character counters */
textarea + label + .character-count-wrapper {
    top: 25px;
}

/* Reduce spacing between form and buttons */
.category-input-group {
    margin-bottom: 1rem;
}

.character-count {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.character-count.warning {
    color: #ef4444;
    font-weight: 600;
}

.character-count.at-limit {
    color: #fd7e14;
    font-weight: 600;
}

.character-warning {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 500;
}

.form-control.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 0.1rem rgba(239, 68, 68, 0.25);
}

.form-control.at-limit {
    border-color: #fd7e14;
    box-shadow: 0 0 0 0.1rem rgba(253, 126, 20, 0.25);
}

/* ========================================
   SUGGEST SECTION STYLING (Step 3)
   ======================================== */

.suggest-section-highlight {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4f8 50%, #f0f8ff 100%);
    border: 2px solid #e3f2fd;
    border-radius: 16px;
    padding: 10px; /* Further reduced for Questions Only */
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(94, 165, 163, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.suggest-section-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5ea5a3 0%, #20c997 50%, #28a745 100%);
    border-radius: 16px 16px 0 0;
}

.suggest-section-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(94, 165, 163, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.suggest-section-content {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* Further reduced for Questions Only */
}

.suggest-section-icon {
    width: 32px; /* Further reduced for Questions Only */
    height: 32px; /* Further reduced for Questions Only */
    border-radius: 10px; /* Reduced from 12px */
    background: linear-gradient(135deg, #5ea5a3 0%, #20c997 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px; /* Further reduced for Questions Only */
    box-shadow: 0 4px 12px rgba(94, 165, 163, 0.3);
}

.suggest-section-icon i {
    font-size: 1rem; /* Further reduced for Questions Only */
    color: white;
}

.suggest-section-text {
    flex: 1;
}

.suggest-section-title {
    margin: 0 0 1px 0; /* Further reduced for Questions Only */
    font-size: 0.9rem; /* Further reduced for Questions Only */
    font-weight: 600;
    color: #2d3748;
    letter-spacing: -0.025em;
}

.suggest-section-subtitle {
    margin: 0;
    font-size: 0.8rem; /* Further reduced for Questions Only */
    color: #64748b;
    line-height: 1.2; /* Further reduced for Questions Only */
}

/* Enhanced Suggest Button Styles */
.btn-suggest {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem; /* Reduced for Questions Only */
    padding: 8px 16px; /* Reduced for Questions Only */
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.25);
    min-height: 36px; /* Reduced for Questions Only */
}

.btn-suggest:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.35);
}

.btn-suggest:focus {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.btn-suggest:active {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    transform: translateY(0);
}

/* Loading state for suggest button */
.btn-suggest.loading {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
}

.btn-suggest.loading:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

/* ========================================
   SUGGESTION MODAL BREADCRUMB
   ======================================== */

.suggestion-breadcrumb {
    padding: 12px 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    margin: 0 -20px 20px -20px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb-item {
    font-weight: 500;
    color: #475569;
}

.breadcrumb-item.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
    margin: -4px -8px;
}

.breadcrumb-item.clickable:hover {
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    transform: translateY(-1px);
}

.breadcrumb-item.current {
    color: #5ea5a3;
    font-weight: 600;
}

.breadcrumb-separator {
    margin: 0 8px;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Enhanced email validation test styling */
.email-feedback {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.email-feedback.valid-feedback {
    color: #198754;
}

.email-feedback.invalid-feedback {
    color: #dc3545;
}

.email-suggestion {
    font-size: 0.875rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.email-suggestion .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

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

/* Enhanced form validation states */
.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Mobile Responsive Styles - Hide Sidebar on Mobile */
@media (max-width: 768px) {
    /* Hide the sidebar completely on mobile */
    .progress-sidebar {
        display: none !important;
    }
    
    /* Adjust the main content to use full width when sidebar is hidden */
    .wizard-content.with-sidebar {
        display: block !important;
    }
    
    .form-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
    }
    
    /* Ensure wizard container uses full width on mobile */
    .wizard-container {
        padding: 0.5rem; /* Reduce side padding significantly */
        margin: 0;
    }
    
    .wizard-card {
        margin: 0;
        border-radius: 12px;
        padding: 1rem; /* Add internal padding instead of container padding */
    }
    
    /* Quiz Package Selection Mobile Optimizations */
    .typeform-option {
        padding: 16px 20px !important; /* Increase padding for better breathing room */
        margin-bottom: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .option-content {
        flex-direction: column !important; /* Stack content vertically */
        align-items: center !important; /* Center everything */
        gap: 12px !important;
        text-align: center !important;
    }
    
    .option-text {
        width: 100% !important;
        text-align: center !important;
    }
    
    .format-icons {
        display: grid !important; /* Use grid for 2x2 layout */
        grid-template-columns: 1fr 1fr !important; /* 2 columns */
        gap: 8px !important;
        justify-items: center !important;
        align-items: center !important;
        margin-left: 0 !important;
        margin-top: 12px !important;
        width: 100% !important;
        max-width: 200px !important; /* Limit width for better centering */
    }
    
    .format-icon {
        font-size: 0.65rem !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        font-weight: 700 !important;
        width: 60px !important; /* Fixed width for consistency */
        text-align: center !important;
    }
    
    /* Side-by-side buttons on mobile */
    .mt-2 {
        display: flex !important;
        gap: 12px !important;
        justify-content: space-between !important;
        margin-top: 1.5rem !important;
    }
    
    
    /* Ensure wizard container has minimal padding on mobile */
    .wizard-container {
        padding: 8px !important; /* Much reduced container padding */
    }
    
    /* Ensure wizard card uses full available width on mobile */
    .wizard-card {
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 16px !important;
    }
    
    /* MOBILE HEADER COMPACT - Make header much smaller and put logo + text on same line */
    .wizard-header {
        padding: 12px 16px !important; /* Much reduced from 20px 32px */
    }
    
    .brand-section {
        flex-direction: row !important; /* Put logo and text on same line */
        align-items: center !important;
        gap: 12px !important; /* Smaller gap between logo and text */
    }
    
    .header-logo {
        height: 32px !important; /* Much smaller logo - reduced from 56px */
    }
    
    .app-name {
        font-size: 1.2rem !important; /* Much smaller text - reduced from 2.2rem */
        font-weight: 700 !important; /* Slightly reduced weight */
        line-height: 1 !important; /* Tight line height */
    }
    
    .step-indicator {
        font-size: 0.7rem !important; /* Smaller step indicator */
        padding: 2px 8px !important; /* Smaller padding */
        margin-bottom: 4px !important; /* Less margin */
    }
    
    .progress-bar-custom {
        height: 4px !important; /* Thinner progress bar */
        margin: 12px 0 0 0 !important; /* Less margin */
    }
    
    /* Reduce question title padding on mobile */
    .question-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .question-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Reduce option title size on mobile */
    .typeform-option .option-title {
        font-size: 1.1rem !important;
    }
    
    .option-price {
        font-size: 1.2rem !important;
    }
    
    .pricing-breakdown {
        font-size: 0.75rem !important;
        margin-top: 6px !important;
    }
    
    /* Reduce overall container padding for more screen space */
    .question-container {
        padding: 1rem 0.5rem !important; /* Reduce side padding significantly */
    }
    
    .typeform-options {
        margin: 1rem 0 !important; /* Add some vertical margin */
    }
    
    /* Ensure form section uses full width */
    .form-section {
        padding: 0 !important;
    }
}