@font-face {
    font-family: 'VAZIR';
    src: url('fonts/VAZIR.woff2') format('woff2'), 
         url('fonts/VAZIR.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

select, input, button, textarea {
    font-family: 'VAZIR', sans-serif !important;
    text-align: center;
}

body {
    font-family: 'VAZIR', sans-serif !important;
    color: black;
    text-align: center;
    margin: 0;
    padding: 0;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    max-width: 600px;
    margin: auto;
    padding: 1rem;
}

#mainForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

label {
    font-weight: bold;
    margin-bottom: 4px;
    margin-top: 10px;
}

input, select, textarea, button {
    font-size: 1rem;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #218838;
}

form {
    padding: 20px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

form label {
    display: block;
    margin-bottom: 1px;
    font-weight: bold;
    color: black;
    font-size: 16px;
    text-align: center;
}

form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid black;
    border-radius: 50px;
    font-family: 'VAZIR', sans-serif;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

form input:focus,
form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: #fff;
}

form button,
form input[type="submit"] {
    background-color: #6014a3;
    color: white;
    border: 2px solid black;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'VAZIR', sans-serif;
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

form button:hover,
form input[type="submit"]:hover {
    background-color: white;
    color: #6014a3;
    border: 2px solid #6014a3;
}
form button[type="button"] {
    font-size: 14px;
    padding: 8px 10px;
    width: 48%;
    max-width: 190px;
    margin: 5px 1%;
    display: inline-block;
}
.button-container {
    display: flex;
    justify-content: center;
    gap: 2%;
    margin-top: 10px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.form-group:focus-within label {
    color: #030770;
    transform: scale(1.05);
    text-shadow: 0 0 3px rgba(130, 20, 163, 0.3);
    transition: all 0.3s ease;
}

.form-group label {
    font-weight: bold;
    color: black;
    font-size: 16px;
    margin-bottom: 5px;
    text-align: center;
}

input.numeric-input,
select.numeric-input,
textarea.numeric-input {
    direction: ltr;
    text-align: left;
}

.section-title {
    text-align: center;
    font-size: 1.0rem;
    font-weight: bold;
    color: black;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #dce3e8;
    width: 95%;
    max-width: 530px; /* هم‌اندازه با عرض فرم و approval-section */
    margin-left: 60px;
    margin-right: 60px;
}

.option-cards {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #dce3e8;
    padding: 1rem;
    gap: 0.5rem;
    width: 100%;
    max-width: 545px;
    margin-left: 60px;
    margin-right: 60px;
    justify-content: center;
}

.option-card {
    flex: 1 1 auto;
    text-align: center;
    position: relative;
}

.option-card input[type="radio"] {
    display: none;
}

.option-card .option-content {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    border: none;
    padding: 0.7rem 1rem;
    color: #2d3748;
    font-weight: 500;
    font-family: 'VAZIR', sans-serif;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.1),
        -3px -3px 6px rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    overflow: hidden;
}

.option-card:hover .option-content {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    transform: translateY(-1px);
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.1),
        -4px -4px 8px rgba(255, 255, 255, 0.8);
}

/* استایل برای دکمه‌های انتخاب نقش */
.role-selection .option-card {
    flex: 0 0 120px;
    max-width: 120px;
    min-height: 60px;
}



.role-selection .option-card .option-content {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.role-selection .option-card input[type="radio"]:checked + .option-content {
    background: linear-gradient(145deg, #821840, #5e1230);
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.2),
        inset -2px -2px 5px rgba(255, 255, 255, 0.1),
        3px 3px 8px rgba(130, 24, 64, 0.3);
    transform: translateY(2px);
    animation: select 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-selection .option-card input[type="radio"]:checked + .option-content::before {
    background: #a83250;
    box-shadow: 0 0 6px #a83250;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: multi-particles-top 0.8s ease-out forwards;
}

.role-selection .option-card input[type="radio"]:checked + .option-content::after {
    background: #c44868;
    box-shadow: 0 0 8px #c44868;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: multi-particles-bottom 0.8s ease-out forwards;
}

.role-selection .option-card input[type="radio"]:checked + .option-content::before {
    box-shadow:
        0 0 6px #a83250,
        10px -10px 0 #a83250,
        -10px -10px 0 #a83250;
}

.role-selection .option-card input[type="radio"]:checked + .option-content::after {
    box-shadow:
        0 0 8px #c44868,
        10px 10px 0 #c44868,
        -10px 10px 0 #c44868;
}
/* استایل برای دکمه ریست اطلاعات (کوچیکتر) */
.option-card.reset-option .option-content {
    padding: 0.5rem 0.8rem;
    font-size: 14px;
}
@media (max-width: 768px) {
    .role-selection {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
    }

    .role-selection .option-card {
        flex: none;
        width: 90%;
        max-width: 300px;
        min-height: 50px;
    }

    .role-selection .option-card .option-content {
        height: 40px;
        font-size: 14px;
        padding: 0 10px;

        display: flex;               /* مطمئن شو که فلکس هست */
        justify-content: center;     /* وسط‌چین افقی */
        align-items: center;         /* وسط‌چین عمودی */
        text-align: center;          /* وسط‌چین متن اگر چند خط بود */
    }
}


/* استایل برای دکمه‌های دیگر (بازگرداندن به تم آبی) */
.option-card input[type="radio"]:checked + .option-content {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.2),
        inset -2px -2px 5px rgba(255, 255, 255, 0.1),
        3px 3px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(2px);
    animation: select 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card input[type="radio"]:checked + .option-content::before {
    background: #60a5fa;
    box-shadow: 0 0 6px #60a5fa;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: multi-particles-top 0.8s ease-out forwards;
}

.option-card input[type="radio"]:checked + .option-content::after {
    background: #93c5fd;
    box-shadow: 0 0 8px #93c5fd;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: multi-particles-bottom 0.8s ease-out forwards;
}

.option-card input[type="radio"]:checked + .option-content::before {
    box-shadow:
        0 0 6px #60a5fa,
        10px -10px 0 #60a5fa,
        -10px -10px 0 #60a5fa;
}

.option-card input[type="radio"]:checked + .option-content::after {
    box-shadow:
        0 0 8px #93c5fd,
        10px 10px 0 #93c5fd,
        -10px 10px 0 #93c5fd;
}



/* استایل برای فرم‌های مختلف */
.form-container {
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.form-container.show {
    opacity: 1;
    display: flex !important;
}

#supporter-form {
    display: none;
}

#supporter-form.show {
    display: block !important;
}

#officeForm {
    display: none;
}

#officeForm.show {
    display: flex !important;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
}

#officeForm #pastedData {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid black;
    border-radius: 50px;
    font-family: 'VAZIR', sans-serif;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    text-align: center;
    transition: all 0.3s ease-in-out;
    height: 120px;
    resize: vertical;
}

