/* Multi Service Quote Plugin - Modern Blue, Yellow Theme */

:root {
    /* Primary Colors */
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    --primary-yellow: #fbbf24;
    --primary-yellow-light: #fde047;
    --primary-yellow-dark: #f59e0b;
    
    /* Grey Palette */
    --grey-50: #f9fafb;
    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-300: #d1d5db;
    --grey-400: #9ca3af;
    --grey-500: #6b7280;
    --grey-600: #4b5563;
    --grey-700: #374151;
    --grey-800: #1f2937;
    --grey-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-yellow-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--grey-100) 0%, var(--grey-200) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

.msq-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 2rem 1rem;
}

.msq-container h2 {
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
}

.msq-container h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-sm);
}

#msq-form-wrapper {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--grey-200);
    position: relative;
    width: 100%;
    min-height: 550px;
}

#msq-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
}

/* Progress Indicator */
.msq-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem 1rem;
    background: var(--grey-50);
    border-bottom: 1px solid var(--grey-200);
    position: relative;
}

.msq-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 3rem;
    right: 3rem;
    height: 2px;
    background: var(--grey-300);
    z-index: 1;
}

.msq-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: var(--grey-50);
    padding: 0 1rem;
}

.msq-progress-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--grey-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.msq-progress-step.active .msq-progress-circle {
    background: var(--gradient-primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    animation: pulse-blue 2s infinite;
}

.msq-progress-step.completed .msq-progress-circle {
    background: var(--gradient-secondary);
    transform: scale(1.05);
    animation: pulse-green 1s ease-in-out;
}

.msq-progress-step.completed .msq-progress-circle::before {
    content: '✓';
    font-size: 1.2rem;
}

.msq-progress-label {
    font-size: 0.875rem;
    color: var(--grey-600);
    font-weight: 500;
    text-align: center;
}

.msq-progress-step.active .msq-progress-label {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Form Steps */
.msq-step {
    padding: 2rem;
    margin: 0;
    background: white;
    border-radius: 0;
    border: none;
    border-left: none;
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease-in-out;
}

.msq-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.msq-step.prev {
    transform: translateX(-30px);
}

.msq-step h3 {
    color: var(--grey-800);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    padding-bottom: 1rem;
    position: relative;
}

.msq-step label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--grey-700);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.msq-step input[type="text"],
.msq-step input[type="email"],
.msq-step input[type="tel"],
.msq-step input[type="date"],
.msq-step input[type="number"],
.msq-step select,
.msq-step textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--grey-300);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
    color: var(--grey-800);
}

