.container-salary {
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(133deg, #00123c, var(--dark-blue), #002d48);
    padding: 25px 0;
}

/* 🔹 فرم در دو ستون و واکنش‌گرا */
.salary-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    position: relative;
    z-index: 2;
}

/* زیر 768px — تبدیل به تک‌ستونه */
@media (max-width: 768px) {
    .salary-form {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.salary-wrapper {
    width: 90%;
    max-width: 1600px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 40, 100, 0.3);
    margin: 0 auto;
    padding: 40px 50px;
    background: linear-gradient(135deg, #00437e, #002b49, #002e4d);
    position: relative;
    overflow: hidden;
}

#id_marry, #id_turn_work {
    display: flex;
    gap: 20px;
}


.salary-wrapper,
.result-box {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
}
.title-form {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}
.input-group h3{
    width: 100%;
    padding: 5px 14px;
    font-size: 1.5rem;
    border-radius: 10px;
    border: none;
    color: #c4c4c4;
    background: rgba(255, 255, 255, 0.1);
}
.total{
    background: rgba(0, 0, 0, 0.47) !important;
}
#total{
    color: #dcdcdc;
    font-size: 1.7rem;
    font-weight: bold;
}
#final_total{
    color: #ffd600;
    font-size: 1.9rem;
    font-weight: bold;
}
.form-section {
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.form-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.section-title {
    color: #9ec5fe;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}
.final_total{
    background: rgba(0, 128, 0, 0.49) !important;
}
.input-group {
    margin-bottom: 18px;
}

.toman-label {
  font-size: 0.9rem;
  color: #00e5ff;
  margin-top: 4px;
  font-weight: 500;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #e0e8ff;
    margin-bottom: 6px;
}

input, select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

input:focus, select:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px #007bff88;
}

/* 🔹 رادیو باتن‌ها سطری و فاصله‌دار */
.radio-field {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 25px;
    margin-top: 8px;
    color: #d4e1ff;
}
.radio-field label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

/* ✅ دکمه ارسال */
.submit-btn {
    width: 100%;
    background: linear-gradient(90deg, #007bff, #00b4d8);
    border: none;
    padding: 15px;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.submit-btn:hover {
    background: linear-gradient(90deg, #00b4d8, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* نتیجه‌ها */
.result-box {
    grid-column: 1 / -1;
    background: linear-gradient(135deg , #00003b, #003270, #001e3d);
    color: #fff;
    border-radius: 16px;
    text-align: center;
    margin-top: 25px;
    box-shadow: 0 0 25px rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease-in-out;
}
.add{
    color: #56ff56;
}
.minus{
    color: #ff7d54;
}

.result-box h3 {
    color: #dcdcdc;
    margin-bottom: 15px;
}


/* سایر جزئیات */
select:not([multiple]) option {
    background: var(--dark-blue);
    font-size: 19px;
}
.input-group:has(#id_shift) {
    display: none;
}

/* 🔹 ریسپانسیو و خوانا در موبایل */
@media (max-width: 1020px) {
    .salary-wrapper {
        width: 95%;
        padding: 20px;
    }
    .result-box li {
        font-size: 15px;
    }
    .input-group label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 15px;
    }
    input, select {
        font-size: 14px;
        padding: 9px 12px;
    }
    .radio-field {
        flex-direction: column;
        gap: 8px;
    }
}
