/* Main styles for Manno Pro */

/* Step indicator styles */
.step-indicator {
    transition: all 0.3s ease;
}

.active-step {
    background-color: #3b82f6;
    color: white;
}

.completed-step {
    background-color: #10b981;
    color: white;
}

/* Category card styles */
.category-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.category-card.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Service option styles */
.service-option {
    transition: all 0.2s ease;
}

.service-option.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Map container styles */
#map-container {
    min-height: 300px;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Google Places autocomplete styling */
.pac-container {
    border-radius: 0.375rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    margin-top: 2px;
}

/* File preview styles */
.file-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 2px solid #e5e7eb;
}

/* Page transition styles */
.page-transition {
    transition: opacity 0.3s ease-in-out;
}

.page-transition.fade-out {
    opacity: 0;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #374151;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Categories collapsed state */
.categories-collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#toggle-categories {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

#toggle-categories:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
    padding: 0.5rem;
    animation: bounce 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0,-30px,0);
    }
    70% {
        transform: translate3d(0,-15px,0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

/* Mobile bottom navigation */
#mobile-bottom-nav {
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

#mobile-prev, #mobile-next {
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
}

#mobile-next {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

/* Section appear animation */
.section-appear {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Appliance option styles */
.appliance-option {
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.appliance-option.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Mobile responsive styles */
@media (max-width: 640px) {
    /* Hide progress tracker on mobile */
    #top-progress-tracker {
        display: none;
    }

    .mobile-only {
        display: block !important;
    }

    .appliance-option {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .appliance-option.selected {
        animation: select-pulse 0.6s ease-in-out;
    }

    /* Appliance selection mobile enhancements */
    #appliance-selection {
        position: relative;
        padding-bottom: 2rem;
    }

    @keyframes select-pulse {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
        }
        70% {
            transform: scale(1.02);
            box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
        }
        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
        }
    }

    .appliance-option.selected {
        animation: select-pulse 0.6s ease-in-out;
    }

    .category-card.selected {
        animation: select-pulse 0.6s ease-in-out;
    }

    /* Category grid mobile optimization */
    .category-grid {
        gap: 0.75rem;
    }

    #appliance-selection::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #3b82f6;
        animation: bounce 2s infinite;
        opacity: 0.7;
    }

    /* Button and form mobile optimizations */
    .category-card,
    .appliance-option {
        font-size: 0.9rem;
        padding: 0.875rem;
    }

    #step1-next, 
    #step2-next,
    #step3-next,
    #mobile-next,
    #mobile-prev,
    button {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
        min-height: 48px;
    }

    .sm\:p-6 {
        padding: 1rem !important;
    }

    /* Content spacing */
    main {
        padding-bottom: 6rem;
    }

    /* Form spacing */
    .space-y-6 > div {
        margin-bottom: 1.5rem;
    }

    /* Input sizing for mobile */
    input, select, textarea {
        font-size: 16px;
        min-height: 48px;
    }

    .scroll-indicator:before {
        content: '👇 ';
        margin-right: 0.5rem;
        font-size: 1.2em;
        animation: bounce 2s infinite;
    }

    .scroll-indicator + .scroll-indicator {
        margin-top: 0.5rem;
    }

    /* Mobile specific adjustments */
    .section-appear {
        animation-duration: 0.4s;
    }

    /* Consolidate map container styles */
    #map-container {
        height: 250px;
        margin: 1rem 0;
        border-radius: 0.5rem;
        width: 100%;
    }

    /* Ensure address sections take full width on mobile */
    #address-search-section,
    #map-confirmation-section,
    #address-details-section {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Make sure address search container is full width */
    #address-search-section .mt-1,
    #map-confirmation-section,
    #address-details-section .space-y-6 {
        width: 100%;
    }
}

/* Desktop styles */
@media (min-width: 641px) {
    .mobile-only {
        display: none !important;
    }

    /* Categories expanded state on desktop */
    .categories-collapsed {
        max-height: none;
    }

    .categories-collapsed::after {
        display: none;
    }

    #mobile-bottom-nav {
        display: none;
    }
}

