/**
 * Blue Motors Southampton - Service Selection Step Styles
 * Compatible with existing plugin styling patterns
 * Based on industry leaders design with competitive improvements
 * 
 * File: assets/css/service-selection.css
 */

/* Container and Layout */
.bms-service-selection-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Blue Motors Header */
.bms-competitive-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
}

.bms-competitive-header h2 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.advantages-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.advantages-list .advantage {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Service Header */
.bms-service-header {
    text-align: center;
    margin-bottom: 40px;
}

.bms-service-header h1 {
    color: #2563eb;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.service-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* Vehicle Summary */
.bms-vehicle-summary {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.bms-vehicle-summary:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.vehicle-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vehicle-icon {
    font-size: 2rem;
}

.vehicle-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vehicle-details strong {
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 600;
}

.reg-number {
    background: #1e3a8a;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.engine-info {
    color: #64748b;
    font-size: 0.9rem;
}

.btn-change-vehicle {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-change-vehicle:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* Modern Services Showcase */
.bms-services-showcase {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin: 50px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Service Cards */
.bms-service-card-modern {
    background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-radius: 20px;
    padding: 30px 25px 20px;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 3px solid transparent;
}

.bms-service-card-modern.full-card {
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.bms-service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.bms-service-card-modern.full-card:hover {
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
}

.bms-service-card-modern.selected {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.bms-service-card-modern.full-card.selected {
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.5);
}

/* Popular Badge */
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Service Content */
.service-content {
    flex: 1;
    text-align: center;
}

.service-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 25px 0;
    opacity: 0.95;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Price Section */
.price-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.price-label {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    opacity: 0.9;
}

.price-main {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fuel-types {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 15px 0 25px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Service Details */
.service-details {
    margin: 20px 0 30px;
}

.detail-item {
    font-size: 0.8rem;
    margin: 8px 0;
    opacity: 0.9;
    font-weight: 500;
}

/* Book Service Button */
.btn-book-service {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.btn-book-service:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.bms-service-card-modern.selected .btn-book-service {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* OR Separator */
.services-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.or-text {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
    min-width: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MOT Section */
.bms-mot-section {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    margin: 60px 0 40px;
    text-align: center;
}

.mot-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mot-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.mot-subtitle {
    font-size: 1.1rem;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

/* MOT Pricing Table */
.mot-pricing-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.pricing-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 120px;
    background: #f8fafc;
    padding: 15px 20px;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 120px;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.pricing-row:last-child {
    border-bottom: none;
}

.col-service {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.service-price {
    color: #64748b;
    font-size: 0.9rem;
}

.col-mot {
    text-align: center;
    font-weight: 600;
    color: #dc2626;
}

.col-total {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.total-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a8a;
}

.savings {
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-select-combo {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-select-combo:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Service Comparison */
.bms-service-comparison {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.comparison-header h2 {
    color: #1e3a8a;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.comparison-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0 0 20px 0;
}

.comparison-content {
    margin-top: 20px;
}

.comparison-table {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-row {
    display: contents;
}

.comparison-row > div {
    background: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-row > div {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.check-item {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 20px !important;
}

.interim-col, .full-col {
    font-weight: 600;
}

.interim-col {
    color: #f59e0b;
}

.full-col {
    color: #10b981;
}

.btn-more-info {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-more-info:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

/* Selection Summary */
.bms-selection-summary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.summary-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.selected-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
}

.selected-options {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.btn-continue {
    background: white;
    color: #10b981;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-continue:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Professional Footer */
.bms-competitive-footer {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.bms-competitive-footer h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 25px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.advantage-item {
    text-align: center;
    padding: 20px;
}

.advantage-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.advantage-item h4 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.advantage-item p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bms-service-selection-container {
        padding: 15px;
    }
    
    .bms-services-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .services-separator {
        min-height: 60px;
    }
    
    .or-text {
        min-width: 50px;
        min-height: 50px;
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .bms-service-card-modern {
        padding: 25px 20px 15px;
        min-height: 280px;
        margin-bottom: 15px;
    }
    
    .service-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .service-tagline {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    .price-section {
        margin: 20px 0;
        gap: 12px;
    }
    
    .price-main {
        font-size: 2.8rem;
    }
    
    .price-label {
        font-size: 0.8rem;
    }
    
    .fuel-types {
        font-size: 0.8rem;
        margin: 12px 0 20px;
    }
    
    .detail-item {
        font-size: 0.75rem;
        margin: 6px 0;
    }
    
    .btn-book-service {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .bms-service-header h1 {
        font-size: 2rem;
    }
    
    .advantages-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .bms-vehicle-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pricing-header,
    .pricing-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .pricing-header {
        display: none; /* Hide headers on mobile */
    }
    
    .pricing-row {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 15px;
    }
    
    .comparison-table {
        grid-template-columns: 1fr;
    }
    
    .comparison-row > div {
        border-bottom: 1px solid #e2e8f0;
    }
    
    .header-row {
        display: none; /* Hide headers on mobile */
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .bms-competitive-header {
        padding: 20px 15px;
    }
    
    .bms-competitive-header h2 {
        font-size: 1.2rem;
    }
    
    .advantages-list .advantage {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .bms-service-header h1 {
        font-size: 1.8rem;
    }
    
    .service-subtitle {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .mot-header h2 {
        font-size: 1.5rem;
    }
    
    .mot-header h3 {
        font-size: 1.2rem;
    }
    
    /* Mobile notification adjustments */
    .bms-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        border-radius: 8px;
    }
    
    .notification-content {
        padding: 15px 18px;
    }
    
    .notification-message {
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

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

/* Notification System */
.bms-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    border-left: 4px solid #3b82f6;
}

.bms-notification.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.bms-notification-success {
    border-left-color: #10b981;
}

.bms-notification-error {
    border-left-color: #ef4444;
}

.bms-notification-info {
    border-left-color: #3b82f6;
}

.notification-content {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.notification-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1e293b;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Enhanced hover effects */
.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bms-service-card-modern.hover-effect:not(.selected) {
    transform: translateY(-3px);
}

/* Loading States */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* Enhanced Step Navigation and Visual Feedback */
.step.completed .step-number {
    background: #10b981 !important;
    color: white !important;
    position: relative;
}

.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

/* Service Card Selection States */
.bms-service-card-modern.selected,
.service-card.selected {
    border: 3px solid #3b82f6 !important;
    background: #eff6ff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15) !important;
}

.bms-service-card-modern.selected .btn-select-service {
    background: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
}

.bms-service-card-modern.selected .btn-select-service::before {
    content: '✓ ';
    font-weight: bold;
}

/* Message System */
.bms-message {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    z-index: 1000;
}

.bms-message-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.bms-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.bms-message-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.message-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: 0.7;
}

.message-close:hover {
    opacity: 1;
}

/* Enhanced Button States */
.btn-select-service:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-1px);
}

.btn-select-combo:hover {
    background: #059669 !important;
    border-color: #059669 !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeInEffect 0.5s ease-in-out;
}

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

.slide-up {
    animation: slideUpEffect 0.6s ease-out;
}

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

/* Mobile Responsiveness for Enhanced Features */
@media (max-width: 768px) {
    .bms-message {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .step.completed .step-number::after {
        font-size: 12px;
    }
    
    .bms-service-card-modern.selected {
        transform: none;
    }
}