.msq-step input[type="text"]:focus,
.msq-step input[type="email"]:focus,
.msq-step input[type="tel"]:focus,
.msq-step input[type="date"]:focus,
.msq-step input[type="number"]:focus,
.msq-step select:focus,
.msq-step textarea:focus {
    border-color: var(--primary-blue-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.msq-step input[type="text"]:hover,
.msq-step input[type="email"]:hover,
.msq-step input[type="tel"]:hover,
.msq-step input[type="date"]:hover,
.msq-step input[type="number"]:hover,
.msq-step select:hover,
.msq-step textarea:hover {
    border-color: var(--grey-400);
}

/* City State Info */
.city-state-info {
    font-size: 0.875rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 500;
    min-height: 1.25rem;
    background: rgba(59, 130, 246, 0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-blue-light);
}

/* Distance Display */
.distance-info {
    margin: 2rem 0;
}

.distance-card {
    background: var(--gradient-accent);
    border: 2px solid var(--grey-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.distance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.distance-card h4 {
    color: var(--grey-800);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.distance-card p {
    color: var(--grey-700);
    margin: 0.75rem 0;
    font-size: 1.1rem;
}

.distance-card strong {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Service Selection Buttons */
.msq-service-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.msq-service-btn {
    background: white;
    border: 3px solid var(--grey-200);
    padding: 1.25rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    width: 100%;
    max-width: 300px;
    color: var(--grey-700);
    box-shadow: var(--shadow-md);
}

.msq-service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s;
}

.msq-service-btn:hover {
    border-color: var(--primary-blue-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.msq-service-btn:hover::before {
    left: 100%;
}

.msq-service-btn:active {
    transform: translateY(-2px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.msq-service-btn:hover .service-icon {
    filter: none;
    transform: scale(1.1);
}

.msq-service-btn strong {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--grey-800);
}

.msq-service-btn small {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.4;
    color: var(--grey-600);
}

/* Service buttons remain vertically aligned on all screen sizes */

/* Expedited Shipping Section */
.expedited-shipping-section {
    background: rgba(251, 191, 36, 0.1);
    border: 2px solid var(--primary-yellow-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.expedited-shipping-section::before {
    content: '⚡';
    position: absolute;
    top: -1rem;
    left: 2rem;
    background: var(--gradient-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--grey-800);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.checkbox-label input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 1rem;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.expedited-note {
    color: var(--grey-600);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Date Info */
.date-info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary-blue-light);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    color: var(--primary-blue-dark);
    font-weight: 500;
}

.date-info.expedited-active {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: var(--primary-yellow);
    color: var(--primary-yellow-dark);
}

.expedited-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Navigation Buttons */
.msq-button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    gap: 1rem;
}

.msq-next-btn,
.msq-prev-btn,
.msq-submit-btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.msq-next-btn::after,
.msq-prev-btn::after,
.msq-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.msq-next-btn:active::after,
.msq-prev-btn:active::after,
.msq-submit-btn:active::after {
    width: 300px;
    height: 300px;
}

.msq-next-btn {
    background: var(--gradient-primary);
    color: white;
}

.msq-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.msq-prev-btn {
    background: var(--grey-500);
    color: white;
}

.msq-prev-btn:hover {
    background: var(--grey-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.msq-submit-btn {
    background: var(--gradient-secondary);
    color: var(--grey-800);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1.25rem 3rem;
    margin: 2rem auto;
    display: block;
    box-shadow: var(--shadow-lg);
}

.msq-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    filter: brightness(1.05);
}

.msq-next-btn:disabled,
.msq-prev-btn:disabled,
.msq-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Vehicle/Bike Sections */
.vehicle-section,
.bike-section {
    background: var(--grey-50);
    border: 2px solid var(--grey-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.vehicle-section::before,
.bike-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.vehicle-header,
.bike-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--grey-200);
}

.vehicle-title,
.bike-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grey-800);
    margin: 0;
}

.remove-vehicle,
.remove-bike {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.remove-vehicle:hover,
.remove-bike:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Add Vehicle/Bike Buttons */
.add-vehicle,
.add-bike {
    background: var(--gradient-secondary);
    color: var(--grey-800);
    border: 2px dashed var(--primary-yellow);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2rem 0;
    width: 100%;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.add-vehicle:hover,
.add-bike:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-style: solid;
}

.add-vehicle::before,
.add-bike::before {
    content: '+';
    font-size: 1.5rem;
    font-weight: 700;
}

/* Freight Form Styles */
.freight-form-section {
    background: white;
    padding: 0;
}

.freight-form-section h4 {
    color: var(--grey-800);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--grey-200);
    position: relative;
}

.freight-form-section h4::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-sm);
}

.dimensions-section {
    background: rgba(59, 130, 246, 0.05);
    border: 2px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.dimensions-section h5 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-group .checkbox-label {
    background: white;
    border: 2px solid var(--grey-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.checkbox-group .checkbox-label:hover {
    border-color: var(--primary-blue-light);
    box-shadow: var(--shadow-md);
}

.checkbox-group .checkbox-label input[type="checkbox"]:checked {
    accent-color: var(--primary-blue);
}

/* File Upload */
.file-upload-area {
    border: 3px dashed var(--grey-300);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--grey-50);
    position: relative;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
    transform: translateY(-2px);
}

.file-upload-area.dragover {
    border-color: var(--primary-yellow);
    background: rgba(251, 191, 36, 0.1);
    transform: scale(1.02);
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-text {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--grey-400);
}

.file-upload-text p {
    color: var(--grey-700);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-upload-text small {
    color: var(--grey-500);
    font-size: 0.95rem;
}

.file-preview {
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.file-name {
    font-weight: 600;
    color: var(--grey-800);
}

.file-size {
    color: var(--grey-500);
    font-size: 0.9rem;
}

/* Enhanced animations and transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Enhanced focus states for better accessibility */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Enhanced loading animation */
.msq-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--grey-300);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced hover effects for service buttons */
.msq-service-btn:hover {
    border-color: var(--primary-blue-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.msq-service-btn:hover::before {
    left: 100%;
}

/* Enhanced progress indicator with better animations */
.msq-progress-step.active .msq-progress-circle {
    animation: pulse-blue 2s infinite;
}

.msq-progress-step.completed .msq-progress-circle {
    animation: pulse-green 1s ease-in-out;
}

@keyframes pulse-blue {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

@keyframes pulse-green {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.05); }
}

/* Enhanced form validation styling */
.msq-error-message {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 0.5rem 0;
    font-weight: 500;
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced success message styling */
.msq-success-message {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    color: #16a34a;
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 0.5rem 0;
    font-weight: 500;
    animation: slideInLeft 0.3s ease-out;
}

/* Enhanced file upload area with better visual feedback */
.file-upload-area:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(251, 191, 36, 0.05) 100%);
    transform: translateY(-2px);
}

.file-upload-area.dragover {
    border-color: var(--primary-yellow);
    background: rgba(251, 191, 36, 0.1);
    transform: scale(1.02);
}

/* Enhanced button hover states */
.msq-next-btn:hover,
.msq-prev-btn:hover {
    background-size: 120% 120%;
}

/* Enhanced distance card with better visual appeal */
.distance-card {
    position: relative;
    overflow: hidden;
}

/* Enhanced expedited shipping section */
.expedited-shipping-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.expedited-shipping-section::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-secondary);
    border-radius: inherit;
    z-index: -1;
}

/* Enhanced vehicle/bike sections */
.vehicle-section:hover,
.bike-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Improved form row spacing and alignment */
.form-row {
    align-items: end;
}

/* Enhanced checkbox and radio styling */
input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .msq-container {
        max-width: 100%;
        padding: 1rem 0.5rem;
    }
    
    #msq-form-wrapper {
        min-height: 450px;
    }
    
    .msq-step {
        padding: 1.5rem;
    }
    
    .msq-progress {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .msq-service-options {
        margin: 1.5rem 0;
        max-width: 100%;
    }
    
    .msq-service-btn {
        min-height: 100px;
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    .msq-progress::before {
        display: none;
    }
    
    .msq-progress {
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .msq-progress-label {
        display: none;
    }
    
    .msq-container h2 {
        font-size: 2rem;
    }
    
    .msq-container h2::after {
        width: 60px;
    }
    
    .msq-step {
        padding: 1rem;
    }
    
    .msq-step h3 {
        font-size: 1.5rem;
    }
}

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced focus styles for form groups */
.form-group.focused label {
    color: var(--primary-blue);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.form-group input.has-value,
.form-group select.has-value {
    border-color: var(--primary-blue);
}

/* Enhanced loading states */
.msq-loading {
    animation-duration: 0.8s;
}

/* Print styles */
@media print {
    .msq-progress,
    .msq-next-btn,
    .msq-prev-btn,
    .msq-submit-btn {
        display: none !important;
    }
    
    .msq-container {
        max-width: none;
        box-shadow: none;
    }
    
    .msq-step {
        page-break-inside: avoid;
    }
}

/* Vehicle Dropdown Improvements */
.vehicle-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 15px 0;
  border: 1px solid #e9ecef;
}

.vehicle-make, .vehicle-model, .vehicle-year {
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.vehicle-make:focus, .vehicle-model:focus, .vehicle-year:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

.vehicle-make:disabled, .vehicle-model:disabled {
  background: #f8f9fa;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Loading state for dropdowns */
.vehicle-make option:first-child,
.vehicle-model option:first-child {
  font-style: italic;
  color: #6c757d;
}

/* Beautiful email preview styles */
.email-preview {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  max-width: 600px;
}

.email-preview h3 {
  color: #495057;
  margin-top: 0;
}

.email-preview .preview-content {
  background: white;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Enhanced form sections */
.form-section {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #e9ecef;
}

.form-section h4 {
  color: #495057;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

/* Improved button styling */
.btn-load-models {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-load-models:hover {
  background: #5a6268;
}

.btn-load-models:disabled {
  background: #dee2e6;
  cursor: not-allowed;
}
