/* ─── عمومی ─────────────────────────────────────────── */
.tf-field {
    margin-bottom: 14px;
}
.tf-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}
.tf-field input,
.tf-field select,
.tf-field textarea,
.tf-modal-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
}
.tf-field input:focus,
.tf-field select:focus,
.tf-field textarea:focus {
    outline: none;
    border-color: #c0392b;
}
.tf-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s;
}
.tf-btn-primary {
    background: #c0392b;
    color: #fff;
}
.tf-btn-primary:hover {
    background: #a93226;
}
.tf-msg {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

/* ─── جدول قیمت ─────────────────────────────────────── */
.tf-steel-table {
    margin: 30px 0;
}
.tf-table-wrapper {
    overflow-x: auto;
}
.tf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: center;
}
.tf-table thead tr {
    background: #2c3e50;
    color: #fff;
}
.tf-table th {
    padding: 12px 10px;
    font-weight: 600;
    white-space: nowrap;
}
.tf-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background 0.15s;
}
.tf-table tbody tr:hover {
    background: #fafafa;
}
.tf-table td {
    padding: 11px 10px;
    white-space: nowrap;
}
.tf-price {
    font-weight: 700;
    color: #2c3e50;
}
.tf-nosan {
    font-weight: 600;
    font-size: 13px;
}
.tf-up      { color: #e74c3c; }
.tf-down    { color: #27ae60; }
.tf-neutral { color: #95a5a6; }
.tf-inquiry-btn {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: background 0.2s;
}
.tf-inquiry-btn:hover {
    background: #c0392b;
}

/* ─── ماشین حساب برشی ───────────────────────────────── */
.tf-cutting-wrap {
    max-width: 600px;
    margin: 30px auto;
}
.tf-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 25px;
}
.tf-tab-btn {
    padding: 10px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tf-tab-btn.active {
    color: #c0392b;
    border-bottom-color: #c0392b;
    font-weight: 700;
}
.tf-tab-content {
    display: none;
}
.tf-tab-content.active {
    display: block;
}
.tf-calc-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
}
.tf-calc-box h3 {
    margin-bottom: 20px;
    font-size: 17px;
    color: #2c3e50;
}
.tf-hint {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}
.tf-result-box {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}
.tf-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
    margin-bottom: 20px;
}
.tf-result-grid div {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 10px;
}
.tf-result-grid span {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.tf-result-grid strong {
    font-size: 16px;
    color: #2c3e50;
}
.tf-inquiry-form {
    border-top: 1px solid #eee;
    padding-top: 18px;
    margin-top: 5px;
}
.tf-inquiry-form h4 {
    margin-bottom: 15px;
    font-size: 15px;
}

/* ─── ریسپانسیو ─────────────────────────────────────── */
@media (max-width: 600px) {
    .tf-result-grid {
        grid-template-columns: 1fr;
    }
    .tf-table thead {
        display: none;
    }
    .tf-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
    }
    .tf-table td {
        display: flex;
        justify-content: space-between;
        padding: 6px 4px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        white-space: normal;
    }
    .tf-table td:last-child {
        border-bottom: none;
    }
    .tf-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
    }
}