/* Header Styles - Universal for all pages */

/* Header Container - Универсальный контейнер с фиксированным padding */
/* Важно: используется !important чтобы переопределить любые другие стили контейнера на разных страницах */
.page-header .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Header Container */
.page-header { 
    background: white; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 200;
    min-height: 72px;
    border-bottom: 1px solid #f3f4f6;
}

.header-content { 
    padding: 16px 0; 
    display: flex; 
    align-items: center; 
    gap: 16px;
    min-height: 72px;
}

/* Logo */
.logo { 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    flex-shrink: 0;
}

.logo img { 
    display: block;
    height: auto;
}

/* Desktop logo - visible by default */
img.logo-desktop { 
    display: block; 
    height: 28px !important;
    width: auto !important;
    object-fit: contain;
}

/* Mobile logo - hidden by default */
img.logo-mobile { 
    display: none;
}

/* Search Box */
.search-box { 
    flex: 1; 
    position: relative; 
    max-width: 420px;
    display: flex;
    gap: 8px;
    z-index: 1;
    min-width: 0; /* Позволяет flex-элементу сжиматься */
}

/* Search form container - единая форма как у made-in-china */
.search-form-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    background: #ffffff;
    overflow: visible; /* Разрешаем видимость подсказок вне контейнера */
    transition: all 0.2s;
    min-height: 40px;
    height: 40px;
}

/* Скругление для элементов внутри контейнера */
.search-form-container .search-input {
    border-radius: 24px; /* Полностью круглое поле */
}

.search-form-container .search-submit-btn {
    display: none; /* Скрываем серый прямоугольник справа */
}

.search-form-container:focus-within {
    background: #ffffff;
    border-color: #9ca3af;
    box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.2);
}

.search-icon { 
    position: absolute; 
    left: 14px; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 18px; 
    height: 18px; 
    color: #9ca3af; 
    pointer-events: none; 
    opacity: 0.7;
    z-index: 1;
}

.search-input { 
    flex: 1;
    padding: 10px 16px 10px 44px; 
    border: none;
    background: transparent;
    font-size: 15px;
    color: #1f2937;
    transition: all 0.2s;
    height: 40px;
    line-height: 20px;
    border-radius: 24px;
    outline: none;
    min-height: 40px;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* Search submit button - продолговатый блок справа как у made-in-china */
.search-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-left: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    height: 36px;
    flex-shrink: 0;
    min-width: 44px;
}

.search-submit-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.search-submit-btn:active {
    background: #d1d5db;
}

.search-submit-btn svg {
    display: block;
    flex-shrink: 0;
    color: #6b7280;
}

/* Search button - hidden by default (goods4 style) */
.search-btn { 
    display: none;
}

/* Category page style - visible search button */
.search-box.category-style .search-btn {
    display: block;
    padding: 8px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 18px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    height: 36px;
    line-height: 20px;
}

.search-box.category-style .search-btn:hover {
    background: #1d4ed8;
}

/* Category page style - search input without icon padding */
.search-box.category-style .search-input {
    padding: 8px 16px 8px 16px;
}

.search-box.category-style .search-icon {
    display: none;
}

/* Mobile search placeholder - hidden on desktop */
.mobile-search-placeholder { 
    display: none; 
}

/* Search Suggestions Autocomplete */
.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #e5e7eb;
    pointer-events: auto;
}

.suggestions-content {
    padding: 8px;
}

.suggestions-method-indicator {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    margin-bottom: 4px;
    border-radius: 4px;
    display: inline-block;
}

