/* Cargo Section Styling */
.cargo-section {
    position: relative;
    overflow: hidden;
}

.cargo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23F9A826" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%23263043" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    z-index: 0;
}

.cargo-section > * {
    position: relative;
    z-index: 1;
}

.calculator-info-box {
    transition: all 0.4s ease;
    border: 1px solid rgba(249, 168, 38, 0.1);
}

.calculator-info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(249, 168, 38, 0.2);
}

.route-selection-box {
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.route-selection-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.shipping-method-btn {
    transition: all 0.3s ease;
    border-radius: 15px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.shipping-method-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Delivery Time Styling */
.delivery-time {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 0.5rem;
}

.delivery-time i {
    opacity: 0.9;
}

.delivery-time small {
    font-size: 0.85rem;
    opacity: 0.95;
}

.pricing-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Question Mark Styling */
.question-mark {
    display: inline-block;
    transition: all 0.2s ease;
    vertical-align: top;
    position: relative;
    top: -2px;
}

.question-mark:hover {
    transform: scale(1.1);
}

/* Enhanced Shipping Method Buttons */
.shipping-method-btn-enhanced {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px !important;
    overflow: hidden;
    position: relative;
}

.shipping-method-btn-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.shipping-method-btn-enhanced:active {
    transform: translateY(-2px) scale(0.98);
}

.method-icon-wrapper {
    transition: all 0.3s ease;
}

.shipping-method-btn-enhanced:hover .method-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Modal Enhancements */
.modal-content {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.info-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(249, 168, 38, 0.3) !important;
}

/* WhatsApp Button Animation */
.btn-success:hover {
    background: linear-gradient(135deg, #128c7e, #075e54) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Tracking Number Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.tracking-number-highlight {
    animation: pulse 2s infinite;
}

.question-mark i {
    font-size: 0.7em !important;
    opacity: 0.8;
    vertical-align: top;
}

.question-mark i:hover {
    opacity: 1;
}

/* Enhanced Tooltip Positioning */
.question-mark[data-bs-toggle="tooltip"] {
    position: relative;
}

/* Custom tooltip arrow positioning for top placement */
.tooltip.bs-tooltip-top .tooltip-arrow {
    bottom: 0;
    left: 50%;
    margin-left: -0.4rem;
    border-width: 0.4rem 0.4rem 0;
    border-top-color: #000;
}

/* Ensure tooltips appear above the question mark */
.question-mark .tooltip {
    z-index: 1055;
}

/* Form Styling */
.cargo-form-control:focus {
    border-color: #F9A826;
    box-shadow: 0 0 0 0.25rem rgba(249, 168, 38, 0.25);
    transform: translateY(-1px);
}

/* Fix input group icons - ensure they stay visible */
.cargo-input-group .icon {
    z-index: 10 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 16px !important;
    color: #F9A826 !important;
}

.cargo-input-group input:focus + .icon,
.cargo-input-group input:focus ~ .icon {
    z-index: 10 !important;
    opacity: 1 !important;
    color: #F9A826 !important;
}

.form-control-lg {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #F9A826;
    border-color: #F9A826;
}

.form-check-label {
    transition: all 0.2s ease;
    cursor: pointer;
}

.form-check-input:checked + .form-check-label {
    color: #F9A826;
    font-weight: 600;
}

/* Price Display */
#totalPrice {
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Equal Height Containers */
.row.align-items-stretch .col-lg-4,
.row.align-items-stretch .col-lg-8 {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.calculator-info-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    justify-content: center;
    align-items: center;
}

.card.shadow-lg {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ensure both containers have equal height */
.cargo-section .row.align-items-stretch {
    min-height: 600px;
}

.cargo-section .col-lg-4,
.cargo-section .col-lg-8 {
    min-height: 600px;
}

/* Calculator Buttons */
.calculator-btn-air {
    background: linear-gradient(135deg, #F9A826, #FFB84D);
    border: none;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 168, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.calculator-btn-air:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 168, 38, 0.4);
    background: linear-gradient(135deg, #e89a1f, #f5a52a);
    color: white;
}

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

.calculator-btn-sea {
    background: linear-gradient(135deg, #000000, #333333);
    border: none;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.calculator-btn-sea:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: white;
}

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

.calculator-btn-air .btn-icon,
.calculator-btn-sea .btn-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calculator-btn-air:hover .btn-icon,
.calculator-btn-sea:hover .btn-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Simplified Results Styling */
.result-display {
    animation: fadeInScale 0.5s ease-out;
}

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

.result-display h2 {
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
}

.result-display small {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Calculator Containers */
.calculator-container {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-container .card {
    border-radius: 12px;
    overflow: hidden;
}

.calculator-container .card-header {
    border-radius: 12px 12px 0 0;
    font-weight: 600;
}

/* Freight Info */
.freight-info-card {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.freight-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Compact Freight Info */
.freight-info-compact {
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.freight-info-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.price-display-card {
    border-radius: 15px;
}

/* Card Styling */
.card {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
}

.rounded-lg {
    border-radius: 15px !important;
}

/* Button Styling */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

/* General button hover - but not for upload buttons */
.btn:hover:not(.upload-section .btn) {
    transform: translateY(-2px);
}

/* Custom Tooltip */
.custom-tooltip {
    pointer-events: none;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
}

/* Route Display Styling */
.route-display {
    border: 2px solid rgba(249, 168, 38, 0.1);
}

/* Static elements - no hover animations needed */
.route-point-static, .route-arrow-static {
    transition: none;
}

/* Form styling similar to service-quote */
.form-style-one .cargo-input-group {
    position: relative;
    margin-bottom: 0;
}

.form-style-one .cargo-input-group .icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #F9A826;
    z-index: 10;
    pointer-events: none;
}

.form-style-one .cargo-input-group input,
.form-style-one .cargo-input-group select {
    height: 60px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 0 20px 0 60px;
    font-size: 16px;
    color: #666;
    background: #fff;
    transition: all 0.3s ease;
}

.form-style-one .cargo-input-group input:focus,
.form-style-one .cargo-input-group select:focus {
    border-color: #F9A826;
    box-shadow: 0 0 0 0.2rem rgba(249, 168, 38, 0.25);
    outline: none;
}

/* Icon Styling */
.icon-wrapper {
    transition: all 0.3s ease;
}

/* Animation for form appearance */
#calculatorForm {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cargo-section .col-lg-3 {
        margin-bottom: 2rem;
    }

    .route-selection-box {
        min-height: 350px !important;
        padding: 2rem !important;
    }

    .shipping-method-btn {
        font-size: 0.9rem;
        padding: 1rem 2rem !important;
        margin-bottom: 1rem;
    }

    .delivery-time {
        padding: 0.4rem 0.6rem;
        margin-top: 0.4rem;
    }

    .delivery-time small {
        font-size: 0.8rem;
    }

    .display-3 {
        font-size: 2.5rem !important;
    }

    .route-point {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .route-point:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    }

    .form-select:focus {
        box-shadow: 0 0 0 0.25rem rgba(249, 168, 38, 0.25);
        outline: none;
    }

    .d-flex.gap-4 {
        flex-direction: column;
        gap: 1rem !important;
    }
}

@media (max-width: 576px) {
    .route-selection-box {
        min-height: 300px !important;
        padding: 1.5rem !important;
    }

    .pricing-card {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .calculator-info-box {
        text-align: center;
        min-height: 200px;
    }

    .shipping-method-btn {
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #F9A826;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff7e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-point {
    transition: all 0.3s ease;
}

.route-point:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* File Upload Styling */
.upload-section .btn {
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
    color: inherit !important;
}

.upload-section .btn:hover {
    border-color: #F9A826;
    background-color: rgba(249, 168, 38, 0.1);
    color: inherit !important;
}

.upload-section .btn-outline-primary:hover {
    color: #F9A826 !important;
    background-color: rgba(249, 168, 38, 0.1) !important;
    border-color: #F9A826 !important;
}

.upload-section .btn-outline-secondary:hover {
    color: #6c757d !important;
    background-color: rgba(249, 168, 38, 0.1) !important;
    border-color: #F9A826 !important;
}

/* Ensure upload buttons don't get affected by global button styles */
.upload-section .btn,
.upload-section .btn:hover,
.upload-section .btn:focus,
.upload-section .btn:active {
    transform: none !important;
    text-decoration: none !important;
}

.upload-section .btn i {
    color: inherit !important;
}

/* Enhanced Product Type Design */
.product-type-container {
    margin-top: 1rem;
}

.product-type-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 15px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-type-card:hover {
    border-color: #F9A826;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 168, 38, 0.15);
}

.product-type-card.selected {
    border-color: #F9A826;
    background: linear-gradient(135deg, #fff7e6 0%, #fff 100%);
    box-shadow: 0 8px 25px rgba(249, 168, 38, 0.2);
}

.product-type-card.selected .product-type-indicator i {
    color: #F9A826;
}

.product-type-card.selected .product-type-indicator i:before {
    content: "\f111";
}

.product-type-content {
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.product-type-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F9A826, #FFB84D);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.product-type-icon i {
    font-size: 24px;
    color: white;
}

.product-type-icon.special {
    background: linear-gradient(135deg, #000000, #333333);
}

.product-type-card:hover .product-type-icon {
    transform: scale(1.1);
}

.product-type-info {
    flex: 1;
}

.product-type-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.product-type-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-type-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(249, 168, 38, 0.1);
    color: #F9A826;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(249, 168, 38, 0.2);
}

.product-type-card.selected .feature-tag {
    background: rgba(249, 168, 38, 0.2);
    border-color: #F9A826;
}

.product-type-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-type-indicator i {
    font-size: 18px;
    color: #dee2e6;
    transition: all 0.3s ease;
}

.product-type-card:hover .product-type-indicator i {
    color: #F9A826;
}

/* Responsive Design for Product Type Cards */
@media (max-width: 768px) {
    .product-type-content {
        padding: 1rem;
        gap: 0.75rem;
    }

    .product-type-icon {
        width: 50px;
        height: 50px;
    }

    .product-type-icon i {
        font-size: 20px;
    }

    .product-type-title {
        font-size: 1rem;
    }

    .product-type-description {
        font-size: 0.85rem;
    }

    .progress {
        background-color: #e9ecef;
        border-radius: 10px;
        overflow: hidden;
    }

    .progress-bar.bg-gradient {
        background: linear-gradient(90deg, #f9a826 0%, #ff8c00 100%) !important;
        transition: width 0.6s ease;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .product-type-card {
        margin-bottom: 1rem;
    }

    .product-type-content {
        padding: 12px;
    }

    .product-type-container .row {
        gap: 10px;
    }

    .product-type-icon {
        align-self: center;
        margin-bottom: 0.5rem;
    }

    .product-type-features {
        justify-content: center;
    }
}

.image-preview-container {
    max-height: 200px;
    overflow-y: auto;
}

.image-preview-item {
    position: relative;
    display: inline-block;
}

.remove-btn {
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.remove-btn:hover {
    background: #c82333 !important;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.remove-btn:active {
    transform: scale(0.95);
}

.pdf-preview-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

/* Add form styling to calculator form */
#shippingCalculatorForm .cargo-input-group {
    position: relative;
    margin-bottom: 0;
}

#shippingCalculatorForm .cargo-input-group .icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #F9A826;
    z-index: 10;
    pointer-events: none;
}

#shippingCalculatorForm .cargo-input-group input,
#shippingCalculatorForm .cargo-input-group select {
    height: 60px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 0 20px 0 60px;
    font-size: 16px;
    color: #666;
    background: #fff;
    transition: all 0.3s ease;
    width: 100%;
}

#shippingCalculatorForm .cargo-input-group input:focus,
#shippingCalculatorForm .cargo-input-group select:focus {
    border-color: #F9A826;
    box-shadow: 0 0 0 0.2rem rgba(249, 168, 38, 0.25);
    outline: none;
}

/* Enhanced Route Display Styling */
.route-display-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.route-display-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #F9A826, #FFB84D, #000000);
    border-radius: inherit;
    padding: 3px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.route-bg-pattern {
    background-image: radial-gradient(circle at 20% 20%, rgba(249, 168, 38, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, rgba(38, 48, 67, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
}

.route-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.route-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.route-icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.destination-select {
    cursor: pointer;
    transition: all 0.3s ease;
}

.destination-select:hover {
    transform: scale(1.05);
}

.rotating-plane {
    animation: fly 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes fly {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(10px) rotate(5deg);
    }
}

.flight-path {
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F9A826, transparent);
    animation: pathGlow 2s ease-in-out infinite;
}

@keyframes pathGlow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.route-stats .stat-item {
    transition: all 0.3s ease;
}

.route-stats .stat-item:hover {
    transform: translateY(-3px);
}

.route-stats .stat-item:hover .stat-icon i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Enhanced Shipping Method Buttons */
.shipping-method-btn-enhanced {
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.shipping-method-btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
}

.shipping-method-btn-enhanced:active {
    transform: translateY(-1px);
}

.btn-bg-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
}

.method-icon-wrapper {
    transition: all 0.3s ease;
}

.shipping-method-btn-enhanced:hover .method-icon-wrapper {
    transform: scale(1.05);
}

.method-badge {
    font-weight: bold;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.method-features small {
    transition: all 0.3s ease;
    margin: 2px 0;
}

.gap-6 {
    gap: 3rem !important;
}

/* Z-index utility */
.z-index-2 {
    z-index: 2;
}

/* Responsive Design for Enhanced Elements */
@media (max-width: 768px) {
    .route-display-enhanced {
        padding: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .route-flow {
        flex-direction: column;
        gap: 2rem !important;
    }

    .route-card {
        min-width: 250px !important;
    }

    .shipping-method-btn-enhanced {
        min-width: 250px !important;
        min-height: 180px !important;
        margin-bottom: 1rem;
    }

    .method-title {
        font-size: 1.5rem !important;
    }

    .gap-6 {
        gap: 1.5rem !important;
    }

    .route-arrow-enhanced {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

@media (max-width: 576px) {
    .route-card {
        min-width: 200px !important;
        padding: 1rem !important;
    }

    .shipping-method-btn-enhanced {
        min-width: 220px !important;
        min-height: 160px !important;
    }

    .route-stats {
        flex-direction: column;
        gap: 1rem !important;
    }

    .route-stats .stat-item {
        padding: 1rem !important;
    }
}

/* Premium Route Display Styling */
.route-display-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.route-display-premium::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #F9A826, #FFB84D, #000000, #333333);
    border-radius: inherit;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Floating Background Elements */
.route-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(249, 168, 38, 0.1), rgba(255, 184, 77, 0.1));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, rgba(38, 48, 67, 0.1), rgba(58, 74, 92, 0.1));
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(249, 168, 38, 0.05), rgba(38, 48, 67, 0.05));
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

/* Route Header Icon Animation */
.route-header-icon i {
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Route Cards Premium Styling */
.route-card-enhanced {
    position: relative;
    z-index: 2;
}

.route-point-premium {
    backdrop-filter: blur(10px);
    /* Removed hover animations */
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

/* Removed card shine hover effect */

/* Country Flag Circle */
.country-flag-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* Removed flag circle hover effect */

.flag-emoji {
    font-size: 2rem;
    transition: all 0.3s ease;
}

/* Premium Destination Select */
.destination-select-premium {
    transition: all 0.3s ease;
}

/* Removed destination select hover effect */

/* Flight Animation Container */
.flight-animation-container {
    width: 120px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Flight Path Line */
.flight-path-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F9A826, transparent);
    animation: pathPulse 2s ease-in-out infinite;
}

@keyframes pathPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Flying Plane Animation */
.flying-plane {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: flyAcross 4s ease-in-out infinite;
    z-index: 3;
}

@keyframes flyAcross {
    0% {
        left: 0;
        transform: translateY(-50%) rotate(0deg);
    }
    50% {
        left: calc(100% - 40px);
        transform: translateY(-60%) rotate(5deg);
    }
    100% {
        left: 0;
        transform: translateY(-50%) rotate(0deg);
    }
}

/* Dotted Path */
.dotted-path {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
}

.path-dot {
    width: 8px;
    height: 8px;
    background: #F9A826;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.path-dot:nth-child(1) {
    animation-delay: 0s;
}

.path-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.path-dot:nth-child(3) {
    animation-delay: 0.4s;
}

.path-dot:nth-child(4) {
    animation-delay: 0.6s;
}

.path-dot:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Route Statistics Cards */
.stat-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card::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.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive Design for Premium Route */
@media (max-width: 768px) {
    .route-display-premium {
        padding: 2rem !important;
    }

    .route-flow-container .d-flex {
        flex-direction: column;
        gap: 2rem !important;
    }

    .route-point-premium {
        min-width: 280px !important;
    }

    .flight-animation-container {
        width: 80px;
        height: 80px;
        transform: rotate(90deg);
    }

    .route-statistics .row {
        gap: 1rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .route-point-premium {
        min-width: 250px !important;
        padding: 1rem !important;
    }

    .country-flag-circle {
        width: 50px;
        height: 50px;
    }

    .flag-emoji {
        font-size: 1.5rem;
    }

    .country-name {
        font-size: 1.5rem !important;
    }

    .flight-animation-container {
        width: 60px;
        height: 60px;
    }

    .cargo-search-form {
        padding: 5px !important;
    }
}

.route-display-premium {
    border-radius: 20px;
}

/* Mobile Calculator Button */
.mobile-calculator-btn {
    position: fixed;
    left: 20px;
    bottom: 80px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F9A826, #FFB84D);
    border: none;
    color: white;
    box-shadow: 0 4px 20px rgba(249, 168, 38, 0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.mobile-calculator-btn:active {
    transform: scale(0.95);
}

.mobile-calculator-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(249, 168, 38, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(249, 168, 38, 0.8);
    }
}

/* Mobile Calculator Panel */
.mobile-calculator-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-calculator-panel.active {
    right: 0;
}

.mobile-calculator-panel::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mobile-calculator-panel.active::before {
    opacity: 1;
    pointer-events: auto;
}

.mobile-calculator-header {
    background: linear-gradient(135deg, #F9A826, #FFB84D);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.btn-close-calculator {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-calculator:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.3);
}

.mobile-calculator-body {
    padding: 20px;
}

/* Hide on larger screens */
@media (min-width: 992px) {
    .mobile-calculator-btn,
    .mobile-calculator-panel {
        display: none !important;
    }
}
