/* ========== SECTIONS & LAYOUT ========== */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0a1317;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .icon {
    font-size: 24px;
}

/* ========== EDUCATION BLOCK ========== */
.info-box {
    background: #f0f4f8;
    border-left: 4px solid #0056b3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.info-item {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.info-item strong {
    color: #0a1317;
}

.detail-box {
    background: #e7f3ff;
    border: 2px solid #0056b3;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    color: #0a1317;
    line-height: 1.6;
}

/* ========== WIZARD PROGRESS ========== */
.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d5dee6;
    transition: background 0.25s ease, transform 0.25s ease;
}

.progress-dot.done {
    background: #7cc0ee;
}

.progress-dot.active {
    background: #0056b3;
    transform: scale(1.35);
}

/* ========== WIZARD STEPS ========== */
.wizard {
    max-width: 520px;
    margin: 0 auto;
}

.wizard-step {
    display: none;
    text-align: center;
}

.wizard-step.active {
    display: block;
    animation: wizardFadeIn 0.3s ease;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wizard-question {
    font-size: 22px;
    font-weight: 700;
    color: #0a1317;
    margin: 0 0 6px;
    line-height: 1.3;
}

.wizard-subtext {
    font-size: 14px;
    color: #667380;
    margin: 0 0 24px;
}

/* ========== PRESET BUTTONS ========== */
.preset-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.preset-btn {
    flex: 0 1 auto;
    min-width: 84px;
    padding: 12px 18px;
    border: 2px solid #cdd7df;
    border-radius: 999px;
    background: #fff;
    color: #1a3a52;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.preset-btn:hover {
    border-color: #0056b3;
    background: #f0f6fc;
}

.preset-btn:active {
    transform: scale(0.97);
}

.preset-btn.selected {
    border-color: #0056b3;
    background: #0056b3;
    color: #fff;
}

/* ========== CUSTOM INPUT ========== */
.custom-input-group {
    margin-bottom: 28px;
    text-align: left;
}

.custom-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #667380;
    margin-bottom: 6px;
    text-align: center;
}

.custom-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
    box-sizing: border-box;
    font-family: inherit;
}

.custom-input-group input:focus {
    outline: none;
    border: 2px solid #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.custom-input-group input.error {
    border: 2px solid #e41e3f;
}

.custom-input-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(228, 30, 63, 0.1);
}

/* ========== WIZARD NAV ========== */
.wizard-nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wizard-nav .btn-primary {
    flex: 1;
    width: auto;
}

.btn-secondary {
    background: #fff;
    color: #0056b3;
    padding: 12px 24px;
    border: 2px solid #cdd7df;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
    border-color: #0056b3;
    background: #f0f6fc;
}

.results-nav {
    margin-top: 24px;
    justify-content: center;
}

/* ========== FORM ========== */
.calculator-form {
    background: white;
    padding: 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #0a1317;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border: 2px solid #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group input.error {
    border: 2px solid #e41e3f;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(228, 30, 63, 0.1);
}

.help-text {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.error-message {
    display: none;
    font-size: 12px;
    color: #e41e3f;
    margin-top: 4px;
}

.error-message.show {
    display: block;
}

.btn-primary {
    background: #0056b3;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    background: #003d7a;
}

.btn-primary:disabled {
    background: #bcc0c4;
    cursor: not-allowed;
}

/* ========== RESULTS ========== */
.calculation-breakdown {
    background: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.calc-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calc-line:last-child {
    margin-bottom: 0;
}

.calc-line .label {
    font-weight: 600;
    color: #0a1317;
}

.calc-line .value {
    color: #0056b3;
    font-weight: 600;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #f39c12;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
}

.syringe-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

#syringe-svg {
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.explanation-box {
    background: #e7f3ff;
    border-left: 4px solid #0056b3;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #0a1317;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .content {
        padding: 20px;
    }

    .section {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 16px;
    }

    #syringe-svg {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 16px;
    }

    .section-title {
        font-size: 14px;
    }

    .info-item {
        font-size: 14px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        font-size: 13px;
        padding: 8px;
    }

    .btn-primary {
        padding: 10px 16px;
        font-size: 13px;
    }

    .wizard-question {
        font-size: 19px;
    }

    .preset-btn {
        flex: 1 1 40%;
        min-width: 0;
        padding: 12px 10px;
        font-size: 14px;
    }
}
