/*
 * Tandorost Public Styles
 */
/* ===============================================
 * FONT & BASE STYLES
 * =============================================== */
@font-face {
    font-family: 'Estedad';
    src: url('../fonts/Estedad[KSHD,wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
.tandorost-form-container,
.tandorost-form-container input,
.tandorost-form-container button,
.tandorost-form-container select,
.tandorost-form-container textarea {
    font-family: 'Estedad', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.tandorost-form-container * {
    box-sizing: border-box;
}
.tandorost-form-container {
    --td-primary: #28a745;
    --td-primary-hover: #23913d;
    --td-text-light: #ffffff;
}
/* ===============================================
 * MAIN FORM STYLES
 * =============================================== */
.tandorost-form-container .tandorost-box {
    background-color: var(--td-form-bg, #fff);
    border-radius: var(--td-form-border-radius, 12px);
    max-width: var(--td-form-max-width, 600px);
    margin: 30px auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    padding: 30px 40px;
    text-align: center;
    width: 100%;
}
.tandorost-form-container .tandorost-box-title {
    color: var(--td-form-title-color, #333);
    font-weight: 700;
    font-size: var(--td-form-title-size, 22px);
    margin-bottom: 20px;
}
/* --- NEW Flexbox Layout --- */
.tandorost-form-container .tandorost-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.tandorost-form-container .tandorost-input-group {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
    flex: 1 1 calc(50% - 10px);
    min-width: calc(50% - 10px);
}
.tandorost-form-container .tandorost-input-group.tandorost-full-width {
    flex-basis: 100%;
}
.tandorost-form-container .tandorost-input-group label {
    color: var(--td-form-label-color, #333);
    width: 100%;
    font-size: var(--td-form-label-size, 16px);
    margin-bottom: 8px;
}
.tandorost-form-container .tandorost-input-group label small {
    color: #888;
    font-weight: 400;
}
.tandorost-form-container .tandorost-input-group input,
.tandorost-form-container .tandorost-input-group select,
.tandorost-form-container .tandorost-input-group textarea {
    width: 100%;
    padding: var(--td-form-input-padding, 12px);
    border: 1px solid #ddd;
    border-radius: var(--td-form-input-radius, 8px);
    font-size: var(--td-form-input-size, 16px);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tandorost-form-container .tandorost-input-group textarea {
    resize: vertical;
}
.tandorost-form-container .tandorost-input-group input:focus,
.tandorost-form-container .tandorost-input-group select:focus,
.tandorost-form-container .tandorost-input-group textarea:focus {
    border-color: var(--td-primary);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}
.tandorost-form-container .tandorost-gender-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.tandorost-form-container .tandorost-gender-button {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.2s ease;
}
.tandorost-form-container .tandorost-gender-button:hover {
    background-color: #f7f7f7;
    border-color: #ccc;
}
.tandorost-form-container .tandorost-gender-button.selected-male {
    background-color: var(--td-primary);
    color: var(--td-text-light);
    border-color: var(--td-primary);
}
.tandorost-form-container .tandorost-gender-button.selected-female {
    background-color: #f77fbe;
    color: #fff;
    border-color: #f77fbe;
}
.tandorost-form-container input::-webkit-outer-spin-button,
.tandorost-form-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.tandorost-form-container input[type=number] {
    -moz-appearance: textfield;
}
/* ===============================================
 * BUTTON STYLES
 * =============================================== */
.tandorost-form-container .tandorost-calculate-btn {
    background-color: var(--td-primary);
    color: var(--td-text-light);
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.tandorost-form-container .tandorost-calculate-btn:hover {
    background-color: var(--td-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}
.tandorost-form-container .tandorost-consultation-submit-btn,
.tandorost-form-container .tandorost-results-consultation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background-color: var(--td-primary);
    color: var(--td-text-light);
    box-shadow: 0 5px 20px -5px rgba(40, 167, 69, 0.5);
}
.tandorost-form-container .tandorost-consultation-submit-btn:hover,
.tandorost-form-container .tandorost-results-consultation-btn:hover {
    background-color: var(--td-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px -5px rgba(40, 167, 69, 0.6);
}
/* ===============================================
 * MODAL STYLES
 * =============================================== */
.tandorost-form-container .tandorost-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center; align-items: center; padding: 20px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.tandorost-form-container .tandorost-modal.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.tandorost-form-container .tandorost-modal-content {
    border-radius: var(--td-modal-border-radius, 16px);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.tandorost-form-container .tandorost-results-modal .tandorost-modal-content {
    background: var(--td-results-bg, #f8fafc);
}
.tandorost-form-container .tandorost-consultation-modal .tandorost-modal-content {
    background: var(--td-consult-bg, #f8fafc);
}
.tandorost-form-container .tandorost-modal.visible .tandorost-modal-content {
    transform: scale(1);
}
.tandorost-form-container .tandorost-modal-close {
    position: absolute; top: 15px; left: 15px;
    z-index: 10; background: #e2e8f0; border: none;
    color: #64748b; width: 32px; height: 32px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; line-height: 1; cursor: pointer; transition: all 0.2s ease;
}
.tandorost-form-container .tandorost-modal-close:hover {
    background: #cbd5e1; color: #1e293b; transform: rotate(90deg);
}
.tandorost-form-container .tandorost-modal-close:active {
    background: #e2e8f0 !important;
}
.tandorost-form-container .tandorost-modal-body {
    padding: 25px;
    overflow-y: auto;
}
.tandorost-form-container .tandorost-modal-body h4.tandorost-modal-title {
    text-align: center;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 25px;
}
.tandorost-form-container .tandorost-results-modal .tandorost-modal-title {
    color: var(--td-results-title-color, #1e293b);
    font-size: var(--td-results-title-size, 22px);
}
.tandorost-form-container .tandorost-consultation-modal .tandorost-modal-title {
    color: var(--td-consult-title-color, #1e293b);
    font-size: var(--td-consult-title-size, 22px);
}
/* --- Scrollbar --- */
.tandorost-form-container .tandorost-modal-body::-webkit-scrollbar { width: 8px; }
.tandorost-form-container .tandorost-modal-body::-webkit-scrollbar-track { background: #eef2f7; border-radius: 10px; }
.tandorost-form-container .tandorost-modal-body::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 10px; border: 2px solid #eef2f7; }
.tandorost-form-container .tandorost-modal-body::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }
/* --- Results Styles --- */
.tandorost-form-container .tandorost-result-header { text-align: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
.tandorost-form-container .tandorost-result-title { font-weight: 600; color: var(--td-results-title-color, #334155); font-size: var(--td-results-title-size, 20px); margin: 0 0 10px 0; }
.tandorost-form-container .tandorost-result-value { font-weight: 800; line-height: 1; color: var(--td-primary); font-size: var(--td-results-value-size, 48px); }
.tandorost-form-container .tandorost-result-unit { font-size: 14px; color: #64748b; font-weight: 500; }
.tandorost-form-container .tandorost-result-category { text-align: center; margin: 25px 0; padding: 15px; border-radius: 12px; }
.tandorost-form-container .tandorost-result-category strong { display: block; margin-bottom: 5px; font-size: 16px; }
.tandorost-form-container .tandorost-result-category p { margin: 0; font-size: 14px; opacity: 0.9; }
.tandorost-form-container .tandorost-result-category.underweight { background-color: #eff6ff; color: #2563eb; }
.tandorost-form-container .tandorost-result-category.normal { background-color: #f0fdf4; color: #15803d; }
.tandorost-form-container .tandorost-result-category.overweight { background-color: #fffbeb; color: #b45309; }
.tandorost-form-container .tandorost-result-category.obese { background-color: #fef2f2; color: #b91c1c; }
.tandorost-form-container .tandorost-consultation-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid #eef2f7; }
.tandorost-form-container .tandorost-detail-card { background: #ffffff; padding: 20px; border-radius: 12px; border: 1px solid #eef2f7; margin-top: 15px;}
.tandorost-form-container .tandorost-detail-card h4 { margin: 0 0 15px; color: #1e293b; font-size: 16px; font-weight: 600; }
.tandorost-form-container .tandorost-detail-list { list-style: none; padding: 0; margin: 0; }
.tandorost-form-container .tandorost-detail-list li { padding: 12px 0; border-bottom: 1px solid #eef2f7; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.tandorost-form-container .tandorost-detail-list li:last-child { border-bottom: none; }
.tandorost-form-container .tandorost-detail-label { color: #475569; }
.tandorost-form-container .tandorost-detail-value { color: #1e293b; font-weight: 600; }
/* ===============================================
 * NOTIFICATION MODAL STYLES (NEW)
 * =============================================== */
.tandorost-form-container .tandorost-notification-modal .tandorost-modal-content {
    max-width: 400px;
    background: #fff;
}
.tandorost-form-container .tandorost-notification-modal .tandorost-modal-body {
    text-align: center;
    padding: 40px 30px 30px 30px;
}
.tandorost-form-container .tandorost-notification-icon {
    margin-bottom: 20px;
}
.tandorost-form-container .tandorost-notification-icon-success {
    color: #27ae60;
}
.tandorost-form-container .tandorost-notification-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
}
.tandorost-form-container .tandorost-notification-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 25px 0;
}
.tandorost-form-container .tandorost-notification-close-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--td-primary);
    color: var(--td-text-light);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.tandorost-form-container .tandorost-notification-close-btn:hover {
    background-color: var(--td-primary-hover);
}
/* --- Notification Error Styles --- */
.tandorost-form-container .tandorost-notification-icon-error {
    color: #e74c3c;
}
.tandorost-form-container .tandorost-notification-close-btn.error {
    background-color: #e74c3c;
}
.tandorost-form-container .tandorost-notification-close-btn.error:hover {
    background-color: #c0392b;
}
/* --- Responsive --- */
@media (max-width: 600px) {
    .tandorost-form-container .tandorost-box {
        padding: 20px;
    }
}