/* Additional mobile map styles */
@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    #map-container {
        height: 250px;
        margin: 1rem 0;
        border-radius: 0.5rem;
        width: 100%;
    }
    
    /* Ensure address sections take full width on mobile */
    #address-search-section,
    #map-confirmation-section,
    #address-details-section {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Make sure address search container is full width */
    #address-search-section .mt-1,
    #map-confirmation-section,
    #address-details-section .space-y-6 {
        width: 100%;
    }
}

/* Section animation */
.section-appear {
    animation: sectionFadeIn 0.6s ease-out;
}

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

/* Service option enhanced styles */
.service-option {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.service-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.service-option.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Address search focus state */
#address-search:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Map container loading state */
#map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(243, 244, 246, 0.8) 25%,
        rgba(229, 231, 235, 0.8) 50%,
        rgba(243, 244, 246, 0.8) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#map-container.loading::before {
    opacity: 1;
}

/* Address search and map sections - ensure full width */
#address-search-section,
#map-confirmation-section,
#address-details-section {
    width: 100%;
    max-width: none;
}

/* Make sure address search input takes full width */
#address-search {
    width: 100%;
}

/* Fix information important section layout - now simplified since HTML is corrected */
.bg-yellow-50 .flex.flex-col {
    align-items: flex-start;
}

/* Mobile specific fixes for information important - now simplified */
@media (max-width: 640px) {
    .bg-yellow-50 .flex.flex-col {
        align-items: flex-start;
        width: 100%;
    }
    
    .bg-yellow-50 .flex.flex-col h3 {
        margin-bottom: 0.75rem;
    }
    
    .bg-yellow-50 .flex.flex-col div {
        width: 100%;
    }
}

/* Button styles */
#back-to-service,
#confirm-location {
    transition: all 0.2s ease;
}

#back-to-service:hover,
#confirm-location:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Confirm location button with icon */
#confirm-location {
    position: relative;
    overflow: hidden;
}

#confirm-location::after,
#confirm-location:hover::after,
#confirm-location:focus::after {
    content: '✓';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#confirm-location:hover::after,
#confirm-location:focus::after {
    opacity: 1;
}

/* Section headings */
.section-heading {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-heading i {
    color: #3b82f6;
    margin-right: 0.5rem;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Animate pulse class */
.animate-pulse {
    animation: pulse 2s infinite;
}

/* Address display styles */
#address-display {
    transition: all 0.2s ease;
}

#address-display:hover {
    background-color: #f9fafb;
    border-color: #3b82f6;
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

#coverage-error.shake {
    animation: shake 0.5s ease-in-out;
}

/* Arrow and navigation icons */
.fas.fa-arrow-left,
.fas.fa-arrow-right {
    transition: transform 0.2s ease;
}

.fas.fa-arrow-left:hover {
    transform: translateX(-2px);
}

.fas.fa-arrow-right:hover {
    transform: translateX(2px);
}

/* Complete address button */
#complete-address, 
#address-details-section {
    transition: all 0.3s ease;
}

/* Hide mobile nav when address details are shown */
#address-details-section:not(.hidden) ~ #mobile-bottom-nav {
    display: none;
}

/* Payment overlay styles */
#payment-overlay {
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

#payment-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#payment-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

#payment-overlay > div {
    animation: fadeInUp 0.4s ease-out;
}

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

/* Prevent scrolling when overlay is shown */
body.overflow-hidden {
    overflow: hidden;
}

/* Payment overlay z-index fix */
#payment-overlay {
    z-index: 9999;
}

/* Price footer styles */
#price-footer {
    backdrop-filter: blur(10px);
    z-index: 30;
}

/* Global responsive adjustments */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Container max-width adjustments */
.max-w-3xl, 
.max-w-4xl,
.max-w-5xl {
    margin-left: auto;
    margin-right: auto;
}

/* Grid and flex improvements */
.category-grid,
.appliance-grid {
    gap: 1rem;
}

/* Flex utilities */
.flex {
    display: flex;
}

/* Fixed positioning */
.fixed {
    position: fixed;
}

/* Logo styles */
#logo {
    max-height: 40px;
    width: auto;
}

