body {
    background: linear-gradient(180deg, #0c0c0c, #1a1a1a);
    min-height: 1100px;
    font-family: vazir;
    color: #e0e0e0;
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.form-card {
    --text-color: #e5e5e5;
    --placeholder-color: rgba(200, 200, 200, 0.3);
    width: 95%;
    max-width: 1000px;
    padding: 3rem 2rem;
    margin: 2rem auto 9rem;
    backdrop-filter: blur(20px);
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    animation: glowPulse 8s ease-in-out infinite;
    position: relative;
    z-index: 5;
}

.form-card h2 {
    color: var(--text-color);
    text-align: center;
    font-size: 2rem;
    margin: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.form-card h4 {
    color: #888;
    text-align: center;
    font-size: 1.25rem;
    margin: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.form-columns {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-column-left, .form-column-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.form-input, .form-select {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-color);
    font-size: 1rem;
    transition: 0.3s;
    font-family: vazir;
}

.form-input::placeholder { color: var(--placeholder-color); }
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #c5a46d;
    box-shadow: 0 0 12px rgba(197,164,109,0.5);
}

.form-select-wrapper { position: relative; }
.form-select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--text-color);
    pointer-events: none;
}

.form-select { padding-right: 1.5rem; }
.form-select option { background-color: #111; color: var(--text-color); font-family: 'Vazir', sans-serif; }

.form-label {
    display: block;
    text-align: right;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-right: 0.75rem;
}

.terms-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    max-height: 15rem;
    overflow-y: auto;
    margin-top: 1.5rem;
}

.terms-box p {
    text-align: justify;
    font-size: 1rem;
    line-height: 1.7;
    color: #bbb;
    margin: 0;
}

.terms-box::-webkit-scrollbar {
    width: 8px;
}

.terms-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.terms-box::-webkit-scrollbar-thumb {
    background-color: #c5a46d;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.04);
}

.terms-box::-webkit-scrollbar-thumb:hover {
    background-color: #d6b77f;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    border: solid 1px #c5a46d;
    border-radius: 1.5rem;
    cursor: pointer;
    background: linear-gradient(180deg, #2b2b2b, #1a1a1a);
    color: #c5a46d;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
    margin-top: 2rem;
    font-family: vazir;
}

.submit-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(197,164,109,0.5); background: linear-gradient(180deg, #3a3a3a, #222); }

.message-box {
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.75rem;
    text-align: right;
    font-weight: 500;
    display: none;
    color: #fff;
    font-family: vazir;
}
.message-box ul { padding-right: 1.5rem; margin: 0; }
.message-box.error { background-color: rgba(255, 99, 71, 0.15); color: #FF6347; border: 1px solid rgba(255, 99, 71, 0.4); }

@media (min-width: 769px) {
    .form-columns { flex-direction: row; gap: 3rem; }
    .form-column-left, .form-column-right { width: 50%; }
}

@media (max-width: 768px) {
    .form-card { margin: 8rem 1rem 4rem; padding: 2rem 1.5rem; }
    .form-card h2 { font-size: 1.75rem; margin-bottom: 2.5rem; }
    .form-input, .form-select, .submit-btn { font-size: 1rem; padding: 1rem 1.25rem; }
    .form-columns { flex-direction: column; gap: 1.5rem; }
    .form-column-left, .form-column-right { padding: 1rem; }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    backdrop-filter: blur(20px);
    color: var(--text-color);
    font-family: vazir;
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
}
.modal-close-btn:hover { color: #FF6347; }

.invoice-details { text-align: right; margin-top: 1rem; color: #aaa; }
.invoice-header { text-align: center; margin-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 1rem; }
.invoice-header h4 { margin: 0; font-size: 1.2rem; font-weight: bold; }
.invoice-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; color: #e0e0e0; }
.invoice-table th, .invoice-table td { padding: 0.75rem 0.5rem; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 1rem; }
.invoice-table th { font-weight: 500; color: #aaa; }
.invoice-totals { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1rem; margin-top: 1rem; }
.invoice-totals .price-item { display: flex; justify-content: space-between; margin-bottom: 0.5rem; color: #aaa; }
.invoice-totals .price-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; color: var(--text-color); margin-top: 1rem; }
.price-item span:first-child, .price-total span:first-child { text-align: right; }
.price-item span:last-child, .price-total span:last-child { text-align: left; }

.addons-section { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 1.5rem; padding: 1.5rem; margin-top: 1.5rem; }
.addons-title { color: var(--text-color); font-size: 1.5rem; font-weight: 700; margin-top: 0; margin-bottom: 1.5rem; text-align: right; }
.addon-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.addon-item:last-child { border-bottom: none; }
.addon-label { display: flex; align-items: center; gap: 1rem; color: var(--text-color); font-size: 1rem; cursor: pointer; margin-bottom: 0; }
.addon-price { color: var(--text-color); font-size: 1rem; font-weight: 600; white-space: nowrap; }

.quantity-control { display: flex; align-items: center; gap: 0.5rem; }
.quantity-btn { width: 32px; height: 32px; border-radius: 8px; background-color: rgba(255, 255, 255, 0.08); border: none; color: var(--text-color); font-size: 1.2rem; font-weight: bold; cursor: pointer; transition: background-color 0.2s, transform 0.2s; font-family: vazir; }
.quantity-btn:hover { background-color: rgba(255, 255, 255, 0.15); transform: scale(1.05); }
.quantity-btn:active { transform: scale(0.95); }
.quantity-input { width: 48px; padding: 0.5rem; text-align: center; background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-color); font-size: 1rem; border-radius: 8px; font-family: vazir; -moz-appearance: textfield; }
.quantity-input::-webkit-outer-spin-button, .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.addon-label input[type="checkbox"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 24px; height: 24px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 6px; background-color: rgba(255, 255, 255, 0.05); cursor: pointer; display: grid; place-content: center; transition: all 0.2s ease-in-out; flex-shrink: 0; }
.addon-label input[type="checkbox"]::before { content: ""; width: 14px; height: 14px; transform: scale(0); transition: transform 0.2s ease-in-out; box-shadow: inset 1em 1em #c5a46d; border-radius: 4px; }
.addon-label input[type="checkbox"]:checked { background-color: #c5a46d; border-color: #c5a46d; }
.addon-label input[type="checkbox"]:checked::before { transform: scale(1); }
.addon-label input[type="checkbox"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(197,164,109,0.5); }

@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 15px rgba(197,164,109,0.2); } 50% { box-shadow: 0 0 25px rgba(197,164,109,0.5); } }

.edit-btn { padding: 12px 24px; border-radius: 8px; border: none; color: #fff; cursor: pointer; font-size: 16px; font-weight: bold; transition: background-color 0.3s ease; width: 100%; box-sizing: border-box; background-color: #444; }
.edit-btn:hover { background-color: #666; }
