/* Modal Base Styles */
.try-out-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--try-out-z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--try-out-spacing-lg);
    box-sizing: border-box;
}

.try-out-modal.show {
    display: flex;
}

.try-out-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.try-out-modal .modal-content {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    background-color: var(--try-out-bg);
    border-radius: var(--try-out-border-radius-lg);
    box-shadow: 0 8px 32px var(--try-out-shadow-strong);
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.try-out-modal .modal-header {
    padding: var(--try-out-spacing-lg) var(--try-out-spacing-xl);
    background: linear-gradient(135deg, var(--try-out-primary), #1565c0);
    color: white;
    display: flex;
    align-items: center;
    gap: var(--try-out-spacing);
    flex-shrink: 0;
}

.try-out-modal .modal-header span {
    font-size: var(--try-out-font-lg);
}

.try-out-modal .modal-header h3 {
    margin: 0;
    font-size: var(--try-out-font-lg);
    font-weight: 600;
    flex-grow: 1;
}

.try-out-modal .modal-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--try-out-spacing-sm);
    font-size: var(--try-out-font-lg);
    line-height: 1;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--try-out-transition);
}

.try-out-modal .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal Body */
.try-out-modal .modal-body {
    padding: var(--try-out-spacing-xl);
    overflow-y: auto;
    flex: 1;
}

/* Mobile Modal Adjustments */
@media screen and (max-width: 768px) {
    .try-out-modal {
        padding: var(--try-out-spacing-sm);
    }
    
    .try-out-modal .modal-content {
        max-width: none;
        max-height: 90vh;
    }
    
    .try-out-modal .modal-header {
        padding: var(--try-out-spacing-lg);
    }
    
    .try-out-modal .modal-body {
        padding: var(--try-out-spacing-lg);
    }
}
