 body {
    margin-top: 0;
    font-family: "Montserrat", "Times New Roman", serif;
    font-size: 20px;
    background-image: url('/static/images/Sad/21.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #333;
    min-height: 100vh;
}

/* Делаем основные блоки более прозрачными для лучшего отображения фона */
.calculator-intro,
#calculator-section,
#trust-section,
.text-background {
    background-color: rgba(255, 255, 255, 0.85); /* Уменьшаем прозрачность */
    backdrop-filter: blur(3px); /* Добавляем легкое размытие */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Шапка с небольшим затемнением для контраста */
.header-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    background-color: rgba(10, 31, 68, 0.9); /* Темно-синий с прозрачностью */
    z-index: 999;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 2px solid #d4af37;
}

/* Делаем текст в некоторых местах более контрастным */
.mann,
.phone,
.email,
.nav-links a,
.intro-title {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Настройки для лучшей читаемости текста на фоне */
label, strong, .car-info-label, .car-info-value {
    color: #000; /* Черный цвет для лучшей читаемости */
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}




/* Логотип и контакты */
.logo-and-contacts {
    display: flex;
    align-items: center;
}
.left-block {
    display: flex;
    align-items: center;
}
.mann {
    font-size: 48px;
    font-weight: 900;
    display: flex;
    align-items: center;
    font-family: 'Lobster', cursive;
    color: #d4af37;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.logo {
    width: 70px;
    margin-left: 10px;
    border-radius: 8px;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}


/* Контакты */
.contacts-vertical {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    padding-left: 30px;
}
.phone, .email {
    margin: 2px 0;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    position: relative;
    padding-left: 30px;
}

.phone::before, .email::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.phone::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'%3E%3Cpath d='M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z'/%3E%3C/svg%3E");
}

.email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4af37'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}


/* Верхний правый блок с навигацией */
.top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

/* Анимация для карточек услуг */
.vehicle-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vehicle-card:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.08);
}



.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


.nav-links a:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: #d4af37;
}

/* Основной контент */
.content-section {
    padding: 150px 4cm 50px 4cm;
    margin-top: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Раздел калькулятора */
#calculator-section {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

#calculator-section h2 {
    margin-top: 0;
    font-family: 'Lobster', cursive;
    font-size: 32px;
    color: #0a1f44;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

#calculator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

label {
    font-weight: 600;
    font-size: 18px;
    color: #0a1f44;
}

input[type=text], select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s;
    background-color: #f9f9f9;
}

input[type=text]:focus, select:focus {
    border-color: #0a1f44;
    outline: none;
    background-color: #fff;
}

button {
    padding: 14px;
    font-size: 18px;
    border-radius: 6px;
    border: none;
    background-color: #0a1f44;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}


button:hover {
    background-color: #1a3e8c;
    transform: translateY(-2px);
}

#result {
    margin-top: 25px;
    padding: 15px;
    background: #f0f4f9;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
    font-size: 20px;
    font-weight: 600;
    color: #0a1f44;
    line-height: 1.4;
}

/* Стиль для введенного текста выше калькулятора */
.calculator-intro {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.intro-title {
    font-family: 'Lobster', cursive;
    font-size: 36px;
    color: #0a1f44;
    margin-bottom: 10px;
}

.intro-text {
    font-size: 20px;
    color: #333;
    line-height: 1.5;
}



/* Модальное окно */
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

#modalContent {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    text-align: center;
    border: 2px solid #d4af37;
}

#modalContent img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.special-tech-card {
    max-width: 550px;
    border: 2px solid #0a1f44 !important;
}

#cardsContainer {
    max-height: 70vh;
    overflow-y: auto;
    padding: 5px;
}

.card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background: #f9f9f9;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
}

.card:hover {
    background: #f0f0f0;
    border-color: #0a1f44;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

}
.card img {
    width: 100px;
    height: auto;
    border-radius: 4px;
    margin-right: 15px;
    border: 1px solid #ddd;
}

