/* Info Modal Styles */

.info-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.info-modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Backdrop - Modern Glass Effect */
.info-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Modal Content Container - Glass Morphism */
.info-modal-content {
    position: relative;
    width: calc(100% - 80px);
    max-width: 1360px;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-modal.active .info-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Dark mode */
[data-theme="dark"] .info-modal-content {
    background: rgba(30, 30, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .info-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0;
}

.info-modal-close {
    background: rgba(102, 102, 255, 0.1);
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-modal-close svg {
    width: 24px;
    height: 24px;
    color: #6666FF;
}

.info-modal-close:hover {
    background: rgba(102, 102, 255, 0.2);
    transform: scale(1.05);
}

[data-theme="dark"] .info-modal-close {
    background: rgba(102, 102, 255, 0.15);
}

/* Body */
.info-modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    flex: 1;
    padding: 40px;
}

/* Scrollbar styling */
.info-modal-body::-webkit-scrollbar {
    width: 6px;
}

.info-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.info-modal-body::-webkit-scrollbar-thumb {
    background: rgba(104, 110, 238, 0.2);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.info-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(104, 110, 238, 0.4);
}

/* Sections */
.info-modal-section {
    margin-bottom: 32px;
}

.info-modal-section:last-child {
    margin-bottom: 0;
}

.info-modal-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.info-modal-section p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* List */
.info-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.info-modal-list li:last-child {
    margin-bottom: 0;
}

.info-modal-list li svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: #6666FF;
    margin-top: 2px;
}

.info-modal-list li span {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Calculator Button */
.info-modal-calc-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6666FF 0%, #4541F1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 102, 255, 0.3);
    text-decoration: none;
}

.info-modal-calc-button svg {
    width: 20px;
    height: 20px;
}

.info-modal-calc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 255, 0.4);
}

/* Contact Buttons */
.info-modal-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.info-modal-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(102, 102, 255, 0.1);
    color: #6666FF;
    border: 1px solid rgba(102, 102, 255, 0.2);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.info-modal-contact-button svg {
    width: 18px;
    height: 18px;
}

.info-modal-contact-button:hover {
    background: rgba(102, 102, 255, 0.2);
    border-color: rgba(102, 102, 255, 0.3);
    transform: translateY(-1px);
}

[data-theme="dark"] .info-modal-contact-button {
    background: rgba(102, 102, 255, 0.15);
    border-color: rgba(102, 102, 255, 0.3);
    color: #8888FF;
}

[data-theme="dark"] .info-modal-contact-button:hover {
    background: rgba(102, 102, 255, 0.25);
}

/* Responsive */
@media (max-width: 968px) {
    .info-modal-content {
        width: calc(100% - 80px);
    }

    .info-modal-header {
        padding: 24px 30px;
    }

    .info-modal-title {
        font-size: 24px;
    }

    .info-modal-body {
        padding: 30px;
    }

    .info-modal-section h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .info-modal-content {
        width: calc(100% - 32px);
        max-height: 95vh;
        border-radius: 20px;
    }

    .info-modal-header {
        padding: 20px 24px;
    }

    .info-modal-title {
        font-size: 20px;
    }

    .info-modal-close {
        width: 40px;
        height: 40px;
    }

    .info-modal-close svg {
        width: 20px;
        height: 20px;
    }

    .info-modal-body {
        padding: 24px;
    }

    .info-modal-contact {
        flex-direction: column;
    }

    .info-modal-contact-button {
        width: 100%;
        justify-content: center;
    }

    .info-modal-calc-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .info-modal-content {
        width: calc(100% - 24px);
        border-radius: 16px;
    }

    .info-modal-header {
        padding: 18px 20px;
    }

    .info-modal-title {
        font-size: 18px;
    }

    .info-modal-body {
        padding: 20px;
    }

    .info-modal-section h3 {
        font-size: 16px;
    }
}
