.upload-progress-overlay {
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.upload-percent {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #1aa29a;
    white-space: nowrap;
    text-align: center
}

.progress-step,
.progress-track {
    position: relative;
    display: flex
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-badge,
.grid-item,
.option-item,
.step-text,
h1 {
    text-align: center
}

.form-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 3px #1d212b0f, 0 4px 12px #1d212b0a;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    overflow: hidden;
    /* padding-bottom: 100px !important */
}

h1 {
    color: #333;
    margin-bottom: 30px
}

h2 {
    color: #444;
    margin-top: 0;
    margin-bottom: 20px
}

.progress-scroll-container {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none
}

.progress-scroll-container::-webkit-scrollbar {
    display: none
}

.progress-track {
    align-items: center;
    justify-content: space-between;
    min-width: max-content
}

.progress-step {
    flex-direction: column-reverse;
    align-items: center;
    z-index: 2;
    cursor: pointer;
    min-width: 80 px;
    margin: 0 5px;
    gap: 12px
}

.progress-step.active .step-text {
    background-color: #1aa29a;
    padding: 4px 10px;
    border-radius: 5px;
    color: #fff !important;
    font-weight: 700;
    transition: .3s
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background-color: #1aa29a;
    color: #fff
}

.progress-step .step-text {
    background-color: #e0e0e0;
    padding: 4px 10px;
    border-radius: 5px;
    color: #555 !important;
    transition: .3s
}

.step-number {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #555;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    transition: .3s;
    border: 3px solid #fff;
    font-size: 12px
}

.step-text {
    font-size: 13px;
    color: #888;
    transition: .3s;
    flex-shrink: 0;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.progress-step.active .step-number {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .2)
}

.progress-step.completed .step-text {
    color: #1aa29a !important;
    background-color: #f4f4f4 !important;
    transition: .3s
}

.line-background,
.line-fill {
    position: absolute;
    height: 4px;
    transform: translateY(-50%);
    z-index: 1;
    transition: width .3s, right .3s
}

.line-background {
    background-color: #e0e0e0;
    right: 0;
    width: 0;
    top: 51.5px
}

.line-fill {
    background-color: #1aa29a;
    right: 0;
    width: 0;
    transition: width .3s;
    top: 51.5px;
}

.form-navigation,
.input-wrapper,
.modal-content,
.modal-overlay,
.search-wrapper input {
    width: 100%;
    box-sizing: border-box
}

.form-step {
    display: none;
    animation: .4s fadein
}

.form-step.active {
    display: block
}

@keyframes fadein {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.form-navigation {
    margin-bottom: 25px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 720px;
    background: #ffffff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px #1d212b14, 0 4px 12px #1d212b1a;
    border-top: 1px solid #eee;
    z-index: 999;
    border-radius: 20px
}

@media (max-width:768px) {
    .form-navigation {
        margin-bottom: 15px !important;
        padding: 12px 20px !important;
        max-width: 95% !important;
    }

    .form-container {
        padding: 20px !important;
        padding-bottom: 90px !important
    }
}

.form-navigation button {
    min-width: 130px;
    height: 40px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center
}

.prev-step-btn,
.prev-step-btn:focus {
    background-color: #f1f1f1 !important;
    color: #555 !important;
    border: 1px solid #ddd !important;
}

.prev-step-btn:hover:not(:disabled) {
    background-color: #e5e5e5 !important;
}

.next-step-btn,
.submit-form-btn {
    background-color: #1aa29a;
    color: #fff;
    border: none
}

.next-step-btn:hover,
.submit-form-btn:hover,
.next-step-btn:focus,
.submit-form-btn:focus {
    background-color: #158a83 !important;
    transform: translateY(-2px) !important;
}

button:disabled {
    opacity: .8 !important;
    cursor: no-drop
}

.step-header {
    margin-bottom: 25px
}

.search-wrapper {
    position: relative;
    margin-bottom: 20px
}

.search-wrapper input {
    padding: 12px 45px 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    transition: .3s
}

.search-wrapper input:focus {
    border-color: #1aa29a;
    outline: 0;
    box-shadow: 0 0 10px rgba(0, 123, 255, .1)
}

.search-wrapper .search-icon {
    position: absolute;
    right: 15px;
    top: 55%;
    transform: translateY(-50%);
    font-style: normal;
    color: #999
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 10px
}

.grid-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 500
}

.brand-item-content img {
    min-width: 25px;
}

.grid-item:hover {
    border-color: #1aa29a;
    background-color: #f8fbff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05)
}

.grid-item.selected {
    border-color: #1aa29a;
    background-color: #eefffa;
    color: #1aa29a
}

.grid-item.hidden {
    display: none
}

.selection-grid::-webkit-scrollbar {
    width: 6px
}

.selection-grid::-webkit-scrollbar-track {
    background: #f1f1f1
}

.selection-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px
}

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none
}

