:root {
    /* Bright Theme Variables */
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --blob-1: #60a5fa;
    --blob-2: #93c5fd;
    --blob-3: #2dd4bf;

    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --accent-red: #ef4444;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    animation: float 20s infinite alternate;
}

.hidden {
    display: none !important;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: var(--blob-2);
    animation: float 25s infinite alternate-reverse;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--blob-3);
    animation: float 15s infinite alternate;
}

@keyframes float {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(30px, 30px);
    }
}

/* Main Layout */
.app-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: calc(100vh - 60px);
    /* Minus footer */
}

/* Wizard Card */
.wizard-card {
    width: 100%;
    max-width: 1000px;
    min-height: 700px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 2rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    /* Include borders in width calculation */
}

/* Wizard Header */
.wizard-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.for-business-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.for-business-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.step-indicator {
    display: flex;
    gap: 0.5rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--accent-green);
}

/* Wizard Content Area */
.wizard-content {
    flex: 1;
    /* Fills remaining space */
    position: relative;
    overflow-y: auto;
    /* Allow scrolling inside content if needed */
    padding: 2rem;
}

/* Step Transitions */
.step-section {
    display: none;
    height: 100%;
    flex-direction: column;
    animation: fadeIn 0.4s ease forwards;
    min-width: 0;
    /* Allow flex items to shrink */
    max-width: 100%;
    /* Prevent overflow */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.step-section.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.center-step {
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #111827;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

p.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Buttons */
.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: white;
    border: 2px solid var(--text-light);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Landing Page Features */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-main);
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    color: var(--accent-green);
    font-weight: bold;
}

/* Upload Zone */
.upload-container {
    width: 100%;
    max-width: 600px;
    background: white;
    border: 3px dashed #e5e7eb;
    border-radius: 1.5rem;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-container:hover {
    border-color: var(--primary);
    background: #f8fafc;
}

/* Step 3: Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: 100%;
    min-height: 500px;
}

.left-panel,
.right-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    /* Allow flex items to shrink below content size */
    max-width: 100%;
    /* Prevent overflow */
}

.standards-browser {
    background: white;
    border-radius: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-width: 0;
    /* Allow flex items to shrink */
    max-width: 100%;
    /* Prevent overflow */
}

.search-box {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    /* Allow flex items to shrink */
    box-sizing: border-box;
    /* Include padding in width calculation */
}

.btn-country-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--primary);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-country-select:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.divider-vert {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

.search-box input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
    min-width: 0;
    /* Allow input to shrink */
    width: 0;
    /* Force flex to work properly */
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically */
    height: 100%;
}

.preview-right-mockup {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    /* Allow content to define height, but centered in panel */
    max-height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-width: 0;
    /* Allow flex items to shrink */
    max-width: 100%;
    /* Prevent overflow */
    box-sizing: border-box;
    /* Include padding in width calculation */
}

.mockup-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.standards-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    scroll-behavior: smooth;
}

/* Modal Country Grid Styles */
.country-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.country-grid-item:hover {
    border-color: var(--primary);
    background: #eff6ff;
    transform: translateY(-2px);
}

