/* Premium Maintenance Portal Styles - Light Theme */
.cmp-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    position: relative;
    padding: 20px;
}

.cmp-wrapper::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.cmp-header {
    text-align: center;
    padding: 50px 20px 30px;
    position: relative;
    z-index: 1;
}

.cmp-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.cmp-header p {
    color: #64748b;
    font-size: 1.15rem;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.cmp-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    position: relative;
    z-index: 1;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.cmp-tab {
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cmp-tab:hover {
    background: #f1f5f9;
    color: #334155;
}

.cmp-tab.active {
    background: #ffffff;
    color: #2563eb;
    border-color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cmp-content-area {
    padding: 40px 50px 60px;
    position: relative;
    z-index: 1;
    min-height: 400px;
}

.cmp-form {
    animation: fadeInSlideUp 0.5s ease forwards;
}

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

.cmp-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 700;
}

.cmp-input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .cmp-input-group {
        grid-template-columns: 1fr;
    }
}

.cmp-form input[type="text"],
.cmp-form input[type="tel"],
.cmp-form input[type="email"],
.cmp-form input[type="number"],
.cmp-form input[type="date"],
.cmp-form textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    color: #334155;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cmp-form input:focus,
.cmp-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.cmp-form input::placeholder,
.cmp-form textarea::placeholder {
    color: #94a3b8;
}

.cmp-file-upload {
    margin: 25px 0;
    padding: 30px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    background: #f8fafc;
}

.cmp-file-upload:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.cmp-file-upload label {
    display: block;
    margin-bottom: 12px;
    color: #475569;
    font-weight: 600;
}

.cmp-submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.5);
    margin-top: 15px;
}

.cmp-submit-btn:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 12px 25px -6px rgba(37, 99, 235, 0.6);
}

.cmp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cmp-message {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.cmp-success { color: #059669; }
.cmp-error { color: #dc2626; }

.cmp-warranty-status {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInSlideUp 0.3s ease;
}

.cmp-warranty-status.active {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #047857;
}

.cmp-warranty-status.expired {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #b91c1c;
}

/* --- V2 Component Styles (Light Theme) --- */

/* Grids */
.cmp-grid {
    display: grid;
    gap: 30px;
    padding: 0 50px 50px;
    position: relative;
    z-index: 1;
}
.cmp-3-col { grid-template-columns: repeat(3, 1fr); }
.cmp-2-col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
    .cmp-3-col, .cmp-2-col { grid-template-columns: 1fr; padding: 0 20px 30px; }
    .cmp-header { padding: 40px 20px 20px; }
}

/* Service Cards */
.cmp-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.cmp-card:hover {
    transform: translateY(-8px);
    border-color: #bfdbfe;
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
}
.cmp-card-icon {
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    transition: all 0.3s ease;
}
.cmp-card:hover .cmp-card-icon {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.1);
}
.cmp-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: #0f172a;
    font-weight: 700;
}
.cmp-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}
.cmp-card.cmp-accent .cmp-card-icon {
    background: #f0fdfa;
    color: #0d9488;
}
.cmp-card.cmp-accent:hover .cmp-card-icon {
    background: #0d9488;
    color: #ffffff;
}
.cmp-card.cmp-accent:hover {
    border-color: #a7f3d0;
    box-shadow: 0 20px 40px -10px rgba(13, 148, 136, 0.15);
}

/* Pricing Grid */
.cmp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 50px 50px;
}
@media (max-width: 768px) {
    .cmp-pricing-grid { grid-template-columns: 1fr; padding: 0 20px 30px; }
}
.cmp-pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.cmp-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}
.cmp-pricing-card.cmp-popular {
    border: 2px solid #3b82f6;
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.2);
}
.cmp-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.cmp-pricing-card h3 {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    color: #0f172a;
    font-weight: 800;
}
.cmp-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 30px;
    letter-spacing: -1px;
}
.cmp-price span {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0;
}
.cmp-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    text-align: left;
}
.cmp-features li {
    padding: 12px 0;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.cmp-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: 800;
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Buttons */
.cmp-btn-solid, .cmp-btn-outline {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}
.cmp-btn-solid {
    background: #2563eb;
    color: white;
    border: none;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.5);
}
.cmp-btn-solid:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 12px 25px -6px rgba(37, 99, 235, 0.6);
}
.cmp-btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}
.cmp-btn-outline:hover {
    background: #eff6ff;
}

/* Timeline */
.cmp-tracking-timeline {
    margin-top: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}
.cmp-timeline-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-bottom: 35px;
}
.cmp-timeline-item:last-child {
    padding-bottom: 0;
}
.cmp-timeline-item::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: -8px;
    width: 2px;
    background: #e2e8f0;
}
.cmp-timeline-item:last-child::before {
    display: none;
}
.cmp-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #cbd5e1;
    margin-right: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.cmp-timeline-item.completed .cmp-dot {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.cmp-timeline-item.active .cmp-dot {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.cmp-content {
    flex: 1;
    color: #64748b;
    padding-top: 4px;
}
.cmp-timeline-item.completed .cmp-content,
.cmp-timeline-item.active .cmp-content {
    color: #334155;
}
.cmp-content strong {
    font-size: 1.15rem;
    color: #0f172a;
    display: block;
    margin-bottom: 6px;
}

/* Spare Parts */
.cmp-spare-parts .cmp-grid {
    padding: 0 50px 50px;
}
.cmp-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.cmp-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}
.cmp-product-img {
    color: #64748b;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    background: #f8fafc;
    border-radius: 50%;
    flex-shrink: 0;
}
.cmp-product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 20px 0 25px;
}
.cmp-info-box {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    color: #0f766e;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.6;
}

/* Modal */
.cmp-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cmp-modal-overlay.active {
    display: flex;
}
.cmp-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    padding: 40px 50px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@media (max-width: 600px) {
    .cmp-modal { padding: 30px 20px; }
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.cmp-modal-close {
    position: absolute !important;
    top: 20px !important; 
    right: 20px !important;
    left: auto !important;
    background: #f1f5f9 !important;
    border: none !important;
    width: 36px !important; 
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #64748b !important;
    transition: all 0.2s;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 99 !important;
}
.cmp-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.cmp-card.cmp-trigger-modal {
    cursor: pointer;
}

.cmp-file-upload {
    margin-bottom: 20px;
    text-align: left;
}
.cmp-file-upload label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}
.cmp-file-upload input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cmp-file-upload input[type="file"]:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}
