/* ===================================
   MODAL STYLES - Black, Gray & Subtle Gold
   =================================== */

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container - Black & Gray Theme */
.modal {
    background: linear-gradient(145deg, #0a0a0a, #151515);
    border: 1px solid rgba(100, 100, 100, 0.2);
    border-radius: 20px;
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
    position: relative;
    padding: 40px;
    border-bottom: 1px solid rgba(80, 80, 80, 0.15);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(100, 100, 100, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(80, 80, 80, 0.5);
    transform: rotate(90deg);
    border-color: rgba(180, 160, 100, 0.4);
}

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 1px solid rgba(212, 175, 55, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.modal-subtitle {
    font-size: 16px;
    color: rgba(220, 220, 220, 0.7);
    line-height: 1.6;
}

/* Modal Body */
.modal-body {
    padding: 40px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.feature-item {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(80, 80, 80, 0.15);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(40, 40, 40, 0.6);
    border-color: rgba(180, 160, 100, 0.2);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.feature-title {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 6px;
}

.feature-description {
    font-size: 13px;
    color: rgba(160, 160, 160, 0.7);
    line-height: 1.5;
}

/* Process Section */
.process-section {
    margin-bottom: 30px;
}

.process-title {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.process-title::before {
    content: '';
    width: 3px;
    height: 22px;
    background: rgba(180, 160, 100, 0.6);
    border-radius: 2px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(25, 25, 25, 0.5);
    border: 1px solid rgba(70, 70, 70, 0.15);
    border-radius: 12px;
    transition: all 0.3s;
}

.process-step:hover {
    background: rgba(35, 35, 35, 0.6);
    border-color: rgba(180, 160, 100, 0.15);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #000;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.step-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 12px;
    color: rgba(160, 160, 160, 0.7);
    line-height: 1.4;
}

/* CTA Section */
.modal-cta {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(80, 80, 80, 0.15);
}

.modal-cta p {
    font-size: 15px;
    color: rgba(180, 180, 180, 0.8);
    margin-bottom: 16px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-modal-primary {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    color: rgba(180, 160, 100, 0.9);
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(180, 160, 100, 0.3);
    cursor: pointer;
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #454545, #353535);
    border-color: rgba(180, 160, 100, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-modal-secondary {
    background: rgba(40, 40, 40, 0.5);
    color: #c0c0c0;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(80, 80, 80, 0.2);
    cursor: pointer;
}

.btn-modal-secondary:hover {
    background: rgba(50, 50, 50, 0.6);
    border-color: rgba(180, 160, 100, 0.3);
}

/* Service Card Clickable Style */
.service-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(180, 160, 100, 0.05),
        transparent
    );
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(180, 160, 100, 0.25);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(180, 160, 100, 0.05);
}

/* Scrollbar Styling */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.3);
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(80, 80, 80, 0.5);
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 100, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .modal {
        margin: 10px;
        max-height: calc(100vh - 40px);
    }
    
    .modal-header,
    .modal-body {
        padding: 24px;
    }
    
    .modal-icon {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-modal-primary,
    .btn-modal-secondary {
        width: 100%;
    }
}
