/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #a8c8ec 0%, #b8a9d9 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Анимированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Заголовок */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 3.5rem;
    font-weight: 800;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.logo i {
    color: #7c9bd1;
    animation: bounce 2s infinite;
}

.logo-subtitle {
    font-size: 2.5rem;
    font-weight: 300;
    color: #7f8c8d;
    margin-left: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.subtitle i {
    color: #7c9bd1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Основной контент */
.main {
    flex: 1;
    margin-bottom: 40px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.company-info, .text-block {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.text-block .text p {
    margin-bottom: 15px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.form-container h2 i {
    color: #7c9bd1;
}

/* Форма */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #7c9bd1;
    width: 16px;
    text-align: center;
}

/* Обертки для полей ввода */
.input-wrapper,
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.input-wrapper input,
.select-wrapper select {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    color: #2c3e50;
    font-family: inherit;
}

.input-icon,
.select-icon {
    position: absolute;
    right: 15px;
    color: #7f8c8d;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper:focus-within .input-icon,
.select-wrapper:focus-within .select-icon {
    color: #7c9bd1;
}

.input-wrapper input:focus,
.select-wrapper select:focus {
    outline: none;
    border-color: #7c9bd1;
    box-shadow: 0 0 0 3px rgba(124, 155, 209, 0.15);
}

.input-wrapper input:invalid {
    border-color: #e74c3c;
}

.select-wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: none;
    padding-right: 50px;
}

.select-wrapper select option {
    padding: 10px;
}

/* Кнопка отправки */
.submit-btn {
    background: linear-gradient(135deg, #7c9bd1 0%, #9b8bb8 100%);
    color: white;
    padding: 18px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(124, 155, 209, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn i {
    animation: sendPulse 2s infinite;
}

@keyframes sendPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Стили для индикатора загрузки */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .loading-spinner {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-spinner i {
    font-size: 1.2rem;
    color: white;
    animation: spin 1s linear infinite;
}

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

/* Сообщения об ошибках */
.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

/* Сообщение о результате */
.form-result {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #7c9bd1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.form-result.show {
    display: block;
}

.form-result.success {
    border-left-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.form-result.error {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.form-result h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-result.success h4 {
    color: #27ae60;
}

.form-result.error h4 {
    color: #e74c3c;
}

.form-result p {
    margin: 0;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Футер */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 4s infinite;
}

.company-info h3, .text-block h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.company-info h3 i {
    color: #7c9bd1;
    animation: buildingPulse 3s infinite;
}

@keyframes buildingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.requisites, .text-block .text {
    margin-bottom: 20px;
}

.requisite-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.requisite-item:hover {
    background: rgba(124, 155, 209, 0.08);
    border-radius: 6px;
    padding-left: 6px;
}

.requisite-item i {
    color: #7c9bd1;
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.requisite-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.requisite-text .label {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requisite-text .value {
    font-size: 0.85rem;
    color: #2c3e50;
    font-weight: 500;
    word-break: break-all;
}

.requisite-item:first-child .requisite-text {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

.requisite-item:first-child .requisite-text .label {
    display: none;
}

/* Стили для контактов в подвале */
.footer .contact-info h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer .contact-info h3 i {
    color: #7c9bd1;
    animation: addressBookPulse 2.5s infinite;
}

@keyframes addressBookPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-detail i {
    color: #7c9bd1;
    width: 20px;
    text-align: center;
    font-size: 1rem;
    margin-top: 3px;
    flex-shrink: 0;
    background: rgba(124, 155, 209, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.contact-detail .contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-detail .contact-text .label {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.contact-detail .contact-text .value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.3;
}

.footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(124, 155, 209, 0.08);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(124, 155, 209, 0.15);
}

.footer .contact-item:hover {
    background: rgba(124, 155, 209, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(124, 155, 209, 0.2);
}

.footer .contact-item i {
    color: #7c9bd1;
    width: 40px;
    text-align: center;
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
    background: rgba(124, 155, 209, 0.15);
    padding: 10px;
    border-radius: 50%;
}

.footer .contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer .contact-text .label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer .contact-text .value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.4;
}

/* Платежные системы */
.payment-systems {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(124, 155, 209, 0.2);
    text-align: center;
}

.payment-systems h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.payment-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Галочка согласия */
.consent-group {
    margin-top: 10px;
}

.consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.consent-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #2c3e50;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #7c9bd1;
    border-radius: 4px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.consent-wrapper input[type="checkbox"]:checked + .consent-label .checkmark {
    background: #7c9bd1;
    border-color: #7c9bd1;
}

.consent-wrapper input[type="checkbox"]:checked + .consent-label .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.consent-text {
    flex: 1;
}

.consent-link {
    color: #7c9bd1;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #7c9bd1;
    transition: all 0.3s ease;
}

.consent-link:hover {
    color: #9b8bb8;
    border-bottom-color: #9b8bb8;
}

/* Стили для ошибки согласия */
.consent-group.error .checkmark {
    border-color: #e74c3c;
    background: #ffeaea;
}

.consent-group.error .consent-label {
    color: #e74c3c;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #7c9bd1 0%, #9b8bb8 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 25px;
    color: #2c3e50;
    line-height: 1.6;
}

.modal-body h4 {
    color: #7c9bd1;
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-body li {
    margin: 5px 0;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #ecf0f1;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.modal-btn:first-child {
    background: linear-gradient(135deg, #7c9bd1 0%, #9b8bb8 100%);
    color: white;
}

.modal-btn:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 155, 209, 0.3);
}

.modal-btn-secondary {
    background: #ecf0f1;
    color: #7f8c8d;
}

.modal-btn-secondary:hover {
    background: #d5dbdb;
    transform: translateY(-2px);
}

/* Копирайт */
.copyright {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(124, 155, 209, 0.2);
    text-align: center;
}

.copyright p {
    margin: 5px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 400;
}

.copyright p:first-child {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-info a {
    color: #7c9bd1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #9b8bb8;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
    }
    
    .company-info, .text-block {
        order: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .logo {
        font-size: 2.8rem;
    }
    
    .logo-subtitle {
        font-size: 2rem;
    }
    
    .content-wrapper {
        gap: 25px;
    }
    
    .form-container,
    .company-info,
    .text-block {
        padding: 25px;
    }
    
    .requisite-text .value {
        font-size: 0.8rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-details {
        gap: 12px;
    }
    
    .contact-detail {
        gap: 10px;
    }
    
    .contact-detail i {
        width: 18px;
        font-size: 0.9rem;
        padding: 6px;
    }
    
    .footer .contact-item {
        padding: 15px;
    }
    
    .footer .contact-text .value {
        font-size: 0.9rem;
    }
    
    .payment-logos {
        gap: 15px;
    }
    
    .payment-logo {
        height: 35px;
    }
    
    .copyright {
        margin-top: 25px;
        padding-top: 15px;
    }
    
    .copyright p {
        font-size: 0.85rem;
    }
    
    .copyright p:first-child {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 25px 15px;
    }
    
    .logo {
        font-size: 2.2rem;
    }
    
    .logo-subtitle {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .content-wrapper {
        gap: 20px;
    }
    
    .form-container,
    .company-info,
    .text-block {
        padding: 20px;
    }
    
    .form-container h2 {
        font-size: 1.5rem;
    }
    
    .company-info h3,
    .text-block h3 {
        font-size: 1.1rem;
    }
    
    .input-wrapper input,
    .select-wrapper select {
        padding: 12px 45px 12px 12px;
    }
    
    .submit-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
    
    .requisite-text .label,
    .contact-text .label {
        font-size: 0.75rem;
    }
    
    .requisite-text .value,
    .contact-text .value {
        font-size: 0.75rem;
    }
    
    .requisite-item {
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .requisite-item i {
        width: 14px;
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 25px 15px;
    }
    
    .footer .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .footer .contact-item {
        padding: 12px;
        gap: 10px;
    }
    
    .footer .contact-item i {
        width: 20px;
        font-size: 1rem;
        padding: 8px;
    }
    
    .footer .contact-text .label {
        font-size: 0.8rem;
    }
    
    .footer .contact-text .value {
        font-size: 0.85rem;
    }
    
    .payment-systems h4 {
        font-size: 0.9rem;
    }
    
    .payment-logos {
        gap: 12px;
    }
    
    .payment-logo {
        height: 30px;
    }
    
    .contact-detail .contact-text .label {
        font-size: 0.75rem;
    }
    
    .contact-detail .contact-text .value {
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .copyright {
        margin-top: 20px;
        padding-top: 12px;
    }
    
    .copyright p {
        font-size: 0.8rem;
    }
    
    .copyright p:first-child {
        font-size: 0.85rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-container {
    animation: fadeInUp 0.8s ease-out;
}

.company-info, .text-block {
    animation: slideInRight 0.8s ease-out 0.3s both;
}

.header {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.footer {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Дополнительные эффекты для элементов */
.form-group {
    animation: scaleIn 0.6s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

/* Улучшения для доступности */
.input-wrapper input:focus,
.select-wrapper select:focus,
.submit-btn:focus {
    outline: 2px solid #7c9bd1;
    outline-offset: 2px;
}

/* Дополнительные эффекты */

/* Плавающие частицы */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Стили для успешной отправки */
.form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.content-wrapper + .content-wrapper {
    margin-top: 40px;
}