.small-rect {
    width: 5;
    height: auto;
    min-height: 2cm;
    background-color: #f9f9f9;
    border: 2px solid #0a1f44;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 10px;
}

.option-image {
    width: 80px;
    height: auto;
    margin-right: 10px;
    border: 1px solid #ddd;
}

.small-rect .parameters {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.special-tech {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    margin-bottom: 15px;
    background: #ffffff;
    border: 3px solid #0a1f44;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.special-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 9px;
    pointer-events: none;
}

.special-tech .option-image {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #0a1f44;
    margin-right: 20px;
}

.special-tech:hover {
    border-color: #1a3e8c;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.special-tech:hover .option-image {
    transform: scale(1.03);
    border-color: #1a3e8c;
}

.special-tech .parameters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
    color: #333;
    flex-grow: 1;
    padding: 8px;
    background-color: rgba(255,255,255,0.6);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.special-tech .parameters div {
    padding: 6px 10px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 6px;
    border-left: 3px solid #0a1f44;
}

.special-tech .parameters strong {
    color: #0a1f44;
    min-width: 160px;
    display: inline-block;
    font-weight: 600;
}

#modal h2 {
    color: #0a1f44;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4af37;
    margin-bottom: 20px;
}

.parameters div {
    color: #000;
    font-family: "Montserrat", "Times New Roman", serif;
    font-size: 16px;
    white-space: nowrap;
}

#loadingOptions input[type="radio"],
#unloadOptions input[type="radio"] {
    display: none;
}

.loading-option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: "Montserrat", "Times New Roman", serif;
    font-size: 16px;
    position: relative;
}
.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #0a1f44;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.custom-radio:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.checkmark {
    display: none;
    color: #d4af37;
    font-size: 14px;
    font-weight: bold;
}
#loadingOptions input[type="radio"]:checked + .custom-radio .checkmark,
#unloadOptions input[type="radio"]:checked + .custom-radio .checkmark {
    display: block;
}

label[for="loadingMethod"],
label[for="unloadingMethod"] {
    font-family: 'Lobster', cursive;
    font-size: 26px;
    color: #0a1f44;
    font-weight: 700;
    background: linear-gradient(to right, #f0f4f9, #e0e8f0);
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    border-bottom: 2px solid #d4af37;
}

#loadersCountContainer {
    display: none;
    margin-top: 10px;
    align-items: center;
    font-family: "Montserrat", "Times New Roman", serif;
    font-size: 16px;
}
#loadersCountContainer span {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}
#loadersCountContainer button {
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
}

#loadersCountContainer,
#loaderCheckbox + div,
#expeditingCheckbox + div,
#insuranceCheckbox + div,
.load-method-label,
.unload-method-label {
    color: #0a1f44;
}

/* Либо, если хотите точное соответствие стилям загрузки/выгрузки: */
#expeditingService div:last-child,
#insuranceCheckbox + div {
    font-weight: bold;
    color: #0a1f44;
    font-size: 16px;
    /* Дополнительные стили, если нужно */
}

form > strong {
    color: #000;
}

/* "Нам доверяют" секция */
#trust-section {
    margin-top: 80px;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 10px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e0e0e0;
}
#trust-section h2 {
    font-family: 'Lobster', cursive;
    font-size: 40px;
    margin-bottom: 20px;
    color: #0a1f44;
    margin-top: -20px;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}
#trust-gallery {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 10px 0;
}
#trust-gallery img {
    flex: 0 0 auto;
    width: 300px;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid #0a1f44;
}
#trust-gallery img:hover {
    transform: scale(1.05);
    border-color: #d4af37;
}

.form-hint {
    color: #d9534f;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.suggestions-list {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
    color: #000;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background-color: #f0f4f9;
}

.text-background {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 50px auto;
  border: 1px solid #e0e0e0;
}

