/*
https://modelsite.ir
*/

/* --- General Styles --- */
#customs-calculator-wrapper {
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin-bottom: 30px;
    background-color: #fdfdfd;
    border-radius: 10px;
    font-family: 'IRANSans', 'Tahoma', sans-serif; /* اطمینان از وجود فونت */
    direction: rtl;
    text-align: right;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
#customs-calculator-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.9em;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

/* --- Form Groups --- */
.icc-form-group {
    margin-bottom: 20px;
}
.icc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 1.1em;
}
.icc-form-group input[type="text"],
.icc-form-group input[type="number"],
.icc-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
}
.icc-form-group input[type="text"]:focus,
.icc-form-group input[type="number"]:focus,
.icc-form-group select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}
.icc-form-group input[type="number"][readonly] {
    background-color: #f0f0f0;
    color: #777;
    cursor: default;
}

/* --- راهنمای دائمی (باکس متنی زیر فیلد) --- */
.icc-help-text {
    display: block;
    margin-top: 5px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    line-height: 1.5;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* --- Conditional Fields (FOB/CIF) --- */
.icc-conditional-field {
    display: none; /* مخفی به صورت پیش فرض */
}
.icc-conditional-field.visible {
    display: block; /* نمایش داده می شود وقتی فعال است */
}

/* --- Button --- */
#calculate-btn {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: #0073aa;
    color: white;
    border: none;    border-radius: 5px;
    font-size: 1.3em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
}
#calculate-btn:hover {
    background-color: #005177;
}

/* --- Results Section --- */
#calculator-results {
    margin-top: 25px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: none; /* مخفی به صورت پیش فرض */
}
#calculator-results h3 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.5em;
}
#calculator-results ul {
    list-style: none;
    padding: 0;
}
#calculator-results li {
    margin-bottom: 10px;
    color: #444;
    font-size: 1.1em;
    padding-bottom: 5px;
    border-bottom: 1px dotted #eee;
    display: flex;
    justify-content: space-between;
}
#calculator-results li:last-child {
    border-bottom: none;
    font-weight: bold;    color: #0073aa;
    font-size: 1.3em;
    margin-top: 15px;
}
#calculator-results li span {
    font-weight: normal;
    color: #000;
    text-align: left;
}
#calculator-results p small {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #777;
    font-size: 0.85em;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    #customs-calculator-wrapper {
        padding: 15px;
    }
    #customs-calculator-wrapper h2 {
        font-size: 1.6em;
    }
    .icc-form-group {
        margin-bottom: 15px;
    }
    .icc-form-group label {
        font-size: 1.05em;
    }
    .icc-help-text {
        max-width: 100%;
    }
    #calculator-results li {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }
    #calculator-results li span {
        margin-top: 5px;
        text-align: right;
    }
    #calculator-results li:last-child {
         font-size: 1.2em;
    }
}