/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4070e;
    --primary-hover: #b3060c;
    --select-color: #2563eb;
    --select-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #059669;
    --error-color: #dc2626;
    --warning-color: #d97706;
    --background: #f8fafc;
    --surface: #f8f9fa;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-ar: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.2s ease-in-out;
}

/* RTL Support */
[dir="rtl"] {
    --font-family: var(--font-family-ar);
}

[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-controls {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-toggle {
    flex-direction: row-reverse;
}

[dir="rtl"] .detail-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .result-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .navigation-controls {
    flex-direction: row-reverse;
}

/* Base Typography */
body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

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

[dir="rtl"] .text-right {
    text-align: left;
}


/* Header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
}

.title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-toggle {
    display: flex;
    background: var(--background);
    border-radius: var(--radius);
    padding: 0.25rem;
    border: 1px solid var(--border);
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: calc(var(--radius) - 0.25rem);
    cursor: pointer;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: var(--border);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--background);
    border-color: var(--border-hover);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state h2 {
    color: var(--error-color);
    margin-bottom: 0.5rem;
}



/* Dropdown Wizard */
.dropdown-wizard {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.dropdown-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.dropdown-container {
    position: relative;
}

.dropdown {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 3rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dropdown:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.dropdown:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

[dir="rtl"] .dropdown {
    background-position: left 0.75rem center;
    padding-right: 1rem;
    padding-left: 2.5rem;
}


.dropdown:focus {
    outline: none;
    border-color: var(--select-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.dropdown:disabled {
    background-color: var(--background);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.dropdown-count {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--background);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    pointer-events: none;
}

[dir="rtl"] .dropdown-count {
    right: auto;
    left: 3rem;
}


/* Navigation Controls */
.navigation-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Results Card */
.results-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    margin: 32px 16px;
    padding: 16px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.result-header {
    background: #f8f9ff;
    color: white;
    padding: 2rem;
    text-align: center;
}

.result-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #d4070e;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.currency {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
}

.currency-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    color: var(--primary-color);
}

[dir="rtl"] .currency-icon {
    margin-right: 0;
    margin-left: 0.5rem;
}


.price-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.service-fee {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 500;
    width: 100%;
    text-align: center;
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background-color: #f8f9fa;
}

.service-disclaimer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Very light border */
    color: var(--text-secondary);
    font-size: 0.75rem;
    /* Smaller font for disclaimer */
    width: 100%;
    opacity: 0.8;
}

.detail-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

[dir="rtl"] .detail-value {
    text-align: right;
}


.result-actions {
    display: flex;
    gap: 1rem;
    padding: 0 2rem 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.result-footer {
    background: var(--background);
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.timestamp {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.timestamp-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .header-controls {
        justify-content: space-between;
    }

    .main-content {
        padding: 1rem;
    }

    .dropdown-wizard {
        gap: 1rem;
    }

    .result-header {
        padding: 1.5rem;
    }

    .price-value {
        font-size: 2.5rem;
    }

    .result-details {
        padding: 0;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .detail-value {
        text-align: left;
    }

    [dir="rtl"] .detail-value {
        text-align: right;
    }

    .result-actions {
        flex-direction: column;
        padding: 0;
    }

    .result-footer {
        padding: 1rem 1.5rem;
    }

    .navigation-controls {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.125rem;
    }

    .price-value {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {

    .header,
    .main-form,
    .navigation-controls,
    .result-actions,
    .result-footer {
        display: none !important;
    }

    .results-card {
        box-shadow: none;
        border: 1px solid #000;
        margin: 0;
        page-break-inside: avoid;
    }

    .result-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .price-value {
        font-size: 2.5rem;
    }

    .detail-row {
        border-bottom: 1px solid #ccc;
    }

    body {
        background: white;
        font-size: 12pt;
        line-height: 1.4;
    }

    .main-content {
        padding: 0;
        max-width: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }

    .dropdown:focus {
        box-shadow: 0 0 0 3px #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .spinner {
        animation: none;
    }
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.search-container {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    align-items: stretch;
}

.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #6c757d;
    font-weight: 500;
}

.search-btn,
.clear-search-btn {
    padding: 1rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-btn:hover,
.clear-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
}

.search-btn:hover {
    background-color: var(--primary-hover);
}

.clear-search-btn {
    background-color: var(--text-secondary);
    color: white;
}

.clear-search-btn:hover {
    background-color: #ffffff;
}

/* Step Wizard */
.step-wizard {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step-wizard:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 120px;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid #dee2e6;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    transition: color 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step.active {
    border-color: var(--primary-color);
    background-color: #f8f9ff;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
}

.step.completed .step-number {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.step.completed .step-label {
    color: var(--success-color);
    font-weight: 600;
}

.step.completed {
    border-color: var(--success-color);
    background-color: #e8f5e8;
}

/* Current Step Content */
.current-step-content {
    margin-bottom: 0rem;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-navigation .btn {
    min-width: 140px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.step-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-navigation .btn:active {
    transform: translateY(0);
}

/* Trust Signals */
.trust-signals {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-badge {
    background-color: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Price Box */
.price-box {
    background: white;
    color: var(--text-primary);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.15);
    position: relative;
    overflow: hidden;
}



.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9ff;
    border-radius: 12px;
    border: 1px solid rgba(212, 7, 14, 0.1);
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(212, 7, 14, 0.1);
}

.currency-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(212, 7, 14, 0.2));
    color: var(--primary-color);
}

.warranty-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #e8f5e8;
    border-radius: 20px;
    border: 1px solid #059669;
    color: #059669;
    font-weight: 600;
    margin: 0 auto;
    max-width: fit-content;
}

.warranty-label {
    opacity: 0.9;
    font-weight: 500;
}

.warranty-value {
    font-weight: 700;
}

/* Cannot Find Form */
.cannot-find-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Search Results Styles */
.search-results-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
    background-color: #f8f9fa;
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    border-radius: 16px 16px 0 0;
}

.search-results-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.search-results-header p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
    transform: translateY(-4px);
}

.result-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.detail-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.detail-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.result-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9ff;
    border-radius: 12px;
    border: 1px solid rgba(212, 7, 14, 0.1);
}

.result-price .price-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-price .price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(212, 7, 14, 0.1);
}

.select-result {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.select-result:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Enhanced Mobile UI */
@media (max-width: 768px) {
    .container {
        padding: 0.75rem;
        margin: 0.5rem auto;
    }

    .step-wizard {
        margin: 1.5rem 0;
    }

    .step-indicator {
        flex-direction: row;
        gap: 0;
        padding: 1.5rem;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .step-indicator::-webkit-scrollbar {
        display: none;
    }

    .step-indicator::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 60px;
        right: 60px;
        height: 4px;
        background: linear-gradient(to right, #dee2e6 0%, #dee2e6 100%);
        z-index: 1;
        border-radius: 2px;
        transform: translateY(-50%);
    }

    .step-indicator::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 58px;
        right: 58px;
        height: 8px;
        background: linear-gradient(to right, #f8f9fa 0%, #f8f9fa 100%);
        z-index: 1;
        border-radius: 4px;
        transform: translateY(-50%);
    }

    .step {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0.5rem;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        transition: all 0.3s ease;
        border: none;
        position: relative;
        z-index: 2;
        margin: 0;
        min-width: 80px;
        flex-shrink: 0;
    }

    .step:hover {
        background-color: #f8f9fa;
        border-radius: 8px;
    }

    .step.active {
        background-color: #f8f9ff;
        border-radius: 8px;
        border: 2px solid var(--primary-color);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    }

    .step.completed {
        background-color: #e8f5e8;
        border-radius: 8px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
        background-color: #e9ecef;
        border: 3px solid #dee2e6;
        flex-shrink: 0;
    }

    .step-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-secondary);
        text-align: center;
        line-height: 1.2;
    }

    .step.active .step-label {
        color: var(--primary-color);
        font-weight: 700;
    }

    .step.completed .step-label {
        color: var(--success-color);
        font-weight: 600;
    }

    .current-step-content {
        margin: 16px 0;
    }

    .dropdown-group {
        margin-bottom: 1.5rem;
    }

    .dropdown-label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .dropdown-container {
        position: relative;
    }

    .dropdown {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        background: white;
        transition: all 0.3s ease;
        appearance: none;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
        background-position: right 1rem center;
        background-repeat: no-repeat;
        background-size: 1rem;
        padding-right: 3rem;
    }

    .dropdown:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        outline: none;
    }

    .dropdown:disabled {
        background-color: #f8f9fa;
        color: #6c757d;
        cursor: not-allowed;
    }

    .dropdown-count {
        position: absolute;
        right: 3.5rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.85rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .step-navigation {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        padding: 1.5rem;
        background-color: #f8f9fa;
        border-radius: 16px;
    }

    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.3s ease;
        text-transform: none;
        letter-spacing: 0.5px;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn-primary {
        background-color: var(--primary-color);
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }

    .btn-secondary {
        background-color: #ffffff;
        box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    }

    .search-section {
        margin-bottom: 2rem;
    }

    .search-container {
        flex-direction: column;
        gap: 1rem;
    }

    .search-input {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .search-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        outline: none;
    }

    .search-btn,
    .clear-search-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .search-btn {
        background-color: var(--primary-color);
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }

    .clear-search-btn {
        color: #000000;
        background-color: #ffffff;
        box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
    }

    .results-card {
        margin: 1rem 0;
        padding: 1.5rem;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .result-header h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }



    .price-box {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem;
        margin: 1rem 0;
        background-color: #f8f9fa;
        border-radius: 12px;
    }

    .price-display {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .price-value {
        font-size: 2rem;
    }

    .result-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .detail-row {
        padding: 0.75rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .result-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .empty-state,
    .cannot-find-form {
        padding: 2rem 1.5rem;
        text-align: center;
        border-radius: 16px;
    }

    .empty-state h2,
    .cannot-find-form h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: block;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        outline: none;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    /* Search Results Mobile */
    .search-result-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
    }

    .result-price {
        align-items: stretch;
    }

    .result-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-results-container {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .search-results-header {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .search-results-header h2 {
        font-size: 1.25rem;
    }
}

/* Additional Mobile Enhancements */
@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    .step-wizard {
        padding: 8px;
        margin: 1rem 0;
    }

    .step-indicator {
        padding: 8px;
        gap: 0;
    }

    .step-indicator::before {
        top: 50%;
        left: 50px;
        right: 50px;
        height: 3px;
        transform: translateY(-50%);
    }

    .step-indicator::after {
        top: 50%;
        left: 48px;
        right: 48px;
        height: 6px;
        transform: translateY(-50%);
    }

    .step {
        padding: 0.75rem 0.25rem;
        min-width: 70px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .step-label {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    .dropdown {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .search-input {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .results-card {
        padding: 1.25rem;
    }

    .price-value {
        font-size: 1.75rem;
    }
}

/* Smooth animations for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Loading state improvements */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background-color: #f8f9fa;
    border-radius: 16px;
    margin: 2rem 0;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e9ecef;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    font-weight: 700;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--border-hover);
}

.faq-item[open] {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
}

.faq-item[open] .faq-question {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border);
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    background-color: #f8f9fa;
    animation: fadeIn 0.3s ease-out;
}

.faq-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.faq-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

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