#officeForm #pastedData:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: #fff;
}

#officeForm #showValuesButton {
    background-color: #6014a3;
    color: white;
    border: 2px solid black;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'VAZIR', sans-serif;
    transition: all 0.3s ease-in-out;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#officeForm #showValuesButton:hover {
    background-color: white;
    color: #6014a3;
    border: 2px solid #6014a3;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.data-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #dce3e8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.data-item span {
    font-family: 'VAZIR', sans-serif;
    font-size: 16px;
    color: #2d3748;
}
.option-card .option-content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(255, 255, 255, 0.5) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s;
}

.option-card input[type="radio"]:checked + .option-content::before {
    animation: ripple 0.8s ease-out;
}

.option-card input[type="radio"]:checked + .option-content::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(
        45deg,
        rgba(59, 130, 246, 0.5),
        rgba(37, 99, 235, 0.5)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-glow 1.5s ease-in-out infinite alternate;
}

.option-card .option-content span {
    font-family: 'VAZIR', sans-serif;
    font-size: 16px;
}

@keyframes select {
    0% { transform: scale(0.95) translateY(2px); }
    50% { transform: scale(1.05) translateY(-1px); }
    100% { transform: scale(1) translateY(2px); }
}

@keyframes multi-particles-top {
    0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    40% { opacity: 0.8; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0); box-shadow: 0 0 6px transparent, 20px -20px 0 transparent, -20px -20px 0 transparent; }
}

@keyframes multi-particles-bottom {
    0% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    40% { opacity: 0.8; }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0); box-shadow: 0 0 8px transparent, 20px 20px 0 transparent, -20px 20px 0 transparent; }
}

@keyframes ripple {
    0% { opacity: 1; transform: scale(0.2); }
    50% { opacity: 0.5; }
    100% { opacity: 0; transform: scale(2.5); }
}

