/* Services Page Specific Styles - Matches repair_style.css */

/* Match repair_style.css layout */
body.repair-page {
    background-image: url('../images/1st/walpaper.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
    padding: 0;
}

.page-main-wrapper {
    padding: 0 50px;
}

.dark-container {
    background: linear-gradient(135deg, #1a2332 0%, #243447 100%);
    padding: 0 0 40px 0;
    min-height: 100vh;
    max-width: 1200px !important;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.repair-container {
    margin: 40px 15px;
    box-sizing: border-box;
}

.back-link-wrapper {
    margin-bottom: 25px;
}

.back-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007AFF !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
    width: 180px;
    white-space: nowrap;
}

.back-button:hover {
    background: #0051D5 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.back-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Mobile Sticky Back Button */
.mobile-sticky-back {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a2332;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.mobile-back-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #007AFF !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.mobile-back-button:hover {
    background: #0051D5 !important;
}

/* Button Hover Effects - Match devices page */
.step-navigation .secondary-btn {
    transition: all 0.3s ease;
}

.step-navigation .secondary-btn:hover {
    background: #0051D5 !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.step-navigation .primary-btn {
    transition: all 0.3s ease;
}

.step-navigation .primary-btn:hover {
    background: #0051D5 !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

/* Modal Styles - Blue Background with Compact Options */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal.visible {
    display: flex;
}

.modal-content {
    background-color: #0079fc;
    margin: auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: none;
}

.modal-header {
    padding: 24px 20px 20px 20px;
    background-color: #0079fc;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px 24px 0 0;
    position: relative;
    z-index: 2;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff !important;
    text-align: center;
    text-shadow: none !important;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff !important;
    line-height: 1;
    padding: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
    border-radius: 8px;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: #ffffff;
    transform: scale(1.05);
}

.modal-body {
    padding: 0 20px 24px 20px;
    position: relative;
    z-index: 2;
    background-color: #0079fc;
    border-radius: 0 0 24px 24px;
}

/* Quality options in modal - Compact Design */
.repair-quality-option {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
}

.repair-quality-option:hover {
    border-color: #ffffff;
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.repair-quality-option.selected {
    border-color: #ffffff;
    border-width: 2px;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.quality-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.repair-quality-option h4 {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    display: block;
}

.repair-quality-option .price-box {
    display: inline-block;
    background: linear-gradient(135deg, #0079fc 0%, #0051D5 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 5px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 121, 252, 0.4);
    margin-left: 10px;
}

.quality-details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0079fc;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.quality-details-toggle:hover {
    color: #0051D5;
}

.quality-details-toggle .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.quality-details-toggle .arrow.expanded {
    transform: rotate(180deg);
}

.repair-quality-option .quality-description {
    margin: 8px 0 0 0;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
}

.repair-quality-option .quality-description.expanded {
    max-height: 200px;
    margin: 8px 0 4px 0;
}

.repair-quality-option small {
    display: block;
    margin-top: 6px;
    color: #10b981;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .page-main-wrapper {
        padding: 0;
        padding-bottom: 0;
    }
    
    .repair-container {
        margin: 20px 0;
    }
    
    /* Hide desktop back button on mobile */
    .desktop-back {
        display: none;
    }
    
    /* Show mobile sticky back button */
    .mobile-sticky-back {
        display: block;
    }
    
    .content-box {
        padding: 5px 15px 80px 15px;
        margin: 0 5px;
        border-radius: 15px 15px 0 0;
    }
    
    #contener2.container-booking {
        margin: 0 5px;
    }
    
    .container-content {
        padding: 0;
    }
    
    .step {
        border-radius: 15px 15px 0 0;
        padding: 5px 15px 25px 15px;
    }
    
    .modal-content {
        width: 92%;
        max-width: 92%;
        max-height: 85vh;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 20px 16px 16px 16px;
        border-radius: 20px 20px 0 0;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-close-btn {
        right: 16px;
        top: 18px;
        font-size: 2rem;
        width: 36px;
        height: 36px;
    }
    
    .modal-body {
        padding: 0 16px 20px 16px;
    }
    
    .repair-quality-option {
        padding: 10px 12px;
        margin-bottom: 8px;
    }
    
    .repair-quality-option h4 {
        font-size: 0.95rem;
    }
    
    .repair-quality-option .price-box {
        font-size: 0.9rem;
        padding: 4px 12px;
    }
    
    .quality-details-toggle {
        font-size: 0.7rem;
        margin-top: 6px;
    }
    
    .repair-quality-option .quality-description {
        font-size: 0.75rem;
    }
    
    .repair-quality-option small {
        font-size: 0.75rem;
        margin-top: 5px;
    }
}

@media screen and (max-width: 480px) {
    #contener2.container-booking {
        margin: 0 5px;
    }
    
    .container-content {
        padding: 0;
    }
    
    .step {
        border-radius: 15px 15px 0 0;
        padding: 5px 10px 20px 10px;
    }
    
    .app-container {
        border-radius: 0;
    }
    
    .modal-content {
        width: 94%;
        border-radius: 18px;
        max-height: 88vh;
    }
    
    .modal-header {
        padding: 18px 14px 14px 14px;
        border-radius: 18px 18px 0 0;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-close-btn {
        right: 14px;
        top: 16px;
        font-size: 1.9rem;
    }
    
    .modal-body {
        padding: 0 14px 18px 14px;
        border-radius: 0 0 18px 18px;
    }
    
    .repair-quality-option {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .repair-quality-option h4 {
        font-size: 0.9rem;
    }
    
    .repair-quality-option .price-box {
        font-size: 0.85rem;
        padding: 4px 10px;
    }
}

/* Bundle Discount Notification Styles */
.bundle-notification {
    position: fixed;
    right: -450px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    transition: right 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', sans-serif;
}

.bundle-notification.show {
    right: 20px;
}

.notification-icon {
    display: none;
}

.notification-content {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    min-width: 400px;
    position: relative;
}

.notification-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.notification-left {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6366f1 100%);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.discount-badge {
    text-align: center;
}

.discount-percentage {
    display: block;
    color: white;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.discount-off {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
}

.notification-body {
    flex: 1;
    padding: 24px 24px 24px 24px;
}

.notification-body h3 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
}

.notification-body p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.notification-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* Mobile Styles for Notification */
@media (max-width: 768px) {
    .bundle-notification {
        right: -350px;
        top: 80px;
        transform: none;
    }
    
    .bundle-notification.show {
        right: 10px;
    }
    
    .notification-icon {
        display: none;
    }
    
    .notification-content {
        min-width: auto;
        max-width: calc(100vw - 20px);
        height: 150px;
    }
    
    .notification-left {
        padding: 20px 15px;
        min-width: 90px;
    }
    
    .discount-percentage {
        font-size: 2.5rem;
    }
    
    .discount-off {
        font-size: 0.65rem;
    }
    
    .notification-body {
        padding: 24px 20px 20px 20px;
    }
    
    .notification-body h3 {
        font-size: 1.125rem;
        margin-bottom: 4px;
    }
    
    .notification-body p {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .notification-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}