.input-wrapper,
.modal-option,
.toast,
.toast-content {
    display: flex;
    align-items: center
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .049);
    animation: .3s forwards slideInLeft;
    position: relative;
    border-right: 5px solid rgba(0, 0, 0, .049)
}

.close-modal path,
.close-modal svg,
.input-unit {
    pointer-events: none
}

.toast-content {
    gap: 10px
}

.toast-close {
    background: 0 0;
    border: none;
    color: #3c3c3c;
    font-size: 22px;
    margin-top: 5px;
    cursor: pointer;
    opacity: .7;
    transition: .2s;
    line-height: 1
}

.media-card:hover .overlay-actions,
.toast-close:hover {
    opacity: 1
}

.toast-close:hover {
    background-color: #158a8200;
}

div#notification-container {
    margin-top: 20px;
}

.toast-warning {
    background-color: #ffefbe;
    color: #333;
    border: 1px solid #ffc107
}

.toast-error {
    background-color: #ffced3;
    color: #333;
    border: 1px solid #dc3545
}

.toast-success {
    background-color: #cdffd8;
    color: #333;
    border: 1px solid #28a745
}

.toast-info {
    background-color: #cdf8ff;
    color: #333;
    border: 1px solid #17a2b8
}

@keyframes fadeInOverlay {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeOutOverlay {
    from {
        opacity: 1
    }

    to {
        opacity: 0
    }
}

@keyframes slideUpIn {
    from {
        transform: translateY(30px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes slideDownOut {
    from {
        transform: translateY(0);
        opacity: 1
    }

    to {
        transform: translateY(30px);
        opacity: 0
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px)
    }
}

.toast.hide {
    animation: .5s forwards fadeOut
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px
}

.option-item {
    padding: 15px 10px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 20px
}

.option-title {
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word
}

.option-item:hover {
    border-color: #1aa29a;
    background: #f8fbff
}

.option-item.selected {
    border-color: #1aa29a;
    background: #eef6ff;
    color: #1aa29a;
    font-weight: 700
}

.conditional-field {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    animation: .3s fadeIn
}

#mileage-input,
.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 70px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    box-sizing: border-box
}

.input-unit {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 13px
}

.custom-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer
}

.select-display {
    display: flex;
    flex-direction: column
}

.select-label {
    font-size: 14px;
    font-weight: 700;
    color: #333
}

.select-value {
    font-size: 12px;
    color: #1aa29a;
    margin-top: 2px
}

.helper-text,
.upload-info {
    font-size: 12px;
    color: #666
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: .3s forwards fadeInOverlay
}

.modal-content {
    background: #fff;
    max-width: 450px;
    max-height: 80vh;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    animation: .3s cubic-bezier(.4, 0, .2, 1) forwards slideUpIn
}

.modal-header {
    padding: 15px 20px;
    background: #f8faf9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    flex-shrink: 0
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative
}

.modal-body::-webkit-scrollbar {
    width: 6px
}

.modal-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px
}

.modal-option:hover {
    background: #f0f7ff;
    color: #1aa29a
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

input[type=number] {
    -moz-appearance: textfield
}

.input-wrapper {
    position: relative;
    margin-top: 7px
}

.helper-text {
    margin-top: 8px;
    background: #eee;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block
}

label {
    font-size: 14px
}

span.arrow-icon {
    margin-top: 5px
}

button.close-modal {
    cursor: pointer;
    background: 0 0;
    border: none;
    margin-top: 5px
}

.custom-select-wrapper {
    margin-bottom: 20px;
    transition: .3s
}

.custom-select-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #555
}

.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: inline-block
}

.modal-option {
    gap: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: .2s;
    justify-content: space-between;
}

.modal-option:last-child {
    border-bottom: none
}

.modal-search {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    display: none;
    width: 100%;
    box-sizing: border-box
}

.modal-search input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    outline: 0;
    transition: .3s;
    box-sizing: border-box;
    background-color: #f9f9f9
}

.modal-search input:focus {
    border-color: #1aa29a;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(26, 162, 154, .1)
}

.select-display .selected-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px
}

.custom-select.has-selection {
    background-color: #eef6ff !important;
    border-color: #1aa29a !important
}

.custom-select.has-selection .arrow-icon,
.custom-select.has-selection .arrow-icon svg path,
.custom-select.has-selection .select-label,
.custom-select.has-selection .select-value {
    color: #1aa29a !important;
    fill: #1AA29A !important
}

.custom-select.has-selection .color-circle,
.media-card.is-main {
    border-color: #1aa29a
}

