/* Servicing Maintenance Page Styles */
/* Aligned with equipment-products.css structure */

/* ===========================
   MAIN CONTAINER
   ========================== */

/* Main Container - matches equipment-products structure */
.equipment-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===========================
   PRODUCTS GRID
   ========================== */

/* Products Grid - matches equipment-products exactly */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ===========================
   PRODUCT CARDS
   ========================== */

/* Product Cards - matches equipment-products structure */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* Carousel Styles */
.product-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.carousel-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    font-size: 3rem;
}

.carousel-auto-scroll-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===========================
   PRODUCT CONTENT
   ========================== */

/* Product Content - matches equipment-products exactly */
.product-content {
    padding: 30px;
}

.product-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-price {
    margin-bottom: 20px;
}

.price-range {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FF6B35;
}

/* ===========================
   SERVICE ADD TO QUOTE BUTTON
   ========================== */

.service-add-to-quote {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.service-add-to-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* ===========================
   MODAL STYLES
   ========================== */

/* Modal Styles - enhanced for quote system */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 30px;
}

/* Quote Review Modal Specific Styles */
.quote-review-content {
    max-width: 1200px;
    width: 90vw;
}

.quote-review-header {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border-radius: 20px 20px 0 0;
}

.quote-review-header h2 {
    color: white;
}

.quote-review-close-btn {
    color: white;
}

.quote-review-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-height: 600px;
}

.quote-summary-column {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.quote-summary-header {
    text-align: center;
    margin-bottom: 30px;
}

.review-icon {
    font-size: 3rem;
    color: #FF6B35;
    margin-bottom: 15px;
}

.review-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.review-subtitle {
    color: #666;
    font-size: 1rem;
}

.quote-items-section {
    margin-bottom: 30px;
}

.quote-items-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.quote-items {
    max-height: 300px;
    overflow-y: auto;
}

.quote-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quote-item-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.quote-item-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.quote-item-price {
    font-weight: 600;
    color: #FF6B35;
}

.quote-total-section {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.quote-total-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.quote-total {
    font-size: 2rem;
    font-weight: 700;
    color: #FF6B35;
}

/* ===========================
   FORM STYLES
   ========================== */

.quote-form-column {
    padding: 0;
}

.quote-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.quote-form-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.submission-note {
    color: #666;
    font-size: 1rem;
}

.quote-submission-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #FF6B35;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #fcc;
    margin-top: 15px;
}

/* ===========================
   SUCCESS MODAL
   ========================== */

.quote-success-content {
    max-width: 600px;
    text-align: center;
}

.quote-success-header {
    background: linear-gradient(135deg, #4CAF50, #45A049);
    color: white;
    border-radius: 20px 20px 0 0;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.success-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.success-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: #FF6B35;
    width: 20px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.success-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.success-footer strong {
    color: #FF6B35;
}

/* ===========================
   LOADING SCREEN
   ========================== */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading.hidden {
    display: none !important;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================
   QUICK ACCESS STATES
   ========================== */

.quick-access-item.active {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    transform: scale(1.05);
}

.quick-access-item.active i {
    color: #FF6B35;
}

.quick-access-item.active span {
    color: #FF6B35;
    font-weight: 600;
}

/* ===========================
   RESPONSIVE DESIGN
   ========================== */

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .quote-review-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 250px;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .product-features {
        gap: 6px;
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* ===========================
   OCEAN BACKGROUND
   ========================== */

.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    animation: wave 10s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}