@keyframes border-glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.approval-section {
    margin-top: 2rem;
    text-align: right;
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.approval-title {
    text-align: center;
    font-size: 1.0rem;
    font-weight: bold;
    color: black;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #dce3e8;
}

.approval-label {
    margin-right: 0.8rem;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #222;
}

.cyber-checkbox {
    --checkbox-size: 24px;
    --checkbox-color: #5c67ff;
    --checkbox-check-color: #ffffff;
    --checkbox-hover-color: #4c57ef;
    --checkbox-spark-offset: -20px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

.cyber-checkbox input {
    display: none;
}

.cyber-checkbox__mark {
    position: relative;
    display: inline-block;
    width: var(--checkbox-size);
    height: var(--checkbox-size);
}

.cyber-checkbox__box {
    position: absolute;
    inset: 0;
    border: 2px solid var(--checkbox-color);
    border-radius: 4px;
    background: transparent;
    transition: all 0.2s ease;
}

.cyber-checkbox__check {
    position: absolute;
    inset: 0;
    padding: 2px;
    stroke: var(--checkbox-check-color);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.cyber-checkbox__effects {
    position: absolute;
    inset: var(--checkbox-spark-offset);
    pointer-events: none;
}

.cyber-checkbox__spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: var(--checkbox-color);
    border-radius: 50%;
    opacity: 0;
    transform-origin: center center;
}

.cyber-checkbox:hover .cyber-checkbox__box {
    border-color: var(--checkbox-hover-color);
    box-shadow: 0 0 0 2px rgba(92, 103, 255, 0.1);
}

.cyber-checkbox input:checked + .cyber-checkbox__mark .cyber-checkbox__box {
    background: var(--checkbox-color);
    border-color: var(--checkbox-color);
}

.cyber-checkbox input:checked + .cyber-checkbox__mark .cyber-checkbox__check {
    transform: scale(1);
}

.cyber-checkbox input:checked + .cyber-checkbox__mark .cyber-checkbox__spark {
    animation: spark 0.4s ease-out;
}

.cyber-checkbox__spark:nth-child(1) {
    transform: rotate(0deg) translateX(var(--checkbox-spark-offset));
}
.cyber-checkbox__spark:nth-child(2) {
    transform: rotate(90deg) translateX(var(--checkbox-spark-offset));
}
.cyber-checkbox__spark:nth-child(3) {
    transform: rotate(180deg) translateX(var(--checkbox-spark-offset));
}
.cyber-checkbox__spark:nth-child(4) {
    transform: rotate(270deg) translateX(var(--checkbox-spark-offset));
}

@keyframes spark {
    0% { opacity: 0; transform: scale(0) rotate(0deg) translateX(var(--checkbox-spark-offset)); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scale(1) rotate(0deg) translateX(calc(var(--checkbox-spark-offset) * 1.5)); }
}

.cyber-checkbox:active .cyber-checkbox__box {
    transform: scale(0.9);
}

.cyber-checkbox input:focus + .cyber-checkbox__mark .cyber-checkbox__box {
    box-shadow: 0 0 0 4px rgba(92, 103, 255, 0.2);
}

.cyber-checkbox__particles {
    position: absolute;
    inset: -50%;
    pointer-events: none;
}

.cyber-checkbox__particles div {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--checkbox-color);
    opacity: 0;
}

.cyber-checkbox input:checked + .cyber-checkbox__mark .particle-1 {
    animation: particle-1 0.4s ease-out forwards;
}
.cyber-checkbox input:checked + .cyber-checkbox__mark .particle-2 {
    animation: particle-2 0.4s ease-out forwards 0.1s;
}
.cyber-checkbox input:checked + .cyber-checkbox__mark .particle-3 {
    animation: particle-3 0.4s ease-out forwards 0.15s;
}
.cyber-checkbox input:checked + .cyber-checkbox__mark .particle-4 {
    animation: particle-4 0.4s ease-out forwards 0.05s;
}
.cyber-checkbox input:checked + .cyber-checkbox__mark .particle-5 {
    animation: particle-5 0.4s ease-out forwards 0.12s;
}
.cyber-checkbox input:checked + .cyber-checkbox__mark .particle-6 {
    animation: particle-6 0.4s ease-out forwards 0.08s;
}
.cyber-checkbox input:checked + .cyber-checkbox__mark .particle-7 {
    animation: particle-7 0.4s ease-out forwards 0.18s;
}
.cyber-checkbox input:checked + .cyber-checkbox__mark .particle-8 {
    animation: particle-8 0.4s ease-out forwards 0.15s;
}

.cyber-checkbox input:not(:checked) + .cyber-checkbox__mark .particle-1 {
    animation: particle-out-1 0.4s ease-out forwards;
}
.cyber-checkbox input:not(:checked) + .cyber-checkbox__mark .particle-2 {
    animation: particle-out-2 0.4s ease-out forwards 0.1s;
}
.cyber-checkbox input:not(:checked) + .cyber-checkbox__mark .particle-3 {
    animation: particle-out-3 0.4s ease-out forwards 0.15s;
}
.cyber-checkbox input:not(:checked) + .cyber-checkbox__mark .particle-4 {
    animation: particle-out-4 0.4s ease-out forwards 0.05s;
}
.cyber-checkbox input:not(:checked) + .cyber-checkbox__mark .particle-5 {
    animation: particle-out-5 0.4s ease-out forwards 0.12s;
}
.cyber-checkbox input:not(:checked) + .cyber-checkbox__mark .particle-6 {
    animation: particle-out-6 0.4s ease-out forwards 0.08s;
}
.cyber-checkbox input:not(:checked) + .cyber-checkbox__mark .particle-7 {
    animation: particle-out-7 0.4s ease-out forwards 0.18s;
}
.cyber-checkbox input:not(:checked) + .cyber-checkbox__mark .particle-8 {
    animation: particle-out-8 0.4s ease-out forwards 0.15s;
}

@keyframes particle-1 {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-20px, -20px) scale(1); opacity: 0; }
}

