:root {
    /* Future Dusk - Р“Р»Р°РІРЅС‹Р№ С†РІРµС‚ 2025 РіРѕРґР° */
    --primary-color: #2d3a6d;
    --primary-light: #3d4a8d;
    --primary-dark: #1d2a5d;

    /* РљРѕРЅС‚СЂР°СЃС‚РЅС‹Рµ СЃРѕС‡РµС‚Р°РЅРёСЏ */
    --accent-color: #e94f37; /* РЇСЂРєРёР№ РѕСЂР°РЅР¶РµРІРѕ-РєСЂР°СЃРЅС‹Р№ РґР»СЏ РєРѕРЅС‚СЂР°СЃС‚Р° */
    --secondary-color: #f9c22e; /* Р—РѕР»РѕС‚РёСЃС‚С‹Р№ РґР»СЏ Р°РєС†РµРЅС‚РѕРІ */

    /* Р—Р°РјРµРЅР° С‡РµСЂРЅРѕРіРѕ РЅР° С‚РµРјРЅС‹Рµ РѕС‚С‚РµРЅРєРё */
    --text-color: #2d2a32; /* РўРµРјРЅРѕ-С„РёРѕР»РµС‚РѕРІС‹Р№ РІРјРµСЃС‚Рѕ С‡РµСЂРЅРѕРіРѕ */
    --text-light: #4a4754;
    --text-white: #fff;

    /* Р¤РѕРЅРѕРІС‹Рµ С†РІРµС‚Р° */
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --bg-dark: #2d3a6d; /* Future Dusk РґР»СЏ С‚РµРјРЅС‹С… СЃРµРєС†РёР№ */

    /* Р¤СѓС‚РµСЂ */
    --footer-bg: #2d3a6d; /* Future Dusk */
    --footer-dark: #1d2a5d; /* РўРµРјРЅС‹Р№ Future Dusk */
    --footer-text: #ecf0f1;

    /* Р”РѕРїРѕР»РЅРёС‚РµР»СЊРЅС‹Рµ С†РІРµС‚Р° */
    --star-color: #f9c22e;
    --border-color: #e0e0e0;

    /* РўРµРЅРё */
    --shadow-sm: 0 2px 5px rgba(45, 58, 109, 0.1);
    --shadow-md: 0 4px 8px rgba(45, 58, 109, 0.15);
    --shadow-lg: 0 10px 20px rgba(45, 58, 109, 0.2);

    /* Р”СЂСѓРіРёРµ РїРµСЂРµРјРµРЅРЅС‹Рµ */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --max-width: 1200px;
}

/* РЎС‚РёР»Рё РґР»СЏ С„РѕСЂРјС‹ */
.order-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.order-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.order-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.order-info:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../images/patterns/dots.svg");
    opacity: 0.1;
    z-index: 1;
}

.order-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.order-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.order-benefits {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.order-benefit {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.order-benefit i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.order-contact {
    position: relative;
    z-index: 2;
}

.order-contact h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-normal);
}

.contact-method:hover {
    transform: translateX(5px);
    color: var(--secondary-color);
}

.contact-method i {
    margin-right: 10px;
    transition: var(--transition-fast);
}

.contact-method:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.order-form-container {
    flex: 2;
    min-width: 300px;
    padding: 40px;
}

.order-form {
    max-width: 600px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition-normal);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.select-selected:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 8px rgba(45, 58, 109, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Checkbox styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.checkbox-group.has-error {
    color: var(--accent-color);
}

.checkbox-group .error-message {
    margin-left: 25px;
}

/* File upload styles */
.file-upload {
    position: relative;
}

.file-upload-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background-color: rgba(45, 58, 109, 0.02);
    transition: var(--transition-normal);
}

.file-upload-container:hover {
    border-color: var(--primary-light);
    background-color: rgba(45, 58, 109, 0.05);
}

.file-upload-container.highlight {
    border: 2px dashed var(--primary-color);
    background-color: rgba(45, 58, 109, 0.1);
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: -1;
}

.file-upload-button {
    padding: 12px 20px;
    background-color: rgba(45, 58, 109, 0.05);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.file-upload-button i {
    margin-right: 10px;
    color: var(--primary-color);
}

.file-upload-button:hover {
    background-color: rgba(45, 58, 109, 0.1);
}

.file-upload-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
    transition: var(--transition-fast);
}

.file-upload-container.highlight .file-upload-hint {
    color: var(--primary-color);
    font-weight: 500;
}