.auto-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #0a1f44;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  background-color: transparent;
  transition: all 0.3s ease;
}

.checkbox:hover {
    transform: scale(1.1);
}


.checkbox.checked {
  border-color: #0a1f44;
  background-color: #f0f4f9;
}

.checkbox.checked::after {
  content: "✓";
  color: #d4af37;
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.auto-text {
  margin-top: 0;
  font-family: 'Lobster', cursive;
  font-size: 20px;
  color: #0a1f44;
  text-align: center;
}

.auto-tech-trio {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

#carType {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
    background-color: #f9f9f9;
}

#carType.error {
    border: 2px solid #d9534f;
}

#carTypeHint {
    color: #d9534f;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.hidden-method-options {
    display: none !important;
}

#additionalServices {
    transition: margin-top 0.3s ease;
}

.methods-hidden #additionalServices {
    margin-top: -50px;
}

/* Общие стили для кнопок +/- */
.counter-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #0a1f44;
    border-radius: 50%;
    background: #ffffff;
    color: #0a1f44;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0 5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.counter-btn:hover {
    background: #0a1f44;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.counter-value {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: #000;
}

/* Стили для кнопок в блоке грузчиков */
#increaseLoaders, #decreaseLoaders {
    width: 30px;
    height: 30px;
    border: 2px solid #0a1f44;
    border-radius: 50%;
    background: #ffffff;
    color: #0a1f44;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0 5px;
}

#increaseLoaders:hover, #decreaseLoaders:hover {
    background: #0a1f44;
    color: white;
}

/* Стили для кнопок в блоке минимального времени */
.min-time-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #0a1f44;
    border-radius: 50%;
    background: #ffffff;
    color: #0a1f44;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0 5px;
}

.min-time-btn:hover {
    background: #0a1f44;
    color: white;
}


/* Адаптивные стили */
@media (max-width: 768px) {
    .content-section {
        padding: 150px 20px 50px 20px;
    }
    
    #calculator-section, #mapContainer {
        width: 100%;
        min-width: unset;
    }
    
    .auto-tech-trio {
        flex-direction: column;
        gap: 15px;
    }
    
    .mann {
        font-size: 36px;
    }
    
    .logo {
        width: 50px;
    }
    
    .phone, .email {
        font-size: 16px;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 6px 8px;
    }
}


/* Для кнопки добавления адреса */
.add-address-btn {
    margin-top: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #0a1f44, #1a3e8c);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.add-address-btn i {
    transition: all 0.3s;
}


.add-address-btn:hover {
    background: linear-gradient(135deg, #1a3e8c, #0a1f44);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.add-address-btn:hover i {
    transform: rotate(90deg);
}


.add-address-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.1),
        transparent
    );
    transition: 0.6s;
}

.add-address-btn:hover::after {
    left: 100%;
}

.add-address-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(10, 31, 68, 0.15);
}

/* Анимация при фокусе */
@keyframes subtle-pulse {
    0% { box-shadow: 0 0 0 0 rgba(10, 31, 68, 0.1); }
    70% { box-shadow: 0 0 0 6px rgba(10, 31, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 31, 68, 0); }
}

.add-address-btn:focus {
    outline: none;
    animation: subtle-pulse 1.5s infinite;
    border-color: #d4af37;
}

/* Современный стиль для кнопки "Оставить заявку" */
.submit-application-btn {
    position: relative;
    background: linear-gradient(135deg, #0a1f44 0%, #1a3e8c 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px 16px 24px;
    font-size: 16px;
    margin-top: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 31, 68, 0.4);
    border-radius: 6px;
    z-index: 1;
}