/* Enhanced mobile styles for better UX */
@media (min-width: 390px) {
    .time-option {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    .time-options.grid-cols-2 {
        gap: 0.75rem;
    }

    .time-option span {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

/* Date selector improvements */
.date-selector {
    gap: 0.5rem;
}

.month-selector, .day-selector {
    flex: 1;
}

select.month-select, select.day-select {
    font-size: 0.9rem;
    padding: 0.75rem 0.5rem;
    border-radius: 0.375rem;
}

.date-time-group {
    margin-bottom: 1.5rem;
}

/* Terms and conditions styling */
.relative.flex.items-start {
    align-items: flex-start;
    gap: 0.75rem;
}

#terms-service {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.ml-3.text-sm {
    flex: 1;
}

.ml-3.text-sm p {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

/* Link styling */
.text-blue-600 {
    color: #2563eb;
    text-decoration: underline;
}

/* Payment option styling */
.payment-option {
    transition: all 0.2s ease;
}

/* Enhanced mobile footer */
@media (min-width: 390px) {
    #price-footer {
        padding: 1.25rem 1rem;
    }

    #footer-price {
        font-size: 1.125rem;
    }

    #footer-confirm {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Benefits list styling */
.benefits-list li,
.advantages-list li,
.details-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.benefits-list li svg,
.advantages-list li svg,
.details-list li svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.benefits-list li span,
.advantages-list li span,
.details-list li span {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Icon color consistency */
.text-blue-500 svg,
.text-green-500 svg {
    color: currentColor;
}

/* Warning section list styling */
.text-yellow-700 ul.list-disc li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Flex container improvements */
.flex {
    display: flex;
}

/* Warning section custom bullets */
.bg-yellow-50 ul,
.text-yellow-700 ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.bg-yellow-50 ul li,
.text-yellow-700 ul li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.bg-yellow-50 ul li::before,
.text-yellow-700 ul li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: #b45309;
}

/* Alternative approach for ordered lists */
.bg-yellow-50 ol,
.text-yellow-700 ol {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.bg-yellow-50 ol li,
.text-yellow-700 ol li {
    margin-bottom: 0.5rem;
}

/* Installation Kit Selection Styles */
.installation-kit-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.installation-kit-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8, #3b82f6);
    border-radius: 0.5rem;
    z-index: -1;
    animation: glow-blue 3s ease-in-out infinite alternate;
}

@keyframes glow-blue {
    from {
        box-shadow: 0 0 5px #3b82f6;
    }
    to {
        box-shadow: 0 0 15px #3b82f6, 0 0 25px #3b82f6;
    }
}

/* Installation choice option styling */
.installation-choice-option {
    transition: all 0.2s ease;
    cursor: pointer;
}

.installation-choice-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.installation-choice-option:has(input:checked) {
    border-color: currentColor;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.installation-choice-option:has(input[value="yes"]:checked) {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}

.installation-choice-option:has(input[value="no"]:checked) {
    border-color: #059669 !important;
    background-color: #f0fdf4 !important;
}

/* Radio button custom styling - Mobile-first approach */
input[name="installation_kit_choice"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background-color: white;
    position: relative;
    cursor: pointer;
    outline: none;
    margin: 0;
    padding: 0;
    flex: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transform: none;
    transition: border-color 0.2s ease;
}

input[name="installation_kit_choice"]:checked {
    border-color: currentColor;
    background-color: currentColor;
}

input[name="installation_kit_choice"]:checked::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    transform: none;
}

input[name="installation_kit_choice"]:focus {
    outline: none;
    border-color: #3b82f6;
}

input[name="installation_kit_choice"]:active {
    transform: none;
    outline: none;
}

/* Hover effects for different options */
.installation-choice-option:hover:has(input[value="yes"]) {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

.installation-choice-option:hover:has(input[value="no"]) {
    border-color: #059669;
    background-color: #f8fafc;
}

/* Mobile-specific radio button fixes */
input[name="installation_kit_choice"] {
    /* No need to override size, use same as desktop */
    margin-right: 12px;
}

input[name="installation_kit_choice"]:checked::before {
    /* Keep same size as desktop */
}

input[name="installation_kit_choice"]:active,
input[name="installation_kit_choice"]:focus {
    transform: none;
    outline: none;
}

/* Better spacing for mobile */
.installation-choice-option .flex.items-center {
    gap: 12px;
    align-items: flex-start;
}

/* Ensure labels don't have tap effects */
.installation-choice-option {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Custom background colors for hover states */
.hover\:bg-blue-25:hover {
    background-color: #f8fafc;
}

.hover\:bg-green-25:hover {
    background-color: #f8fafc;
}

/* Ensure proper spacing and alignment */
.installation-choice-option .group-hover\:text-blue-700 {
    transition: color 0.2s ease;
}

.installation-choice-option .group-hover\:text-green-700 {
    transition: color 0.2s ease;
}

.installation-choice-option:hover:has(input[value="no"]) {
    border-color: #059669;
    background-color: #f8fafc;
}

/* Price styling improvements */
.installation-choice-option .text-lg.font-bold {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Error highlighting for installation kit */
.installation-kit-card.ring-2.ring-red-500 {
    animation: shake 0.5s ease-in-out;
    border-color: #ef4444 !important;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
}

.installation-kit-card.ring-2.ring-orange-400 {
    animation: pulse-orange 1s ease-in-out infinite;
}

/* Error message styling for installation kit */
#installation-kit-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 1rem;
    animation: error-slide-in 0.3s ease-out;
}

@keyframes error-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(251, 146, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 146, 60, 0);
    }
}

/* Enhanced error highlighting */
.error-highlight {
    animation: error-flash 1.5s ease-in-out;
}

@keyframes error-flash {
    0%, 100% {
        background-color: transparent;
    }
    25%, 75% {
        background-color: rgba(239, 68, 68, 0.1);
    }
    50% {
        background-color: rgba(239, 68, 68, 0.2);
    }
}

/* Price update animation */
.price-updated {
    animation: price-bounce 0.5s ease-in-out;
}

@keyframes price-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: #059669;
    }
}