@keyframes particle-2 {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(20px, -20px) scale(1); opacity: 0; }
}

@keyframes particle-3 {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(20px, 20px) scale(1); opacity: 0; }
}

@keyframes particle-4 {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-20px, 20px) scale(1); opacity: 0; }
}

@keyframes particle-5 {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-30px, 0px) scale(1); opacity: 0; }
}

@keyframes particle-6 {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(30px, 0px) scale(1); opacity: 0; }
}

@keyframes particle-7 {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0px, -30px) scale(1); opacity: 0; }
}

@keyframes particle-8 {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0px, 30px) scale(1); opacity: 0; }
}

@keyframes particle-out-1 {
    0% { transform: translate(-20px, -20px) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0, 0) scale(0); opacity: 0; }
}

@keyframes particle-out-2 {
    0% { transform: translate(20px, -20px) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0, 0) scale(0); opacity: 0; }
}

@keyframes particle-out-3 {
    0% { transform: translate(20px, 20px) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0, 0) scale(0); opacity: 0; }
}

@keyframes particle-out-4 {
    0% { transform: translate(-20px, 20px) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0, 0) scale(0); opacity: 0; }
}

@keyframes particle-out-5 {
    0% { transform: translate(-30px, 0px) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0, 0) scale(0); opacity: 0; }
}

@keyframes particle-out-6 {
    0% { transform: translate(30px, 0px) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0, 0) scale(0); opacity: 0; }
}

@keyframes particle-out-7 {
    0% { transform: translate(0px, -30px) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0, 0) scale(0); opacity: 0; }
}

@keyframes particle-out-8 {
    0% { transform: translate(0px, 30px) scale(1); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0, 0) scale(0); opacity: 0; }
}

@media screen and (max-width: 768px) {
    form { padding: 15px; }
    form input, form select { font-size: 14px; }
    form button { font-size: 14px; padding: 8px 16px; }
}

#mobile::placeholder,
#phone::placeholder,
#legalNationalId::placeholder,
#registrationNumber::placeholder,
#registrationDate::placeholder,
#storeName::placeholder,
#monthlyAmount::placeholder,
#description::placeholder {
    color: #6b7280; /* خاکستری تیره هماهنگ با تم */
    font-size: 12px; /* فونت خواناتر */
    font-weight: 300; /* فونت سبک */
    font-style: italic; /* ایتالیک برای جذابیت */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.invalid-field {
    background: rgba(255, 0, 0, 0.2) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 0, 0, 0.5) !important;
}

.error-message-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.error-message {
    background: rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 15px;
    padding: 15px;
    color: #2d3748;
    font-family: 'VAZIR', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 320px;
}

.error-message.office-expert-error {
    font-size: 12px;
    padding: 8px;
    max-width: 250px;
}

.error-message button {
    background-color: #6014a3;
    color: white;
    border: 2px solid black;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'VAZIR', sans-serif;
    margin-top: 8px;
    transition: all 0.3s ease-in-out;
}

.error-message button:hover {
    background-color: white;
    color: #6014a3;
    border: 2px solid #6014a3;
}