/* Иконка почты с постоянной анимацией */
.submit-application-btn i.fa-envelope {
    font-size: 20px;
    color: #d4af37;
    transform-origin: center bottom;
    display: inline-block;
    animation: envelope-shake 2.5s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Иконка самолета */
.submit-application-btn i.fa-paper-plane {
    font-size: 18px;
    color: #ffffff;
    transition: all 0.6s ease;
    opacity: 0.9;
}

/* Улучшенная анимация тряски */
@keyframes envelope-shake {
    0%, 100% { transform: translateX(0) rotate(0); }
    15% { transform: translateX(-3px) rotate(-5deg); }
    30% { transform: translateX(3px) rotate(5deg); }
    45% { transform: translateX(-3px) rotate(-3deg); }
    60% { transform: translateX(2px) rotate(3deg); }
    75% { transform: translateX(-1px) rotate(-2deg); }
    90% { transform: translateX(1px) rotate(2deg); }
}

/* Эффекты при наведении */
.submit-application-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(10, 31, 68, 0.6);
    color: #d4af37;
}

.submit-application-btn:hover i.fa-paper-plane {
    transform: translateX(8px) rotate(45deg);
    color: #d4af37;
    opacity: 1;
}

/* Блестящий эффект фона */
.submit-application-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.6s;
    z-index: -1;
}

.submit-application-btn:hover::before {
    left: 100%;
}

/* Эффект нажатия */
.submit-application-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(10, 31, 68, 0.4);
}

/* Свечение при фокусе */
@keyframes button-glow {
    0% { box-shadow: 0 0 5px 0 rgba(212, 175, 55, 0.5); }
    50% { box-shadow: 0 0 15px 5px rgba(212, 175, 55, 0.3); }
    100% { box-shadow: 0 0 5px 0 rgba(212, 175, 55, 0.5); }
}

.submit-application-btn:focus {
    outline: none;
    animation: button-glow 2s infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .submit-application-btn {
        padding: 14px 24px 14px 18px;
        font-size: 14px;
        gap: 12px;
    }
    
    .submit-application-btn i.fa-envelope {
        font-size: 18px;
    }
    
    .submit-application-btn i.fa-paper-plane {
        font-size: 16px;
    }
}

/* Стили для модального окна выбора транспорта */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 31, 68, 0.9); /* Темно-синий с прозрачностью */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
    transition: opacity 0.3s ease;
}

.modal-container {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
    will-change: transform;
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #0a1f44, #1a3e8c);
    color: white;
    text-align: center;
    position: relative;
    border-bottom: 2px solid #d4af37;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Lobster', cursive;
    font-size: 28px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: #d4af37;
}

.modal-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 10px;
}

.vehicle-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: #d4af37;
}

.vehicle-card.special {
    border-color: #1a3e8c;
}

.vehicle-card.loaders {
    border-color: #ff5722;
}

.vehicle-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    transition: transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-details {
    padding: 15px;
}

.vehicle-title {
    font-size: 18px;
    color: #0a1f44;
    margin-bottom: 10px;
    font-family: 'Lobster', cursive;
}

