/* Taxi Cost Calculator Styles */
.cost-of-transport {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.cost-of-transport h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.cost-of-transport__form {
    background: #ffffff;
    padding: 0;
    border-radius: 0;
}

.cost-of-transport__row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cost-of-transport__field {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cost-of-transport__field label {
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cost-of-transport__field input[type="text"],
.cost-of-transport__field input[type="email"],
.cost-of-transport__field input[type="tel"],
.cost-of-transport__field select,
.cost-of-transport__field textarea {
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cost-of-transport__field input[type="text"]:focus,
.cost-of-transport__field input[type="email"]:focus,
.cost-of-transport__field input[type="tel"]:focus,
.cost-of-transport__field select:focus,
.cost-of-transport__field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cost-of-transport__button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.cost-of-transport__button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.cost-of-transport__price-container {
    margin: 20px 0;
}

.cost-of-transport__price-box {
    background: #e8f5e8;
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.cost-of-transport__price-label {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.cost-of-transport__price-value {
    font-size: 32px;
    font-weight: bold;
    color: #27ae60;
}

.cost-of-transport__transport-methods,
.cost-of-transport__car-types {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cost-of-transport__transport-method,
.cost-of-transport__car-type {
    flex: 1;
    min-width: 200px;
    padding: 18px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cost-of-transport__transport-method:hover,
.cost-of-transport__car-type:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.cost-of-transport__transport-method.selected,
.cost-of-transport__car-type.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cost-of-transport__car-type-icon {
    font-size: 32px;
    color: #6b7280;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 100%;
}

.cost-of-transport__car-type-icon i {
    font-size: 32px;
    display: inline-block;
    line-height: 1;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.cost-of-transport__car-type:hover .cost-of-transport__car-type-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.cost-of-transport__car-type.selected .cost-of-transport__car-type-icon {
    color: #3b82f6;
}

.cost-of-transport__transport-method-title,
.cost-of-transport__car-type-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.cost-of-transport__transport-method-description {
    font-size: 14px;
    color: #666;
}

.cost-of-transport__loading {
    text-align: center;
    padding: 20px;
}

.cost-of-transport__message {
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.cost-of-transport__message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cost-of-transport__message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Ireland Contact Message - Prominent styling */
.cost-of-transport__ireland-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.3);
    border: 2px solid #ff6b6b;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    animation: pulse-glow 2s infinite;
}

.cost-of-transport__ireland-message h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cost-of-transport__ireland-message p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
}

.cost-of-transport__ireland-message .contact-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

/* Non-UK Countries Restriction Message */
.cost-of-transport__restriction-message {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    border: 2px solid #dc2626;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.cost-of-transport__restriction-message h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cost-of-transport__restriction-message p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
}

.cost-of-transport__restriction-message .restriction-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    backdrop-filter: blur(10px);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(238, 90, 36, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 35px rgba(238, 90, 36, 0.5);
        transform: scale(1.02);
    }
}

/* Continue with Booking Button */
.cost-of-transport__booking-container {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.cost-of-transport__booking-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cost-of-transport__booking-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.cost-of-transport__booking-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cost-of-transport__booking-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cost-of-transport__booking-button:hover .dashicons {
    transform: translateX(3px);
}

.cost-of-transport__booking-note {
    margin: 15px 0 0 0;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}



/* Icon styles */
.cost-of-transport__icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* Simplified Font Awesome icon styling for plugin compatibility */
.cost-of-transport .fas,
.cost-of-transport .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Ensure icons display properly in Hello Elementor theme */
.hello-elementor .cost-of-transport__car-type-icon i.fas {
    display: inline-block !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* Ensure car type icons are properly centered and sized */
.cost-of-transport__car-type-icon .fas {
    color: inherit;
    font-size: inherit;
}

/* Additional icon styling to ensure proper display */
.cost-of-transport__car-type-icon .fa-car-side:before {
    content: "\f5e4" !important;
}

.cost-of-transport__car-type-icon .fa-truck-pickup:before {
    content: "\f63c" !important;
}

.cost-of-transport__car-type-icon .fa-truck:before {
    content: "\f0d1" !important;
}

/* Fallback for themes that might override icon fonts */
.cost-of-transport__car-type[data-type="small_car"] .cost-of-transport__car-type-icon:empty:after {
    content: "🚗";
    font-size: 32px;
    display: block;
}

.cost-of-transport__car-type[data-type="suv"] .cost-of-transport__car-type-icon:empty:after {
    content: "🚙";
    font-size: 32px;
    display: block;
}

.cost-of-transport__car-type[data-type="van"] .cost-of-transport__car-type-icon:empty:after {
    content: "🚐";
    font-size: 32px;
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .cost-of-transport {
        padding: 20px 15px;
        margin: 0 10px;
    }
    
    .cost-of-transport__row {
        flex-direction: column;
    }
    
    .cost-of-transport__field {
        min-width: 100%;
    }
    
    .cost-of-transport__transport-methods,
    .cost-of-transport__car-types {
        flex-direction: column;
    }
    
    .cost-of-transport__transport-method,
    .cost-of-transport__car-type {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .cost-of-transport__car-type-icon {
        font-size: 28px;
        margin-bottom: 10px;
        height: 45px;
    }
    
    .cost-of-transport__car-type-icon i {
        font-size: 28px;
    }
    
    /* Mobile-optimized booking button */
    .cost-of-transport__booking-container {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .cost-of-transport__booking-button {
        width: 100%;
        padding: 18px 20px;
        font-size: 16px;
        min-height: 60px;
        box-sizing: border-box;
        word-wrap: break-word;
        white-space: normal;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .cost-of-transport__booking-note {
        font-size: 13px;
        margin-top: 12px;
    }
    
    /* Mobile message styling */
    .cost-of-transport__ireland-message,
    .cost-of-transport__restriction-message {
        padding: 20px 15px;
        margin: 20px 0;
        font-size: 16px;
    }
    
    .cost-of-transport__ireland-message h3,
    .cost-of-transport__restriction-message h3 {
        font-size: 20px;
    }
    
    .cost-of-transport__ireland-message .contact-info,
    .cost-of-transport__restriction-message .restriction-info {
        padding: 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cost-of-transport {
        padding: 15px 10px;
        margin: 0 5px;
    }
    
    .cost-of-transport__booking-button {
        padding: 16px 15px;
        font-size: 15px;
        min-height: 56px;
    }
    
    .cost-of-transport__ireland-message,
    .cost-of-transport__restriction-message {
        padding: 15px 10px;
        font-size: 15px;
    }
}