.file-upload-progress {
    width: 100%;
    height: 5px;
    background-color: var(--bg-light);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.file-upload-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Styles for multiple file display */
.selected-files-container {
    width: 100%;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.selected-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selected-file-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(45, 58, 109, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: var(--transition-normal), transform 0.2s ease;
    border: 1px solid transparent;
}

.selected-file-item:hover {
    background-color: rgba(45, 58, 109, 0.08);
    border-color: rgba(45, 58, 109, 0.1);
    transform: scale(1.02);
}

.file-icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1rem;
}

.file-name-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-right: 10px;
}

.remove-file-btn {
    background-color: rgba(231, 76, 60, 0.1);
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    min-width: 28px;
    min-height: 28px;
    margin-left: 5px;
    position: relative;
    z-index: 3;
}

.remove-file-btn:hover {
    background-color: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

.remove-file-btn:active {
    background-color: rgba(231, 76, 60, 0.3);
    transform: scale(0.95);
}

.remove-file-btn i {
    font-size: 1rem;
}

/* Custom select styles */
.custom-select {
    position: relative;
    width: 100%;
}

/* РЎРєСЂС‹РІР°РµРј РѕСЂРёРіРёРЅР°Р»СЊРЅС‹Р№ select РґР»СЏ РїСЂРµРґРѕС‚РІСЂР°С‰РµРЅРёСЏ РґСѓР±Р»РёСЂРѕРІР°РЅРёСЏ */
.custom-select select {
    display: none !important;
}

.select-selected {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    font-size: 1rem;
}

.select-selected:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 8px rgba(45, 58, 109, 0.3);
}

.select-selected.select-arrow-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(45, 58, 109, 0.2);
}

.select-selected:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.select-selected.select-arrow-active:after {
    content: '\f077';
}

.select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 99;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--bg-light);
}

.select-items[style*="display: block"] {
    transform: translateY(0);
    opacity: 1;
}

.select-items::-webkit-scrollbar {
    width: 8px;
}

.select-items::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.select-items::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.select-items::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.select-items div[role="option"] {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.select-items div[role="option"]:hover,
.select-items div[role="option"]:focus,
.select-items .same-as-selected {
    background-color: rgba(45, 58, 109, 0.1);
}

.select-items .highlight {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

.select-items div[role="option"] i {
    margin-right: 8px;
    color: var(--primary-color);
}

.select-search {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    outline: none;
    font-size: 1rem;
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    z-index: 1;
}

/* РЎС‚РёР»Рё РґР»СЏ optgroup (РіСЂСѓРїРїС‹ РѕРїС†РёР№) */
.select-items div[role="option"]::before {
    content: attr(data-group);
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    padding: 8px 15px 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.select-items div[role="option"]:first-child::before {
    border-top: none;
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

/* Error and success states */
.form-group.has-error .select-selected,
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.form-group.is-valid .select-selected,
.form-group.is-valid input,
.form-group.is-valid select,
.form-group.is-valid textarea {
    border-color: #2ecc71;
    box-shadow: 0 0 0 1px #2ecc71;
}

.form-group.is-valid:not(.promo-code-group)::after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #2ecc71;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 1rem;
    z-index: 1;
}

.form-group.is-valid input:not(#promo-code),
.form-group.is-valid select:not(#promo-code),
.form-group.is-valid textarea:not(#promo-code) {
    padding-right: 35px;
}

.error-message {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 5px;
    animation: fadeIn 0.3s ease-in-out;
}

.form-message {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transform: translateY(-10px);
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.hiding {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Character counter for client-message */
.char-counter {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    transition: color 0.3s;
}

.char-counter--warning {
    color: var(--accent-color);
    font-weight: 500;
}

/* Shake animation */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.5s;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .order-info,
    .order-form-container {
        padding: 30px;
    }

    .selected-file-item {
        flex-wrap: wrap;
    }

    .file-name-text {
        max-width: 200px;
    }

    .select-items {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .selected-file-item {
        padding: 8px;
    }

    .file-name-text {
        max-width: 150px;
    }

    .file-size {
        display: none;
    }

    .file-upload-hint {
        font-size: 0.8rem;
    }

    .select-items {
        max-height: 250px;
        border-bottom: 2px solid var(--primary-light);
    }

    .select-items::-webkit-scrollbar {
        width: 10px;
    }

    .select-items::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .select-items::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 5px;
    }

    .select-search {
        font-size: 0.85rem;
        padding: 6px 10px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .btn-primary {
        position: sticky;
        bottom: 20px;
        z-index: 10;
        box-shadow: var(--shadow-md);
    }

    .order-benefits {
        display: none;
    }
}