/* home-hero-calculator.css - hero и основной калькулятор главной */

/* ==================== 4. ГЛАВНАЯ ГЕРОЙ-СЕКЦИЯ ==================== */
.main-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--white);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    padding-right: 2rem;
    animation: fadeInLeft 0.8s ease-out 0.1s both;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--gray-600);
}

.hero-subtitle strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hero-actions .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: var(--transition);
}

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

.hero-actions .btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hero-actions .btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.hero-actions .btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-actions .btn svg {
    width: 20px;
    height: 20px;
}

/* ==================== 5. КАЛЬКУЛЯТОР И КАРТА ==================== */
.calculator-section {
    padding: 4rem 0 2rem;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.calculator-map-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.calculator-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.calculator-container:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-large);
}

.calculator-header {
    padding: 1.5rem 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.calculator-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.calculator-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.calculator-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    flex-shrink: 0;
}

.calculator-title i {
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.calculator-title span {
    white-space: nowrap;
}

.loader-order-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    padding: 0.25rem 0;
    flex-shrink: 0;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: gradientFlow 3s ease-in-out infinite;
}

.loader-order-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
    transition: width 0.3s ease;
    background-size: 200% 100%;
    animation: gradientFlow 3s ease-in-out infinite;
}

.loader-order-link:hover {
    transform: translateY(-1px);
}

.loader-order-link:hover::after {
    width: 100%;
}

.calculator-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: var(--white);
    gap: 1rem;
}

.calculator-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.calculator-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.calculator-col.full-width {
    flex: 1 1 100%;
    width: 100%;
}

.calculator-col.services-col {
    flex: 1;
    min-width: 0;
}

.calculator-col.order-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: space-between;
}

/* ==================== 6. КОМПОНЕНТЫ КАЛЬКУЛЯТОРА ==================== */
/* ОСНОВНЫЕ БЛОКИ (транспорт, адреса, дата, телефон) - 65px */
.transport-selection-box,
.text-input-box,
.add-address-box,
.date-selection-box,
.phone-input-box,
.route-selection-box,
.intermediate-address-box {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    text-align: left;
    min-height: 65px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

.transport-selection-box:hover,
.text-input-box:hover,
.add-address-box:hover,
.date-selection-box:hover,
.route-selection-box:hover,
.intermediate-address-box:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.text-input-box:hover,
.text-input-box:focus-within,
.phone-input-box:hover,
.phone-input-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.text-input-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* БЛОК ВЫБОРА ТРАНСПОРТА */
.transport-box-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    min-width: 0;
}

.transport-box-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.transport-selection-box:hover .transport-box-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.05);
}

.transport-box-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    min-width: 0;
    padding: 0 0.25rem;
    letter-spacing: -0.01em;
}

.transport-box-arrow {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--gray-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.transport-selection-box:hover .transport-box-arrow {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* БЛОК ТЕКСТОВОГО ВВОДА */
.input-box-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    min-width: 0;
}

.input-box-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.text-input-box.type-gruza:hover,
.text-input-box.type-gruza:focus-within {
    border-color: #2563eb;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
}

.text-input-box.type-gruza .input-box-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.text-input-box.type-gruza:hover .input-box-icon,
.text-input-box.type-gruza:focus-within .input-box-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    transform: scale(1.05);
    border-color: transparent;
}

.text-input-box.zagruzka .input-box-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
}

.text-input-box.zagruzka:hover .input-box-icon,
.text-input-box.zagruzka:focus-within .input-box-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: var(--white);
    transform: scale(1.05);
}

.text-input-box.vygruzka .input-box-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.text-input-box.vygruzka:hover .input-box-icon,
.text-input-box.vygruzka:focus-within .input-box-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
    transform: scale(1.05);
}

.input-box-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    font-family: 'Inter', sans-serif;
    min-width: 0;
    width: 100%;
}

.input-box-field::placeholder {
    color: var(--gray-400);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* БЛОКИ СПОСОБА ЗАГРУЗКИ/ВЫГРУЗКИ */
.loading-methods-box,
.intermediate-loading-methods-box {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    width: 100%;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    text-align: left;
    min-height: 65px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    overflow: hidden;
    box-sizing: border-box;
}

.loading-methods-box:hover,
.intermediate-loading-methods-box:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-medium);
}

.loading-methods-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    min-width: 0;
}

.loading-methods-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
    padding-left: 0;
    line-height: 1;
    margin-bottom: 0;
}

.loading-checkboxes {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    padding-left: 0;
}

.loading-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    padding: 0.25rem 0.375rem;
    border-radius: 6px;
    flex-shrink: 0;
    min-width: 60px;
}

