* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: YekanBakh;
    src: url("../fonts/YekanBakhFaNum-Regular.woff") format("woff");
    src: url("../fonts/YekanBakhFaNum-Regular.woff2") format("woff2");
}

@font-face {
    font-family: YekanBakhBold;
    src: url("../fonts/YekanBakhFaNum-Bold.woff") format("woff");
    src: url("../fonts/YekanBakhFaNum-Bold.woff2") format("woff2");
}

button,
input,
body * {
    font-family: 'YekanBakh';
}

body {
    font-family: 'YekanBakh';
    /*     background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px; */
}

.elementor-widget-html .container .step-1,
.elementor-widget-html .container .step-2,
.elementor-widget-html .container .step-4 {
    width: 100%;
    max-width: 500px;
    min-width: 400px;
    margin: 0 auto;
}

.elementor-widget-html .container .step-3 {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}


.step {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition:
        max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.45s ease,
        transform 0.45s ease;
}

.form-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 1300px;
    width: 100%;
    min-width: 992px;
}

.step.active {
    max-height: 3000px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.step.leaving {
    opacity: 0;
    transform: translateY(-12px);
}

.form-header {
    background: #06387a;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-btn:hover {
    opacity: 0.8;
}

.form-body {
    padding: 30px 20px;
}

.input-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-align: right;
}

.form-input {
    width: 100% !important;
    border: 1px solid #e0e0e0 !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    text-align: right;
    transition: all 0.3s !important;
    margin-bottom: 7px;
    background-color: #f2f2f2 !important;
}

.form-input:focus {
    outline: none;
    border-color: #06387a;
}

.form-input::placeholder {
    color: #ccc;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #06387a;
    color: #fff !important;
}

.btn-primary:hover {
    background: #042d63;
}


.info-section {
    margin-bottom: 20px;
}

.info-text {
    display: block;
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-bottom: 12px;
}

.resend-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.resend-text {
    font-size: 14px;
    color: #666;
}