.custom-select.disabled {
    opacity: .5;
    background-color: #f5f5f5;
    pointer-events: none;
    border-color: #ddd
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #eee
}

.progress-bar-fill-upload {
    height: 100%;
    background: #1aa29a;
    width: 0%;
    transition: width .2s
}

.upload-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    line-height: 2
}

.upload-info a {
    color: #1aa29a;
    text-decoration: none;
    font-weight: 700
}

#price-input {
    padding-left: 60px !important
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
    width: fit-content
}

.toggle-btn.active {
    border-color: #1aa29a;
    background-color: #eef6ff;
    color: #1aa29a
}

.toggle-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
    position: relative;
    transition: .3s
}

.toggle-btn.active .toggle-circle {
    background: #1aa29a;
    transform: scale(1.1)
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
    background-color: #f8f9fa;
    margin-top: 6px
}

.textarea-wrapper textarea:focus {
    border-color: #1aa29a;
    outline: 0
}

.upload-controls-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px
}

.upload-row-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.media-trigger-box {
    background: #fff;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s cubic-bezier(.4, 0, .2, 1)
}

.media-trigger-box:hover {
    border-color: #1aa29a;
    background: #f0fdfa;
    transform: translateY(-2px)
}

.trigger-icon {
    font-size: 28px;
    margin-bottom: 8px
}

.trigger-title {
    font-weight: 700;
    font-size: 14px;
    color: #374151
}

.trigger-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px
}

.unified-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    margin-top: 20px
}

.media-card {
    position: relative;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1);
    border: 2px solid transparent;
    animation: .3s scaleUp
}

.media-card img,
.media-card video {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.media-card .overlay-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: .3s
}

.card-btn-delete {
    margin: 5px !important;
    padding: 0px !important;
    align-self: flex-start !important;
    background: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

.card-badge {
    background: rgba(255, 255, 255, .9);
    color: #374151;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    margin: 5px
}

.media-card.is-main .card-badge {
    background: #1aa29a;
    color: #fff
}

.type-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #374151;
    color: #fff;
    font-size: 9px;
    padding: 0px 6px 0px;
    border-radius: 4px;
    line-height: 2.2;
}

.upload-progress-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10
}

.progress-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1aa29a;
    border-radius: 50%;
    animation: 1s linear infinite spin
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes scaleUp {
    from {
        transform: scale(.8);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.upload-footer-info {
    margin-top: 25px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px
}

.info-item {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px
}

.modal-overlay.closing {
    animation: .3s forwards fadeOutOverlay
}

.modal-overlay.closing .modal-content {
    animation: .3s cubic-bezier(.4, 0, .2, 1) forwards slideDownOut
}

.info-item svg {
    margin-bottom: -3px
}

@media (max-width:600px) {
    body {
        padding: 0 !important;
    }

    .options-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .option-item[data-value=presale] {
        grid-column: span 2 !important;
        min-height: 26px !important;
        padding: 12px !important;
    }
}

@media (max-width:480px) {
    .form-navigation {
        margin-bottom: 15px !important;
        padding: 12px !important;
        max-width: 95% !important;
        width: 100% !important;
    }

    .options-grid,
    .upload-row-top {
        grid-template-columns: 1fr !important;
    }

    body {
        padding: 0px !important;
    }

    .form-container {
        padding: 10px !important;
    }

    .option-item[data-value=presale] {
        grid-column: span 1 !important;
    }

    .modal-overlay {
        padding: 0 10px !important;
        align-items: flex-end !important;
    }

    .modal-content {
        max-height: 50vh !important;
        border-radius: 20px 20px 0 0 !important;
    }

    .modal-list {
        padding: 0 0 10px !important;
    }
}

@keyframes shimmer {
    0% {
        background-position: -468px 0
    }

    100% {
        background-position: 468px 0
    }
}

.skeleton-base {
    width: 100%;
    background: 0 0/800px 104px no-repeat #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    display: inline-block;
    position: relative;
    animation: 1.2s linear infinite forwards shimmer
}

.skeleton-grid-item {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    margin-bottom: 10px
}

.skeleton-list-item {
    width: 95%;
    height: 35px;
    margin: 10px;
    border-radius: 8px;
    display: block
}

.loading-hidden {
    display: none !important
}

.conditional-tech-field {
    margin-bottom: 25px;
    animation: .4s fadeIn
}

.field-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #444
}

.small-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
    gap: 8px !important
}

.small-grid .option-item {
    padding: 10px !important;
    min-height: 50px !important;
    font-size: 13px !important
}

.user-ad-wrapper {
    background: #fff;
    border-radius: 21px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #eee;
}

a.fap-btn-primary, a.fap-btn-primary:hover {
    color: white !important;
}

.btn-dash-pay {
    background: #19A29A !important;
    color: white !important;
    font-weight: bold;
    border: none !important;
}