.loading-checkbox:hover {
    background: var(--gray-50);
}

.loading-checkbox-input {
    display: none;
}

.loading-checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    order: 1;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.loading-checkbox-input:checked + .loading-checkbox-custom {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.loading-checkbox-input:checked + .loading-checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.loading-checkbox-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    order: 2;
    text-align: center;
}

.loading-checkbox-input:checked ~ .loading-checkbox-text {
    color: var(--primary-blue);
    font-weight: 600;
}

/* БЛОК ДОБАВЛЕНИЯ АДРЕСА */
.add-address-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 0.75rem;
    min-width: 0;
}

.add-address-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.add-address-box:hover .add-address-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.05);
}

.add-address-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    letter-spacing: -0.01em;
}

/* БЛОК ВЫБОРА ДАТЫ */
.date-box-content,
.phone-box-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
    min-width: 0;
}

.date-box-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.date-selection-box:hover .date-box-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: var(--white);
    transform: scale(1.05);
}

.date-box-field {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    font-family: 'Inter', sans-serif;
    min-width: 0;
    width: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.date-box-field:empty:before {
    content: attr(data-placeholder);
    color: var(--gray-400);
    font-weight: 400;
}

.date-box-arrow {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: var(--gray-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.date-selection-box:hover .date-box-arrow {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: var(--white);
    border-color: #8b5cf6;
}

/* БЛОК ВВОДА ТЕЛЕФОНА */
.phone-box-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.phone-input-box:hover .phone-box-icon,
.phone-input-box.focused .phone-box-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--white);
    transform: scale(1.05);
}

.phone-box-field {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    background: transparent;
    font-family: 'Inter', sans-serif;
    min-width: 0;
    width: 100%;
    letter-spacing: 0.5px;
    caret-color: var(--primary-blue);
    line-height: 1.4;
}

.phone-box-field::placeholder {
    color: var(--gray-400);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-box-field.mask-empty {
    color: var(--gray-400);
}

/* БЛОК ДОПОЛНИТЕЛЬНЫХ УСЛУГ */
.additional-services-box {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    width: 100%;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    text-align: left;
    min-height: 110px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
}

.additional-services-box:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-medium);
}

.additional-services-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.additional-services-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    white-space: nowrap;
    padding-top: 0;
}

.additional-services-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    flex: 1;
}

.additional-service-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    padding: 0.125rem 0;
    border-radius: 6px;
    width: 100%;
    flex-shrink: 0;
    min-height: 22px;
}

.additional-service-checkbox:hover {
    background: var(--gray-50);
}

.service-checkbox-input {
    display: none;
}

.service-checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.service-checkbox-input:checked + .service-checkbox-custom {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
}

.service-checkbox-input:checked + .service-checkbox-custom::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.service-checkbox-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    line-height: 1.3;
}

.service-checkbox-input:checked ~ .service-checkbox-text {
    color: var(--primary-blue);
    font-weight: 600;
}

/* БЛОК ИТОГОВОЙ СТОИМОСТИ */
.total-price-box {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    width: 100%;
    cursor: default;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
    text-align: left;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    box-sizing: border-box;
}

.total-price-box:hover {
    border-color: #10b981;
    box-shadow: var(--shadow-medium);
}

.total-price-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
    min-width: 0;
}

.total-price-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
    flex-shrink: 0;
}

.total-price-values {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
}

.total-price-main {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-shrink: 0;
}

.price-zero {
    font-size: 1.6rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

.price-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
}

.price-divider {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray-400);
    margin: 0 0.125rem;
    flex-shrink: 0;
}

.total-price-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid var(--gray-200);
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.total-price-time {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.time-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
    flex-shrink: 0;
}

.time-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gray-50);
    padding: 0.3rem 0.625rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.time-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 6px;
    background: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.time-btn:hover {
    background: var(--gray-100);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.time-btn:active {
    transform: translateY(0);
}

.time-btn-minus {
    color: #ef4444;
}

.time-btn-plus {
    color: #10b981;
}

.time-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.order-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.order-now-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: var(--transition);
}

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

.order-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.order-now-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.order-now-btn:hover i {
    transform: translateX(5px);
}

