/* 
 * Emily Schaumann Piano Studio 
 * Studio Information Modal Styles
 */

/* Policy brace styling */
.policy-brace {
    color: #4A7AAB; /* Site's primary blue color */
    font-size: 1.3em;
    font-weight: bold;
    margin-right: 5px;
}

.studio-info-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
}

.studio-info-content {
    background-color: #fff;
    margin: 5vh auto;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    position: relative;
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.studio-info-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Close button now uses the standardized .close-btn class from modal.css */

.studio-info-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.studio-info-intro {
    text-align: center;
    margin-bottom: 25px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.studio-info-intro h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.studio-info-intro p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.studio-info-header h2 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.studio-info-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.studio-info-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.studio-info-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.studio-info-tab:hover {
    color: var(--primary-light);
}

.studio-info-section {
    display: none;
}

.studio-info-section.active {
    display: block;
}

.studio-info-columns {
    display: flex;
    gap: 30px;
}

.studio-info-column {
    flex: 1;
}

.studio-info-content h3 {
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.studio-info-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.tuition-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9rem;
}

.tuition-table th, 
.tuition-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    line-height: 1.3;
}

.tuition-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.85rem;
    white-space: nowrap;
}

.tuition-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tuition-table tr:hover {
    background-color: #f1f7fd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .studio-info-columns {
        flex-direction: column;
    }
    
    .studio-info-content {
        padding: 20px;
        margin: 0;
        width: 100%;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    /* Card-style layout for tuition table on mobile */
    .tuition-table {
        font-size: 0.85rem;
        display: block;
        width: 100%;
        border: none;
        background: transparent;
    }
    
    .tuition-table thead {
        display: none; /* Hide table headers */
    }
    
    .tuition-table tbody {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .tuition-table tr {
        display: flex;
        flex-wrap: wrap;
        background-color: #f9f9f9;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin: 0;
    }
    
    .tuition-table td {
        flex: 1 0 50%;
        text-align: left;
        padding: 6px 8px;
        border: none;
        position: relative;
        min-width: 120px;
        display: flex;
        flex-direction: column;
    }
    
    .tuition-table td:first-child {
        flex: 1 0 100%;
        font-weight: 600;
        color: var(--primary-dark);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        margin-bottom: 5px;
        padding-bottom: 8px;
    }
    
    /* Add labels for each cell */
    .tuition-table td:not(:first-child):before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--primary-dark);
        opacity: 0.8;
        margin-bottom: 2px;
    }
    
    .studio-info-tab {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Improve tabs on mobile */
    .studio-info-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}