.btn-link {
    background: none;
    border: none;
    color: #D12C28;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* مرحله 3 - فرم بزرگ */
.form-body-large {
    padding: 30px 20px;
    max-height: none;
    overflow-y: visible;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header:first-child {
    margin-top: 0;
}

.section-icon {
    font-size: 20px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-col {
    flex: 1;
    min-width: 200px;
}

.form-col-half {
    flex: 1;
    min-width: 300px;
}

.form-col-3 {
    flex: 1;
    min-width: 250px;
}

.form-col-4 {
    flex: 1;
    min-width: 200px;
}

.form-col-button {
    flex: 0 0 auto;
    min-width: 200px;
}

.form-col-full {
    flex: 1 1 100%;
}

.btn-review {
    background: #222;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    height: 44px;
    margin-top: 22px;
}

.btn-review:hover {
    background: #000;
}

.product-table {
    margin: 20px 0;
    overflow-x: auto;
    border: 1px solid #333;
    border-radius: 4px;
}

.product-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-color: #333;
}

.product-table thead {
    background: #1a1a1a;
    color: #fff;
}

.product-table th {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border-left: 1px solid #333;
    min-width: 90px;
    color:#fff;
}

.d-none {
    display: none !important
}


.product-table th:last-child {
    border-left: none;
}

.product-table td {
    padding: 12px;
    text-align: center;
    font-size: 13px;
    border: 1px solid #333;
}

.product-table tbody tr:last-child td {
    border-bottom: none;
}

.product-table tbody tr:last-child td:first-child {
    border-radius: 0 0 8px 0;
}

.product-table tbody tr:last-child td:last-child {
    border-radius: 0 0 0 8px;
}

.empty-row td {
    padding: 40px;
    color: #999;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s;
    background-color: #f2f2f2;
}

.form-textarea:focus {
    outline: none;
    border-color: #3f51b5;
}

.helper-text {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.char-count {
    color: #666;
}

.required {
    color: #D12C28;
}

select.form-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-color: #f2f2f2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 35px;
    height: 44px;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 40px;
    justify-content: flex-start;
}

.btn-cancel {
    background: #ec3325;
    color: #fff!important;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    width: 110px;
    text-align: center;
}

.btn-cancel:hover {
    background: #D12C28;
}

.btn-remove {
    background: #ec3325;
    font-size: 13px;
    padding: 4px 8px;
    display: inline-block;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 18px;
}

.btn-remove:hover {
    background: #D12C28;
}

table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.mt-3 {
    margin-top: 12px;
}

.mb-3 {
    margin-bottom: 12px;
}

.text-center {
    text-align: center !important;
}

.d-block {
    display: block;
}

.d-table {
    display: table;
}

.mx-auto {
    margin-right: auto;
    margin-left: auto;
}

.my-2 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.my-3 {
    margin-top: 12px;
    margin-bottom: 12px;
}

.company-image {
    max-width: 140px;
}

.pr-1 {
    padding-right: 4px;
}

.item-info {
    margin: 4px 0;
}

.item-info .title {
    font-weight: 600;
}

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

.d-flex {
    display: flex;
}

.box-file {
    gap: 15px;
}

.r-box-file {
    width: 30%;
}

.l-box-file {
    width: 70%;
}

.mr-1 {
    margin-right: 4px;
}

.w-100px {
    width: 100px;
}

.mr-auto {
    margin-right: auto;
}

.section-header .btn {
    padding: 8px 3px;
    font-size: 13px;
}

.items-center {
    align-items: center;
}

.form-body p,
.points li {
    font-size: 14px;
    text-align: justify;
}

.red-text {
    color: #ec3325;
    border-bottom: 1px solid #ec3325;
    padding-bottom: 5px;
    font-size: 15px;
    font-weight: bold;
    min-width: 188px;
}

.points {
    padding-right: 16px;
}

.answer-checkbox .item,
.answer-radio .item {
    display: inline-block;
    margin-left: .5%;
    min-width: 200px;
}

.sp-checkbox {
    position: relative;
    height: 30px;
    overflow: hidden;
}

.sp-checkbox input {
    position: absolute;
    width: 100%;
    top: 0;
    right: 0;
    opacity: 0;
    z-index: 2;
    height: 30px;
}

.sp-checkbox span {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 2px;
    top: 2px;
    right: 0;
}

.sp-checkbox label {
    padding-right: 26px;
    font-size: 14px;
}

.sp-checkbox input:checked~span {
    border: 1px solid #f44336;
}

.sp-checkbox input:checked~span:before {
    content: 'x';
    font-weight: 900;
    font-size: 13px;
    color: #f44336;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.answer-radio .sp-checkbox span {
    border-radius: 100%;
}

.max-w-200 {
    max-width: 200px;
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-left: 45px;
}

.generate-password {
    position: absolute;
    left: 5px;
    top: 47%;
    transform: translateY(-50%);
    height: 32px;
    width: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    font-size: 16px;
}

.container-box {
    max-width: 1000px;
}

.pb-7 {
    padding-bottom: 7px;
}

.w-description {
    min-width: 320px;
}

.image-uploader {
    position: relative;
    width: 100%;
}

.image-uploader input[type=file] {
    display: none;
    /* حذف Choose file */
}

.image-preview {
    position: relative;
    width: 100%;
    height: 140px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background: #fafafa;
    transition: .3s;
}

.image-preview:hover {
    border-color: #999;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview::before {
    content: "✏️";
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ffffffcc;
    backdrop-filter: blur(3px);
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: .3s;
}

.btn-remove-image {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #ff4d4f;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .3s;
    padding: 0;
    min-height: unset;
}

.btn-remove-image::after {
    content: "✕";
    position: relative;
    top: 1px;
}

.image-uploader:hover .image-preview::before,
.image-uploader:hover .btn-remove-image {
    opacity: 1;
}

.inbox-sec {
    background: #fafafa;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #eee;
    margin-bottom: 12px;
}

.mt-35 {
    margin-top: 35px;
}

.toggle-switch {
    position: relative;
    width: 55px;
    height: 28px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #4CAF50;
    /* سبز روشن */
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(27px);
}

.pl-16 {
    padding-left: 16px;
}

.mt-16 {
    margin-top: 16px;
}

p.status-tracking {
    font-size: 20px;
    margin: 20px 0 8px;
    text-align: center;
}

.w-set {
    width: auto;
    min-width: 120px;
}

.select2-container {
    width: 100%;
    border: 1px solid #e0e0e0;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 14px;
    text-align: right;
    background-color: #f2f2f2;
}

.border-red,
.select2-container.border-red {
    border-color: #ec3325;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    min-width: 300px;
    text-align: center;
}

.modal-content p {
    margin-bottom: 18px;
}

.modal-content .btn {
    max-width: 100px;
    padding: 8px 12px;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-input {
    width: 100%;
    padding-left: 90px;
}

.toggle-password,
.generate-password {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.toggle-password {
    left: 45px;
    min-height: unset;
    padding: 0;
    background: transparent !important;
    top: 12px;
}

.generate-password {
    left: 10px;
    padding: 0;
    min-height: unset;
    background: transparent !important;
}

.w-full {
    width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #333333 transparent transparent transparent;
    border-style: solid;
    border-width: 7px 6px 0 6px;
    height: 0;
    left: unset;
    margin-left: 0;
    margin-top: 0;
    position: absolute;
    top: 61%;
    width: 0;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-width: 0 6px 7px 6px;
    border-color: transparent transparent #333333 transparent;
}

.select2-container--default .select2-selection--multiple {
    background-color: transparent;
    border: none !important;
    outline: none !important;
    max-height: 48px;
    padding-bottom: 0!important;
}

.select2-container--default .select2-selection--multiple ul{
     max-height: 48px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0!important;
}

.select2-container .select2-selection--multiple {
    min-height: unset;
}

.select2-container--default .select2-selection--single {
    background-color: transparent;
    border: none;
}

button.select2-selection__choice__remove{min-height: unset;}

.select2-container .select2-selection--multiple{display: grid!important;}
.select2-container .select2-search--inline .select2-search__field{min-height: 20px!important;bottom: 4px;position: relative;}


@media(max-width: 1000px) {
    .form-box {
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .elementor-widget-html .container {
        min-width: 95%;
    }

    .elementor-widget-html .container .step-3 {
        width: 100%;
    }

    .form-wrapper {
        border-radius: 0;
    }

    .form-body {
        padding: 24px 16px;
    }

    .form-body-large {
        padding: 20px 12px;
    }

    .form-header h2 {
        font-size: 16px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-col,
    .form-col-half,
    .form-col-button,
    .form-col-3,
    .form-col-4 {
        min-width: 100%;
    }

    .btn-review {
        margin-top: 0;
    }

    .product-table {
        font-size: 12px;
    }

    .product-table th,
    .product-table td {
        padding: 8px 4px;
        font-size: 11px;
    }


    .btn-submit {
        width: 100%;
    }

    .box-file {
        display: block;
    }

    .r-box-file,
    .l-box-file {
        width: 100%;
    }
}

@media (max-width: 600px) {

    .elementor-widget-html .container .step-1,
    .elementor-widget-html .container .step-2,
    .elementor-widget-html .container .step-4 {
        min-width: unset;
        max-width: 98%;
    }
}

@media (max-width: 480px) {
    .form-body {
        padding: 20px 12px;
    }

    .form-body-large {
        padding: 16px 10px;
    }

    .form-input {
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn {
        padding: 12px;
        font-size: 14px;
    }

    .resend-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header h3 {
        font-size: 14px;
    }
}

.form-errors {
    background: #ffe5e5;
    border: 1px solid #ffb3b3;
    color: #b30000;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: pre-line;
}