/* СТИЛИ ДЛЯ ПРОМЕЖУТОЧНЫХ АДРЕСОВ */
.intermediate-address-box .input-box-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.route-box-arrow {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--gray-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* ==================== MOBILE CALCULATOR BASE OVERRIDES ==================== */
@media (max-width: 768px) {
    .calculator-section {
        display: block;
    }
}



/* ===== desktop-only order summary layout ===== */
@media (min-width: 769px) {
    .calculator-mode-transport .total-price-box {
        display: grid;
        grid-template-columns: minmax(120px, auto) auto minmax(0, 1fr);
        grid-template-areas:
            "label time price"
            "privacy privacy privacy"
            "button button button";
        column-gap: 0.75rem;
        row-gap: 0.9rem;
        align-items: center;
        min-height: auto;
    }

    .calculator-mode-transport .total-price-content,
    .calculator-mode-transport .total-price-bottom {
        display: contents;
    }

    .calculator-mode-transport .total-price-label {
        grid-area: label;
        font-size: 0;
        line-height: 0;
        color: transparent;
        margin: 0;
    }

    .calculator-mode-transport .total-price-label::before {
        content: 'Время аренды';
        display: inline-block;
        font-size: 0.92rem;
        line-height: 1.15;
        font-weight: 700;
        color: var(--text-dark);
    }

    .calculator-mode-transport .total-price-time {
        grid-area: time;
        flex: none;
        min-width: auto;
        gap: 0;
        justify-content: flex-start;
    }

    .calculator-mode-transport .time-label {
        display: none;
    }

    .calculator-mode-transport .time-controls {
        margin: 0;
        gap: 0.35rem;
        padding: 0.22rem 0.45rem;
    }

    .calculator-mode-transport .time-btn {
        width: 22px;
        height: 22px;
        font-size: 0.95rem;
    }

    .calculator-mode-transport .time-value {
        font-size: 0.9rem;
        min-width: 18px;
    }

    .calculator-mode-transport .total-price-values {
        grid-area: price;
        justify-self: end;
        width: 100%;
        min-width: 0;
    }

    .calculator-mode-transport .price-row {
        justify-content: flex-end;
        gap: 0.35rem;
        flex-wrap: nowrap;
    }

    .calculator-mode-transport .total-price-main {
        min-width: 0;
        gap: 0.2rem;
    }

    .calculator-mode-transport .price-zero {
        font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    }

    .calculator-mode-transport .price-text,
    .calculator-mode-transport .price-divider {
        font-size: 0.72rem;
    }

    .calculator-mode-transport .privacy-agreement {
        grid-area: privacy;
        width: 100%;
        margin: 0;
    }

    .calculator-mode-transport .order-now-btn {
        grid-area: button;
        width: 100%;
        margin: 0;
    }

    .calculator-mode-loaders .total-price-label {
        display: none;
    }

    .calculator-mode-loaders .total-price-content {
        justify-content: flex-end;
    }

    .calculator-mode-loaders .total-price-values {
        flex: 0 1 auto;
    }

    .calculator-mode-loaders .price-row {
        justify-content: flex-end;
    }
}

/* ===== desktop validation highlight ===== */
.field-error-state {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.14), 0 8px 18px rgba(248, 113, 113, 0.07) !important;
}

.transport-selection-box.field-error-state,
.text-input-box.field-error-state,
.intermediate-address-box.field-error-state,
.date-selection-box.field-error-state,
.phone-input-box.field-error-state,
.privacy-agreement.field-error-state {
    background: #fffefe;
}

.transport-selection-box.field-error-state .transport-box-icon,
.text-input-box.field-error-state .input-box-icon,
.intermediate-address-box.field-error-state .input-box-icon,
.date-selection-box.field-error-state .date-box-icon,
.phone-input-box.field-error-state .phone-box-icon {
    color: #ef4444 !important;
    border-color: rgba(248, 113, 113, 0.28) !important;
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.9) 0%, rgba(255, 247, 247, 0.95) 100%) !important;
}

.transport-selection-box.field-error-state .transport-box-arrow,
.date-selection-box.field-error-state .date-box-arrow {
    color: #ef4444 !important;
    border-color: rgba(248, 113, 113, 0.25) !important;
    background: #fff7f7 !important;
}

.privacy-agreement.field-error-state {
    border-color: #f87171 !important;
}

.privacy-agreement.field-error-state .privacy-checkbox-custom {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.14) !important;
}


/* Inline address helper shown only for incomplete address text. */
.address-field-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 8px 0;
    padding: 8px 10px;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 12px;
    background: rgba(255, 247, 247, 0.92);
    color: #b91c1c;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 6px 14px rgba(248, 113, 113, 0.08);
}

.address-field-hint i {
    margin-top: 1px;
    color: #ef4444;
    font-size: 13px;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .address-field-hint {
        margin-left: 4px;
        margin-right: 4px;
        font-size: 12px;
    }
}


/* Technical image source wrapper: keeps AVIF/WebP <picture> layout identical to plain img. */
.banner-image picture {
    display: block;
    width: 100%;
    height: 100%;
}
.banner-image picture img {
    width: 100%;
    height: 100%;
}