.country-grid-flag {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-grid-name {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Categorized List Styles */
.country-group {
    border-bottom: 1px solid #f3f4f6;
}

.country-header {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.country-flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.standard-item {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    min-width: 0;
    /* Allow flex items to shrink */
    box-sizing: border-box;
    /* Include padding in width */
}

.standard-item:hover {
    background: #eff6ff;
    padding-left: 1.25rem;
}

.standard-item.selected {
    background: #e0e7ff;
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.std-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    /* Allow flex items to shrink */
    flex: 1;
    /* Take available space */
}

.std-name {
    font-weight: 500;
    color: var(--text-main);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.std-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.std-flag-right {
    opacity: 0.8;
    filter: grayscale(0.5);
    transition: all 0.2s;
}

.standard-item:hover .std-flag-right {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.preview-right-mockup {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mockup-icon {
    width: 120px;
    height: 120px;
    background: #eff6ff;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Loading Bar */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-container {
    width: 300px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
    transition: width 0.3s linear;
}

.loading-text {
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Step 4: Preview & Validations Layout */
.preview-review-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.preview-left-pane {
    display: flex;
    justify-content: center;
}

.result-image-box {
    width: 100%;
    max-width: 380px;
    background: white;
    padding: 1rem;
    /* White frame effect */
    box-shadow:
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    /* Deep shadow for lift */
    border-radius: 4px;
    /* Sharper corners for photo look */
    position: relative;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease;
}

.result-image-box:hover {
    transform: scale(1.02);
}

.result-image-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border: 1px solid #f3f4f6;
    /* Subtle edge definition */
}

/* Step 5 Summary Photo Frame */
.summary-photo-frame {
    width: 100px;
    height: 100px;
    background: white;
    padding: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.summary-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.result-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.compliance-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--accent-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.validations-right-pane {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Overall Quality Card */
.overall-quality-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
}

.quality-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.quality-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.quality-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.quality-bar-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.quality-bar-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: 3px;
}

.quality-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Validation List */
.validations-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.validation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    /* More compact */
    border-radius: 0.5rem;
    background: white;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.validation-item:hover {
    background: #f8fafc;
    border-color: #e5e7eb;
}

.validation-icon-wrapper {
    position: relative;
    width: 32px;
    /* Smaller */
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 6px;
    color: var(--primary);
}

.validation-item.passed .validation-icon-wrapper {
    background: #f0fdf4;
    color: var(--accent-green);
}

.validation-item.warning .validation-icon-wrapper {
    background: #fffbeb;
    color: #d97706;
}

.validation-rule-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.validation-content {
    flex: 1;
}

.validation-label {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.validation-status-icon {
    /* Hidden for cleaner look, relying on color/icon */
    display: none;
}

/* Step 4: Preview */
.preview-result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 800px;
}

.option-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-card.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.option-card.disabled-click {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
    background: #f3f4f6;
    border-color: #d1d5db;
}

.option-card.disabled-click:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: #f3f4f6;
}

.checkbox-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-card.selected .checkbox-circle {
    background: var(--primary);
    border-color: var(--primary);
}

.option-card.disabled-click.selected .checkbox-circle {
    background: #9ca3af;
    border-color: #9ca3af;
}

.checkbox-circle::after {
    content: "✓";
    color: white;
    font-size: 14px;
    display: none;
}

.option-card.selected .checkbox-circle::after {
    display: block;
}

.option-card.disabled-click.selected .checkbox-circle::after {
    color: #6b7280;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.option-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Step 5: Summary & Payment */
.payment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.summary-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.line-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.line-item.total {
    border-top: 2px solid #e5e7eb;
    border-bottom: none;
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pay-btn {
    width: 100%;
    padding: 1rem;
    /* Reduced height by default to match normal buttons */
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.pay-btn:active {
    transform: scale(0.98);
}

.pay-btn.stripe {
    background: #635bff;
    color: white;
}

.pay-btn.apple {
    background: black;
    color: white;
}

.pay-btn.google {
    background: white;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.pay-btn.paypal {
    background: #ffc439;
    color: #003087;
    display: none !important;
}

/* Hide Apple Pay and Google Pay on wider screens and non-mobile devices */
@media (min-width: 768px) {
    .pay-btn.apple,
    .pay-btn.google {
        display: none !important;
    }
}

/* Business Pricing Table */
.business-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pricing-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    transition: background-color 0.2s ease;
}

.pricing-row.selectable {
    cursor: pointer;
    user-select: none;
}

.pricing-row.selectable:hover {
    background-color: rgba(37, 99, 235, 0.03);
}

.pricing-row.selectable.selected {
    background-color: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.pricing-row.selectable.selected.featured {
    background-color: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.pricing-row.featured:not(.selected) {
    background: rgba(37, 99, 235, 0.03);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.pricing-row.featured.selected {
    background-color: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row.header {
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.pricing-col {
    font-size: 1rem;
}

.pricing-col.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.pricing-row.header .pricing-col.price {
    color: white;
}

.price-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    cursor: help;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.price-info-icon:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
}

.price-info-icon svg {
    width: 14px;
    height: 14px;
}

.price-info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: normal;
    white-space: pre-line;
    width: max-content;
    max-width: 180px;
    text-align: center;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.price-info-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.price-info-icon:hover::after,
.price-info-icon:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

.price-info-icon:hover::before {
    transform: translateX(-50%) translateY(-2px);
}

.badge {
    display: inline-block;
    background: var(--accent-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.business-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.business-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.business-features .check-icon {
    color: var(--accent-green);
    font-weight: 700;
}

/* Step 6: Success */
.success-container {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

/* Footer (Compliance) */
.footer-trust {
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-body {
    overflow-y: auto;
    padding: 1rem;
    flex: 1;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
}

.icon-btn:hover {
    color: var(--text-main);
    background: #f3f4f6;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .wizard-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .for-business-link {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    .business-pricing-table .pricing-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
        padding: 1rem;
    }
    
    .business-pricing-table .pricing-row.header {
        display: none;
    }
    
    .business-pricing-table .pricing-col {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }
    
    .business-pricing-table .pricing-col:not(.header .pricing-col)::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.875rem;
        margin-right: 1rem;
    }
    
    .business-pricing-table .pricing-row.header .pricing-col::before {
        display: none;
    }
    
    .business-pricing-table .pricing-col.price {
        font-size: 1.25rem;
        flex-wrap: wrap;
    }
    
    .price-info-icon::after {
        white-space: normal;
        max-width: 200px;
        text-align: left;
        left: 0;
        transform: translateX(0) translateY(-8px);
    }
    
    .price-info-icon:hover::after {
        transform: translateX(0) translateY(-12px);
    }
    
    .price-info-icon::before {
        left: 20px;
        transform: translateX(-50%) translateY(-2px);
    }
    
    .business-features {
        grid-template-columns: 1fr;
    }
    
    .app-container {
        padding: 0.75rem;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
        width: 100%;
        max-width: 100vw;
        /* Never exceed viewport width */
    }

    .wizard-card {
        width: 100%;
        max-width: 100%;
        border-radius: 1rem;
        /* Slightly smaller radius on mobile */
    }

    .wizard-header {
        padding: 1rem 0.75rem;
    }

    .wizard-content {
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .preview-review-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .result-image-box {
        max-width: 100%;
    }

    .wizard-content {
        padding: 0.75rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        min-width: 0;
        /* Prevent grid from overflowing */
    }

    .left-panel,
    .right-panel {
        min-width: 0;
        /* Allow panels to shrink */
        max-width: 100%;
        width: 100%;
    }

    .standards-browser {
        width: 100%;
        max-width: 100%;
    }

    .preview-right-mockup {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }

    .mockup-content-wrapper {
        width: 100%;
        max-width: 100%;
    }

    #selected-std-name,
    #selected-std-desc {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    .standard-item {
        padding: 0.75rem;
    }

    .std-name {
        font-size: 0.9rem;
    }

    .btn-lg {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    /* Button container spacing on mobile */
    .preview-result-container>div[style*="margin-top"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }

    .preview-result-container button.btn-lg.btn-outline {
        margin-right: 0 !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .preview-result-container button.btn-lg.btn-primary {
        width: 100% !important;
    }

    .search-box {
        flex-wrap: wrap;
        /* Allow wrapping on very small screens */
    }

    .btn-country-select {
        font-size: 0.8rem;
        padding: 0.5rem;
        white-space: nowrap;
    }

    .payment-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        gap: 1.5rem;
        padding: 0 0.5rem;
        /* Narrower sides on mobile */
    }

    .summary-box,
    .payment-methods-box {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
    }
}