.vehicle-params {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.vehicle-param {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.vehicle-param i {
    margin-right: 8px;
    color: #d4af37;
    width: 18px;
    text-align: center;
}

.vehicle-price {
    font-size: 18px;
    font-weight: bold;
    color: #1a3e8c;
    margin-top: 10px;
    text-align: right;
}

.vehicle-price span {
    font-size: 14px;
    color: #777;
    font-weight: normal;
    display: block;
}

.modal-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

.modal-footer button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #0a1f44, #1a3e8c);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(10, 31, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-footer button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 31, 68, 0.4);
}

.modal-footer button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.modal-footer button:hover::after {
    left: 100%;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        transform: translateY(20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

/* Эффект при выборе карточки */
.vehicle-card.selected {
    border: 2px solid #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.vehicle-card.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #d4af37;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Кастомный скроллбар */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(#0a1f44, #1a3e8c);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

/* Адаптивность */
@media (max-width: 768px) {
    .vehicle-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
    }
}

/* Эффект для карточек при загрузке */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vehicle-card {
    animation: cardEntrance 0.5s ease-out;
    animation-fill-mode: backwards;
}

/* Задержки для анимации карточек */
.vehicle-card:nth-child(1) { animation-delay: 0.1s; }
.vehicle-card:nth-child(2) { animation-delay: 0.2s; }
.vehicle-card:nth-child(3) { animation-delay: 0.3s; }
.vehicle-card:nth-child(4) { animation-delay: 0.4s; }
.vehicle-card:nth-child(5) { animation-delay: 0.5s; }
.vehicle-card:nth-child(6) { animation-delay: 0.6s; }
/* и так далее... */


/* Добавляем новые стили для полей адресов */
.address-input-container {
    position: relative;
    margin-bottom: 15px;
}

.address-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: all 0.3s;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.address-input:focus {
    border-color: #0a1f44;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(10,31,68,0.2);
}

.address-input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0a1f44;
    font-size: 18px;
    transition: all 0.3s;
}

.address-input:focus + .address-input-icon {
    color: #d4af37;
    transform: translateY(-50%) scale(1.1);
}

/* Анимация для всех полей ввода */
@keyframes inputPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}


.address-input.typing,
.intermediate-input.typing {
    animation: inputPulse 1.5s infinite;
}



/* Стили для контейнера промежуточного адреса */
.intermediate-address-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}

.address-number {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
    color: #0a1f44;
    margin-right: 8px;
}

.intermediate-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}


.intermediate-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: all 0.3s;
    background-color: #f9f9f9;
    box-sizing: border-box;
}



.intermediate-input:focus {
    border-color: #0a1f44;
    outline: none;
    background-color: #fff;
}

/* Иконка внутри поля */
.intermediate-input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0a1f44;
    font-size: 16px;
}

/* Кнопка удаления снаружи */
.remove-address-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 5px;
}

.remove-address-btn:hover {
    background-color: rgba(255, 77, 77, 0.1);
    transform: scale(1.1);
}


/* Общие стили для заголовка */
/* Общие стили для заголовка - убираем отступы */
/* Стиль для лейбла "Тип груза" */
.form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0a1f44;; /* темно-синий цвет */
    margin: 0; /* убираем отступ */
    padding: 0; /* убираем внутренний отступ */
    display: block;
    line-height: 1;
    position: relative;
    top: -4px; /* немного поднимаем вверх, можно изменить значение по желанию */
}

/* Контейнер для инпута и иконки */
.input-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 0; /* убираем отступ сверху */
}

/* Самое поле ввода - прямоугольник с тенями и скруглениями */
.styled-input {
    width: 100%;
    padding: 14px 50px 14px 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Анимация при наведении */
.styled-input:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Иконка - темно-синий цвет, плавная анимация при наведении на инпут */
.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #003366; /* темно-синий цвет */
    transition: transform 0.3s, color 0.3s;
    cursor: pointer;
}

/* При наведении на инпут или фокусе иконка чуть увеличивается и меняет цвет */
.styled-input:hover + .input-icon,
.styled-input:focus + .input-icon {
    transform: translateY(-50%) scale(1.2);
    color: #d4af37; /* чуть светлее синий, по желанию */
}


/* Можно добавить в ваш CSS файл */
.suggestions-list {
  max-height: 150px;
  overflow-y: auto;
}
.suggestion-item:hover {
  background-color: #f0f0f0;
} 



/* Стили для адресных блоков */
.address-input-container, .intermediate-input-wrapper {
    position: relative;
    transition: all 0.3s;
}

/* Подсветка при ошибке */
.input-error {
    animation: shake 0.5s;
    border-color: red !important;
}

/* Стиль для контейнера типа груза */
.cargo-input-group {
    transition: all 0.3s;
}

/* Стиль для поля ввода типа груза */
#cargoType {
    transition: border-color 0.3s, animation 0.5s;
}


