/* Файл: /wp-content/themes/ваша-тема/css/otbasy_calc_style.css */

:root {
    --primary-color: #0088CC; /* Фирменный синий Zanimaem.kz */
    --secondary-color: #45B84A; /* Фирменный зеленый Zanimaem.kz */
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --bg-light: #f7fafc;
    --white: #ffffff;
}

.otbasy-calculator-container {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    box-sizing: border-box;
    max-width: 100%;
    margin: 2rem auto;
}

.otbasy-calculator-container *, 
.otbasy-calculator-container *::before, 
.otbasy-calculator-container *::after {
    box-sizing: inherit;
}

.otbasy-calculator-container .calc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.otbasy-calculator-container .calc-header h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.otbasy-calculator-container .calc-header p {
    color: var(--text-light);
}

.otbasy-calculator-container .calc-main-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.otbasy-calculator-container .card {
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.otbasy-calculator-container .inputs-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.otbasy-calculator-container .input-group label {
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
}

.otbasy-calculator-container .label-with-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.otbasy-calculator-container .input-field-small {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-align: right;
    width: 120px;
}

.otbasy-calculator-container .select-field {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--white);
}

.otbasy-calculator-container .program-description {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.otbasy-calculator-container .slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin-top: 0.5rem;
}

.otbasy-calculator-container .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 4px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.otbasy-calculator-container .slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 4px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.otbasy-calculator-container .slider-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.otbasy-calculator-container .radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.otbasy-calculator-container .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
    flex-grow: 1;
    justify-content: center;
}

.otbasy-calculator-container .radio-label.selected {
    border-color: var(--secondary-color);
    background-color: rgba(69, 184, 74, 0.1);
    font-weight: 600;
}

.otbasy-calculator-container .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.otbasy-calculator-container .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.otbasy-calculator-container .result-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.otbasy-calculator-container .result-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.otbasy-calculator-container .schedule-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.otbasy-calculator-container .table-container {
    max-height: 450px;
    overflow-y: auto;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
}

.otbasy-calculator-container table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.otbasy-calculator-container thead {
    background-color: var(--bg-light);
    position: sticky;
    top: 0;
}

.otbasy-calculator-container th, 
.otbasy-calculator-container td {
    padding: 0.75rem 1rem;
    text-align: center;
}

.otbasy-calculator-container tbody tr:nth-child(even) {
    background-color: var(--bg-light);
}

.otbasy-calculator-container .hidden {
    display: none;
}