.btn-dash-pay:hover {
    background: #14857e !important;
}

/* غیرفعال کردن کلیک روی کارت‌های آرشیو شده */
.archived-card .ad-card-link-overlay {
    cursor: default;
    pointer-events: none;
}


/* --- استایل اختصاصی فیلدها و رادیوباتن‌های فرم پذیرش فرمولا --- */

.fap-branch-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

/* ۱. استایل فیلدهای متنی و اینپوت‌ها */
.fap-branch-form-container input[type="text"],
.fap-branch-form-container input[type="tel"],
.fap-branch-form-container textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

/* حالت فوکوس فیلدها */
.fap-branch-form-container input:focus,
.fap-branch-form-container textarea:focus {
    border-color: #19A29A;
    /* رنگ سبز فرمولا */
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 162, 154, 0.1);
}

.textarea-wrapper label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #475569;
    font-size: 14px;
}

/* ۲. استایل دکمه‌های رادیویی (مشابه فیلترهای سایدبار) */
.fap-report-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.custom-radio-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #fff;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* مخفی کردن دایره اصلی مرورگر */
.custom-radio-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.custom-radio-btn .radio-label {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    flex: 1;
}

.custom-radio-btn .radio-label strong {
    color: #1e293b;
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
}

/* دایره تیک سفارشی */
.custom-radio-btn .radio-mark {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* افکت هاور روی رادیوباتن */
.custom-radio-btn:hover {
    border-color: #19A29A;
    background: #f0fdfa;
}

/* --- استایل حالت انتخاب شده (Checked) --- */
.custom-radio-btn:has(input:checked) {
    border-color: #19A29A;
    background: #f0fdfa;
    box-shadow: 0 4px 20px rgba(25, 162, 154, 0.12);
}

.custom-radio-btn input:checked~.radio-mark {
    border-color: #19A29A;
    background: #19A29A;
}

/* نقطه سفید داخل دایره */
.custom-radio-btn input:checked~.radio-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* ۳. استایل سوالات و متون راهنما */
.question {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    display: block;
}


.helper-text {
    margin-top: 8px;
    font-size: 13px;
    color: #19A29A;
    font-weight: 600;
}

/* انیمیشن برای ورود مراحل */
.form-step {
    animation: fapFadeSlide 0.4s ease-out;
}

@keyframes fapFadeSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.brand-item-content {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    gap: 7px;
}

img.brand-logo-img {
    margin-bottom: -2px;
}

/* --- استایل کارت موفقیت نهایی --- */
.fap-success-wrapper {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 24px;
    animation: fapFadeUp 0.6s ease-out;
}

@keyframes fapFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fap-success-icon {
    margin-bottom: 20px;
    animation: fapScaleCheck 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both;
}

@keyframes fapScaleCheck {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.fap-success-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.fap-success-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.8;
    max-width: 400px;
    margin: 0 auto 30px auto;
}

/* باکس کد پیگیری */
.fap-success-tracking {
    background: #f0fdfa;
    border: 1px dashed #19A29A;
    padding: 20px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 35px;
}

.fap-success-tracking .fap-label {
    display: block;
    font-size: 12px;
    color: #115e59;
    margin-bottom: 8px;
}

.fap-success-tracking .fap-code {
    font-size: 24px;
    font-weight: 900;
    color: #19A29A;
    letter-spacing: 2px;
    font-family: monospace;
}

/* دکمه‌های عملیاتی */
.fap-success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
}

.fap-btn-primary {
    background: #19A29A;
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.fap-btn-primary:hover {
    background: #14857e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(25, 162, 154, 0.2);
}

.fap-btn-outline {
    background: transparent;
    color: #64748b;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.fap-btn-outline:hover {
    color: #1e293b;
    background: #f1f5f9;
}

a.fap-btn-primary,
a.fap-btn-outline {
    text-decoration: none !important;
}

.fap-close-modal {
    cursor: pointer;
}

/* تم خطای نهایی (درخواست تکراری در فرم پذیرش شعبه) */
.fap-final-error-wrapper .fap-success-icon svg { stroke: #f59e0b; }
.fap-final-error-wrapper .fap-success-tracking { background: #fffbeb; border-color: #f59e0b; }
.fap-final-error-wrapper .fap-success-tracking .fap-code { color: #b45309; }
.fap-final-error-wrapper .fap-btn-primary { background: #f59e0b; }
.fap-final-error-wrapper .fap-btn-primary:hover { background: #d97706; }



.verify-field-group {
    text-align: right;
    margin-bottom: 20px;
}

.verify-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.verify-field-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.verify-field-group input:focus {
    border-color: #19A29A;
    background: #fff;
}

.verify-field-group input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}