#mapContainer {
  position: relative;
  width: 100%;
  height: 500px; /* или любая нужная высота */
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#map, 
#map > ymaps, 
#map > ymaps > ymaps, 
#map > ymaps > ymaps > ymaps {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}


/* Для самой карты */
#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}


.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.contract-price + .currency {
    display: none;
} 

.car-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

.car-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color, #0066cc);
}

.car-card:focus-visible {
    outline: 2px solid var(--focus-color, #0055aa);
    outline-offset: 2px;
}

.car-card__image {
    margin: 0;
    border-radius: 0.25rem;
    overflow: hidden;
}

.car-card__image img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.car-card__content {
    flex: 1;
}


/* Стили для контактов */
        .contacts-vertical {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            position: relative;
            min-height: 24px;
        }
        
        .contact-text {
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            padding-right: 5px;
        }
        
        .contact-text:hover {
            color: goldenrod;
        }
        
        /* Уведомления для ПК (справа) */
        .desktop-notification {
            position: absolute;
            left: 100%;
            top: 50%;
            transform: translateY(-50%);
            margin-left: 10px;
            color: white;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        
        /* Уведомления для мобильных (снизу) */
        .mobile-notification {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 5px;
            color: white;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }
        
        /* Адаптация уведомлений */
        @media (min-width: 768px) {
            .mobile-notification {
                display: none !important;
            }
        }
        
        @media (max-width: 767px) {
            .desktop-notification {
                display: none !important;
            }
        }
        
        /* Анимация копирования */
        @keyframes copiedFlash {
            0% { color: inherit; }
            50% { color: #4CAF50; }
            100% { color: inherit; }
        }
        
        .copied-animation {
            animation: copiedFlash 1s ease;
        }


/* Общие параметры анимации для обеих кнопок */
/* Телефон и ватцап */
:root {
    --pulse-animation: pulse 2s infinite;
    --pulse-whatsapp-animation: pulse-whatsapp 2s infinite;
}

.floating-phone-btn {
    animation: var(--pulse-animation);
    /* остальные стили без изменений */
}

.floating-whatsapp-btn {
    animation: var(--pulse-whatsapp-animation);
    /* остальные стили без изменений */
}

/* Анимации с одинаковыми временными параметрами */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.floating-whatsapp-btn {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media only screen and (max-width: 768px) {
    .floating-whatsapp-btn {
        display: flex;
    }
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media only screen and (max-width: 480px) {
    .floating-whatsapp-btn {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 75px;
    }
    .floating-whatsapp-btn svg {
        width: 25px;
        height: 25px;
    }
}

/* Стили для всех иконок адресов */
.address-input-icon,
.intermediate-input-icon {
    cursor: pointer;
    transition: all 0.3s;
    color: #0a1f44;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Стили при наведении */
.address-input-icon:hover,
.intermediate-input-icon:hover {
    color: #ff0000; /* Красный цвет вместо золотого */
    transform: translateY(-50%) scale(1.1);
}

/* Анимация при клике */
.address-input-icon:active,
.intermediate-input-icon:active {
    transform: translateY(-50%) scale(0.9);
}

/* Подсветка при активном выборе адреса на карте */
.address-selection-active {
    color: #ff0000 !important; /* Красный цвет */
    transform: translateY(-50%) scale(1.2) !important;
    animation: pulse 1.5s infinite;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='%23ff0000' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/><circle cx='12' cy='9' r='2.5' fill='%23ff0000'/></svg>") 12 23, pointer !important;
}

/* Стиль для карты в режиме выбора */
.map-selection-mode, 
.map-selection-mode ymaps {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='0 0 16 24'><path fill='red' d='M8 2C5.8 2 4 3.8 4 6s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4Z'/><path fill='black' stroke='black' stroke-width='1' d='M8 10v14'/></svg>") 8 2, pointer !important;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

#address-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: none;
}

#modal-map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    #address-selection-modal .modal-content {
        width: 95%;
        height: 80%;
    }
}