/* Mobile optimizations for installation kit */
@media (max-width: 640px) {
    .installation-kit-card {
        margin: 1rem 0;
        border-radius: 0.5rem;
        border: 2px solid #3b82f6;
        padding: 1.5rem 1rem;
    }
    
    .installation-kit-card::before {
        border-radius: 0.5rem;
    }
    
    .installation-choice-option {
        padding: 1rem;
        margin: 0;
        border-radius: 0.5rem;
    }
    
    .installation-choice-option .ml-4 {
        margin-left: 0.75rem;
    }
    
    /* Stack price on mobile for better readability */
    .installation-choice-option .flex.items-center.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .installation-choice-option .text-right {
        text-align: left;
        margin-left: 0;
    }
    
    .installation-choice-option .ml-6 {
        margin-left: 0;
    }
    
    /* Mobile-specific radio button fixes */
    input[name="installation_kit_choice"] {
        /* No need to override size, use same as desktop */
        margin-right: 12px;
    }
    
    input[name="installation_kit_choice"]:checked::before {
        /* Keep same size as desktop */
    }
    
    input[name="installation_kit_choice"]:active,
    input[name="installation_kit_choice"]:focus {
        transform: none;
        outline: none;
    }
    
    /* Better spacing for mobile */
    .installation-choice-option .flex.items-center {
        gap: 12px;
        align-items: flex-start;
    }
    
    /* Ensure labels don't have tap effects */
    .installation-choice-option {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
}

/* Ensure map and address sections are not constrained by main container */
#step2 #address-search-section,
#step2 #map-confirmation-section,
#step2 #address-details-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Map container should use full available width */
#step2 #map-container {
    width: 100%;
    max-width: 100%;
}

/* Address input should be full width */
#step2 #address-search {
    width: 100%;
    max-width: 100%;
}

/* Mobile adjustments for full width */
@media (max-width: 640px) {
    #step2 {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #step2 #address-search-section,
    #step2 #map-confirmation-section,
    #step2 #address-details-section {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #step2 #map-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

#confirm-location {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Back to service button should maintain natural width when in header */
#back-to-service {
    width: auto; /* Changed from 100% to auto for natural width */
    margin-bottom: 0.5rem;
    flex-shrink: 0; /* Prevent the button from shrinking */
}

/* Ensure the flex container for back button + title stays inline on mobile */
.flex.items-center #back-to-service {
    width: auto;
}

/* Make sure the title in header doesn't wrap unnecessarily */
#address-search-section h3,
#map-confirmation-section h3,
#address-details-section h3 {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 0.5rem;
}