@media screen and (max-width: 768px) {
    .error-message {
        max-width: 280px;
        font-size: 13px;
        padding: 12px;
    }
    .error-message.office-expert-error {
        max-width: 200px;
        font-size: 11px;
        padding: 6px;
    }
    .error-message button {
        font-size: 11px;
        padding: 5px 10px;
    }
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.site-header {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 8px; /* کاهش ارتفاع */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.header-title {
  font-size: 1.2rem;
  color: #333;
  font-family: VAZIR;
  margin-bottom: 8px;
}

.header-images {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.header-logo,
.header-designer {
  max-width: 150px;
  height: auto;
}

/* برای موبایل */
@media (max-width: 768px) {
  .header-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .header-logo,
  .header-designer {
    max-width: 110px;
  }

  .header-images {
    flex-direction: row;
    gap: 12px;
  }
}
.site-footer {
  padding: 12px 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

.footer-designer {
  max-width: 120px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-designer:hover {
  opacity: 1;
}

#ibanCounter {
    font-family: 'VAZIR', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2d3748;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 12px;
    margin-top: 6px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

#ibanCounter.error {
    color: #dc2626;
    background: rgba(255, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}

#ibanCounter.success {
    color: #166534;
    background: rgba(34, 197, 94, 0.1);
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

#ibanCounter:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
form textarea#description {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid black;
    border-radius: 50px;
    font-family: 'VAZIR', sans-serif;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    text-align: center;
    transition: all 0.3s ease-in-out;
    height: 120px; /* دو برابر ارتفاع استاندارد */
    resize: vertical;
}

form textarea#description:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: #fff;
}
#office-expert-form {
    display: none;
    min-height: 200px;
}
#office-expert-form.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 200px;
}
#officeForm {
    display: none;
}
#officeForm.show {
    display: flex !important;
    flex-direction: column;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 200px;
}
.data-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid #dce3e8;
}

.data-item {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #dce3e8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.data-item-label {
    font-weight: bold;
    color: #6014a3;
    font-family: 'VAZIR', sans-serif;
    font-size: 16px;
}

.data-item-value {
    color: #2d3748;
    font-family: 'VAZIR', sans-serif;
    font-size: 16px;
}

.data-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 20, 163, 0.5), transparent);
    margin: 15px 0;
}
.data-item.highlight-legal {
    background: rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 0, 0, 0.5);
}


@media (max-width: 768px) {
    /* تنظیم عرض کانتینر اصلی */
    .container {
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    /* تنظیم عرض و حاشیه فرم اصلی برای بخش پشتیبان */
    #mainForm {
        max-width: 95%;
        width: 95%;
        margin: 0 auto;
        padding: 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* تنظیم فرم پشتیبان */
    #supporter-form {
        max-width: 95%;
        width: 95%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* تنظیم عرض و padding فیلدها */
    #mainForm input,
    #mainForm select,
    #mainForm textarea {
        max-width: 95%;
        width: 95%;
        min-width: 300px; /* حداقل عرض برای عریض‌تر شدن */
        margin: 0 auto 15px auto;
        padding: 10px 20px; /* افزایش padding برای ظاهر عریض‌تر */
        box-sizing: border-box;
        border-radius: 50px;
        font-size: 16px;
    }

    /* تنظیم بخش‌های حقوقی */
    .legal-fields {
        max-width: 95%;
        width: 95%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    /* تنظیم بخش‌های section-title و option-cards */
    .section-title,
    .option-cards {
        max-width: 95%;
        width: 95%;
        margin: 0 auto;
        padding: 10px;
        box-sizing: border-box;
        left: 0;
        transform: none;
    }

    /* تنظیم دکمه‌های نقش‌ها */
    .role-selection .option-card {
        width: 100%;
        max-width: 300px;
        margin: 5px 0;
    }

    /* تنظیم هدر برای جلوگیری از اسکرول افقی */
    .site-header {
        max-width: 100%;
        padding: 10px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .header-content,
    .header-images {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* تنظیم form-group برای اطمینان از عرض مناسب */
    .form-group {
        max-width: 95%;
        width: 95%;
        margin: 0 auto;
        box-sizing: border-box;
    }
}
@media (max-width: 768px) {
    .data-item {
        font-size: 14px; /* کاهش اندازه فونت کلی */
        display: flex;
        flex-wrap: nowrap; /* جلوگیری از شکسته شدن به خط بعدی */
        justify-content: space-between;
        align-items: center;
        padding: 8px; /* کاهش padding برای فضای بیشتر */
    }

    .data-item-label {
        font-size: 13px; /* فونت کوچکتر برای برچسب‌ها */
        font-weight: bold;
        white-space: nowrap; /* جلوگیری از شکستن نام فیلد */
        overflow: hidden;
        text-overflow: ellipsis; /* کوتاه کردن متن طولانی با ... */
        max-width: 40%; /* محدود کردن عرض برچسب */
    }

    .data-item-value {
        font-size: 13px; /* فونت کوچکتر برای مقادیر */
        white-space: nowrap; /* جلوگیری از شکستن مقدار */
        overflow: hidden;
        text-overflow: ellipsis; /* کوتاه کردن مقادیر طولانی مثل شبا */
        max-width: 55%; /* محدود کردن عرض مقدار */
        direction: ltr; /* برای مقادیر عددی مثل شبا */
    }
}