.suggestions-method-indicator.method-elasticsearch {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

.suggestions-method-indicator.method-meilisearch {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.suggestions-method-indicator.method-sql {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.suggestions-method-indicator.method-vector {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6;
    border-left: 3px solid #8b5cf6;
}

.suggestions-section {
    margin-bottom: 8px;
}

.suggestions-section:last-child {
    margin-bottom: 0;
}

.suggestions-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    padding: 8px 12px 4px;
    letter-spacing: 0.5px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: background-color 0.15s;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f3f4f6;
}

.suggestion-icon {
    width: 18px;
    height: 18px;
    color: #667eea;
    flex-shrink: 0;
}

.suggestion-image,
.suggestion-image-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f3f4f6;
}

.suggestion-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-image-placeholder::before {
    content: '📦';
    font-size: 20px;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.suggestion-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.suggestion-name mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 0 2px;
    font-weight: 600;
}

.suggestion-meta {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.suggestion-score {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-left: auto;
    flex-wrap: wrap;
}

.suggestion-price {
    color: #059669;
    font-weight: 600;
}

.suggestions-loading {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

/* RTL: автоподсказки */
.rtl-content .search-suggestions {
    left: 0;
    right: 0;
}

/* RTL: иконка поиска справа */
.rtl-content .search-icon {
    left: auto;
    right: 14px;
}

/* RTL: padding для input */
.rtl-content .search-input {
    padding: 8px 40px 8px 16px;
}

/* RTL: порядок элементов в search-box */
.rtl-content .search-box {
    flex-direction: row-reverse;
}

/* RTL: порядок элементов в форме поиска */
.rtl-content .search-form-container {
    flex-direction: row-reverse;
}

.rtl-content .search-form-container .search-icon {
    left: auto;
    right: 14px;
}

.rtl-content .search-submit-btn {
    border-left: none;
    border-right: 2px solid #E85A2B;
    border-radius: 18px 0 0 18px; /* Скругление слева для RTL */
}

.rtl-content .search-submit-btn:hover {
    border-right-color: #D94F26;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .search-suggestions {
        max-height: 60vh;
        border-radius: 8px;
        top: calc(100% + 4px);
    }
    
    .suggestion-item {
        padding: 12px;
    }
    
    .suggestion-image,
    .suggestion-image-placeholder {
        width: 56px;
        height: 56px;
    }
}

/* Post Buy Request Button */
.post-request-btn { 
    padding: 10px 24px; 
    background: transparent; 
    color: #E85A2B; 
    border: 2px solid #E85A2B; 
    border-radius: 20px; 
    cursor: pointer; 
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.post-request-btn:hover { 
    background: #E85A2B;
    color: white;
    border-color: #E85A2B;
    box-shadow: 0 2px 8px rgba(232, 90, 43, 0.2);
}

/* Header Phone Sales */
.header-phone-sales {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    text-decoration: none;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-phone-sales:hover {
    background: #f9fafb;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.header-phone-sales svg {
    flex-shrink: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #6b7280;
    border-radius: 1px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s;
    overflow: hidden;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    right: -100%;
    top: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: white;
    z-index: 1051;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    transition: right 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active + .mobile-menu,
.mobile-menu-overlay.active ~ .mobile-menu,
.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.mobile-menu-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #374151;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    background: #f3f4f6;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
}

.mobile-menu-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

.mobile-menu-link {
    display: block;
    padding: 16px 24px;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: #f9fafb;
    color: #2563eb;
}

.mobile-menu-actions {
    padding: 0;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
    background: white;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-post-request-btn {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    color: #E85A2B;
    border: 2px solid #E85A2B;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.mobile-post-request-btn:hover,
.mobile-post-request-btn:active {
    background: #E85A2B;
    color: white;
}

.mobile-menu-phone {
    padding: 0;
    border-top: 1px solid #f0f0f0;
    background: white;
}

.mobile-phone-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mobile-phone-link:hover,
.mobile-phone-link:active {
    background: #f9fafb;
    color: #2563eb;
}

.mobile-phone-link svg {
    flex-shrink: 0;
    color: #2563eb;
}

/* RTL Support */
.rtl-content .mobile-menu {
    right: auto;
    left: -100%;
}

.mobile-menu-overlay.active + .rtl-content .mobile-menu,
.mobile-menu-overlay.active ~ .rtl-content .mobile-menu,
.rtl-content .mobile-menu.active {
    left: 0;
    right: auto;
}

.rtl-content .mobile-menu-link:hover {
    padding-left: 24px;
    padding-right: 24px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Фиксированный padding для контейнера хедера на мобильных */
    .page-header .container {
        padding: 0 16px !important;
    }
    
    .page-header {
        min-height: 60px;
    }
    
    .header-content {
        padding: 12px 0;
        gap: 12px;
        min-height: 60px;
    }
    
    /* Show mobile logo, hide desktop logo */
    img.logo-desktop { 
        display: none; 
    }
    
    img.logo-mobile { 
        display: block;
        height: 28px !important;
        width: auto !important;
        object-fit: contain;
    }
    
    /* Search form container - стиль made-in-china для мобильной версии */
    .search-form-container {
        border: 1px solid #d1d5db !important;
        border-radius: 24px !important;
        background: #ffffff !important;
        min-height: 40px !important;
        height: 40px !important;
    }
    
    .search-form-container:focus-within {
        background: #ffffff !important;
        border-color: #9ca3af !important;
        box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.2) !important;
    }
    
    /* Search icon - серый цвет для мобильной версии */
    .search-icon {
        color: #9ca3af !important;
        opacity: 0.7 !important;
    }
    
    /* Search input - серый стиль */
    .search-input {
        color: #1f2937;
        border-radius: 24px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 10px 16px 10px 44px !important;
    }
    
    .search-input::placeholder {
        color: #9ca3af;
    }
    
    /* Search submit button - скрываем серый прямоугольник */
    .search-submit-btn {
        display: none !important;
    }
    
    /* Mobile search placeholder */
    .mobile-search-placeholder {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 10px 16px 10px 44px;
        background: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 24px;
        color: #9ca3af;
        font-size: 14px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        height: 40px;
        min-height: 40px;
        position: relative;
        gap: 10px;
    }
    
    .mobile-search-icon {
        position: absolute;
        left: 14px;
        width: 18px;
        height: 18px;
        color: #9ca3af;
        opacity: 0.7;
        pointer-events: none;
    }
    
    .search-box {
        flex: 1;
        max-width: none;
        min-width: 0;
    }
    
    .search-form-container {
        width: 100%;
        min-width: 0;
    }
    
    /* Hide Post Buy Request button on mobile */
    .post-request-btn {
        display: none;
    }
    
    /* Hide phone sales on mobile (will be in menu) */
    .header-phone-sales {
        display: none;
    }
    
    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Very small screens - минимальный padding, но элементы не касаются краев */
@media (max-width: 480px) {
    .page-header .container {
        padding: 0 12px !important;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Фиксированный padding для планшетов */
    .page-header .container {
        padding: 0 20px !important;
    }
    
    .search-box {
        max-width: 280px; /* Уменьшено на 30% (было 400px) */
    }
    
    .header-content {
        gap: 20px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .search-box {
        max-width: 490px; /* Уменьшено на 30% (было 700px) */
    }
}

/* Buy Request Modal */
.buy-request-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.buy-request-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.buy-request-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buy-request-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.buy-request-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

/* Progress Steps */
.buy-request-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 16px;
}

.buy-request-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s;
}

.buy-request-step.active {
    opacity: 1;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
}

.buy-request-step.active .step-number {
    background: linear-gradient(135deg, #E85A2B 0%, #D94F26 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(232, 90, 43, 0.3);
}

.step-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.buy-request-step.active .step-label {
    color: #1f2937;
}

.buy-request-step-line {
    width: 60px;
    height: 2px;
    background: #e5e7eb;
    margin-bottom: 30px;
}

/* Form Steps */
.buy-request-form-step {
    display: none;
}

.buy-request-form-step.active {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.buy-request-form-step h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.step-description {
    color: #6b7280;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E85A2B;
    box-shadow: 0 0 0 3px rgba(232, 90, 43, 0.1);
}

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

/* Buttons */
.btn-next,
.btn-submit,
.btn-back,
.btn-close-success {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-next,
.btn-submit,
.btn-close-success {
    background: linear-gradient(135deg, #E85A2B 0%, #D94F26 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(232, 90, 43, 0.25);
    width: 100%;
}

.btn-next:hover,
.btn-submit:hover,
.btn-close-success:hover {
    background: linear-gradient(135deg, #D94F26 0%, #C74620 100%);
    box-shadow: 0 4px 12px rgba(232, 90, 43, 0.35);
    transform: translateY(-2px);
}

.btn-back {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.btn-back:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.step2-buttons {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.step2-buttons .btn-back {
    flex: 0 0 140px;
}

.step2-buttons .btn-submit {
    flex: 1;
}

/* Success Message */
.buy-request-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.buy-request-success.active {
    display: block;
    animation: slideIn 0.4s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.buy-request-success h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.buy-request-success p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .buy-request-modal-content {
        padding: 30px 24px;
        border-radius: 16px;
        max-height: 95vh;
    }

    .buy-request-form-step h2 {
        font-size: 24px;
    }

    .step-label {
        font-size: 11px;
    }

    .buy-request-step-line {
        width: 40px;
    }

    .step2-buttons {
        flex-direction: column;
    }

    .step2-buttons .btn-back {
        flex: 1;
        order: 2;
    }

    .step2-buttons .btn-submit {
        order: 1;
    }

    .buy-request-close {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}
