:root {
    --gold: #D4AF37;
    --dark-gold: #B8860B;
    --black: #121212;
    --dark-gray: #1E1E1E;
    --light-gray: #2D2D2D;
    --white: #F5F5F5;
    --success: #27ae60;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Vazir, Tahoma, sans-serif;
}

body {
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

header {
    background: linear-gradient(135deg, var(--black), var(--dark-gray));
    color: var(--gold);
    padding: 25px 0;
    text-align: center;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.tagline {
    color: var(--white);
    font-size: 1rem;
}

.form-container {
    background-color: var(--dark-gray);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
    border: 1px solid var(--light-gray);
}

h2 {
    color: var(--gold);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.6rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--gold);
}

input, select {
    width: 100%;
    padding: 14px;
    background-color: var(--light-gray);
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 16px;
    color: var(--white);
    transition: all 0.3s;
}

input:focus, select:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.upload-container {
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    background-color: rgba(30, 30, 30, 0.7);
}

.upload-container:hover {
    border-color: var(--gold);
}

.upload-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-btn {
    background: linear-gradient(to bottom, var(--gold), var(--dark-gold));
    color: var(--black);
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
}

.file-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.preview-container {
    margin-top: 20px;
    display: none;
}

.preview-title {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.image-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input {
    width: auto;
    margin-left: 8px;
}

.hidden {
    display: none;
}

.size-options {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.size-option {
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: var(--light-gray);
}

.size-option:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.size-option.selected {
    border-color: var(--gold);
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
}

.size-dimensions {
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 5px;
}

.size-price {
    color: var(--white);
    font-size: 0.9rem;
}

.terms-container {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
    border-right: 3px solid var(--gold);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-checkbox input {
    width: 20px;
    margin-top: 3px;
}

.terms-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.terms-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

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

.price-summary {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-right: 3px solid var(--gold);
}

.price-title {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.total-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--gold);
    border-top: 1px solid #444;
    padding-top: 15px;
    margin-top: 10px;
}

.btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to bottom, var(--gold), var(--dark-gold));
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
}

.btn:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

.template-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 8px;
    display: inline-block;
    border-bottom: 1px dashed var(--gold);
    padding-bottom: 2px;
}

.template-link:hover {
    border-bottom-style: solid;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid var(--light-gray);
}

/* صفحه تایید موفقیت پرداخت */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
}

.success-title {
    color: var(--success);
    font-size: 2rem;
    margin-bottom: 20px;
}

.success-message {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.notification-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.notification-method {
    text-align: center;
}

.notification-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.telegram-icon {
    color: #0088cc;
}

.email-icon {
    color: #EA4335;
}

.order-details {
    background-color: var(--light-gray);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: right;
    border-right: 3px solid var(--success);
}

.order-id {
    font-weight: bold;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .size-options {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .notification-methods {
        flex-direction: column;
        gap: 20px;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}