/* Секция доставки */
.delivery-data {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
    margin-bottom: 20px;
}
.delivery-data:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.delivery-data h5 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0078be;
    margin-bottom: 25px;
}
.delivery-data .form-group {
    position: relative;
    min-height: 40px;
}
.delivery-data .form-control {
    font-size: 1rem;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}
.delivery-data .error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

/* Вкладки транспорта */
.vehicle-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 15px;
}
.vehicle-tabs .nav-item {
    margin-bottom: -1px;
}
.vehicle-tabs .nav-link {
    display: block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s;
}
.vehicle-tabs .nav-link:hover {
    background: #e9ecef;
    color: #1f2937;
}
.vehicle-tabs .nav-link.active {
    background: #fff;
    color: #0078be;
    border-color: #0078be #e9ecef #fff;
}

/* Контейнеры транспорта */
.tab-content {
    position: relative;
}
.vehicle-methods {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.vehicle-methods.active {
    display: flex;
}
.vehicle-method {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}
.vehicle-method:hover {
    background: #e9ecef;
}
.vehicle-method.selected {
    border-color: #0078be;
    background: #e6f0fa;
}
.vehicle-method img {
    width: 180px;
    height: 100px;
    object-fit: contain;
    border-radius: 5px;
}
.vehicle-method-content {
    flex: 1;
}
.vehicle-method-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 5px;
}
.vehicle-method-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}
.vehicle-method-description li {
    margin-bottom: 3px;
}

/* Стоимость доставки */
.delivery-cost {
    margin-top: 20px;
}
.delivery-cost h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}
.delivery-cost-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0078be;
    transition: opacity 0.3s ease;
    min-height: 2.5rem; /* Фиксируем высоту, чтобы избежать сдвигов */
}
.delivery-cost-value.cost {
    display: inline-flex;
    align-items: baseline;
}
.delivery-cost-value.cost::after {
    content: '₽';
    font-size: 1.5rem;
    margin-left: 5px;
}
.delivery-cost-value.prompt {
    font-size: 1.5rem;
    font-weight: 500;
    color: #0078be;
}
.delivery-cost-value.message {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0; /* Начальное состояние */
    animation: fadeIn 0.3s ease forwards; /* Анимация появления */
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.delivery-cost-value.message::before {
    content: '\f095'; /* Иконка телефона из FontAwesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.5rem;
    color: #0078be;
    padding: 5px;
}
.delivery-cost-value.placeholder {
    font-size: 1.5rem;
    font-weight: 500;
    color: #6b7280;
}
.delivery-cost-value.error {
    font-size: 1rem;
    font-weight: 500;
    color: #dc3545;
}

/* Секция карты */
.map-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 600px;
}
#map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Правила доставки */
.delivery-rules {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}
.delivery-rules-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #0078be;
    margin-bottom: 20px;
}
.delivery-rules-list {
    list-style: none;
    padding: 0;
    font-size: 1rem;
    color: #1f2937;
}
.delivery-rules-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}
.delivery-rules-list li::before {
    content: '\f0c8'; /* Иконка квадрата из FontAwesome */
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    left: 0;
    color: #0078be;
    font-size: 0.8rem;
}

/* Адаптивный дизайн */
@media (max-width: 992px) {
    .delivery-section {
        padding: 30px 0;
    }
    .map-section {
        height: 400px;
        margin-bottom: 20px;
        position: static; /* Отключаем sticky на мобильных */
    }
    .delivery-data {
        padding: 20px;
    }
    .vehicle-method img {
        width: 120px;
        height: 80px;
    }
    .vehicle-tabs .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .delivery-cost-value {
        font-size: 1.8rem;
    }
    .delivery-cost-value.cost::after {
        font-size: 1.3rem;
    }
    .delivery-cost-value.prompt {
        font-size: 1.3rem;
    }
    .delivery-cost-value.placeholder {
        font-size: 1.3rem;
    }
    .delivery-cost-value.message {
        font-size: 0.9rem;
        padding: 8px;
    }
    .delivery-cost-value.error {
        font-size: 0.9rem;
    }
    .delivery-rules {
        padding: 20px;
    }
}
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    .delivery-data h5 {
        font-size: 1.4rem;
    }
    .delivery-data .form-control {
        font-size: 0.9rem;
    }
    .vehicle-method-title {
        font-size: 1rem;
    }
    .vehicle-method-description {
        font-size: 0.85rem;
    }
    .delivery-cost h5 {
        font-size: 1.2rem;
    }
    .delivery-cost-value {
        font-size: 1.5rem;
    }
    .delivery-cost-value.cost::after {
        font-size: 1rem;
    }
    .delivery-cost-value.prompt {
        font-size: 1.1rem;
    }
    .delivery-cost-value.placeholder {
        font-size: 1.1rem;
    }
    .delivery-cost-value.message {
        font-size: 0.85rem;
        padding: 6px;
    }
    .delivery-cost-value.error {
        font-size: 0.85rem;
    }
    .map-section {
        height: 350px;
    }
    .vehicle-method img {
        width: 100px;
        height: 70px;
    }
    .vehicle-tabs .nav-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .delivery-rules-title {
        font-size: 1.5rem;
    }
    .delivery-rules-list {
        font-size: 0.9rem;
    }
}