* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00a8e8;
    --accent-color: #003d7a;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}


.main-content {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}


.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.official-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}


.action-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
}


.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
    text-align: center;
    min-width: 200px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-download {
    background: var(--success-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-download:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-payment {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 18px 50px;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
}

.btn-payment:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.5);
}


.registration-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

.input-wrapper {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    transform: translateY(-3px);
}

.input-wrapper:focus-within {
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
    transform: translateY(-5px);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
    padding-right: 5px;
}

.label-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.9rem;
}

.required {
    color: var(--error-color);
    margin-right: 3px;
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-input:hover {
    background: var(--white);
    border-color: var(--border-color);
}

.form-input.error {
    border-color: var(--error-color);
    background: #fff5f5;
}

.input-wrapper .field-error {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 8px;
    padding-right: 5px;
    display: block;
    font-weight: 500;
}


.birthdate-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.birthdate-input {
    flex: 1;
}

.birthdate-input .form-input {
    text-align: center;
    font-weight: 600;
}


input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 35px;
    flex-wrap: wrap;
}


.review-section {
    max-width: 700px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.info-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
}

.info-value {
    color: var(--primary-color);
    font-weight: 500;
}

.review-form {
    margin-top: 30px;
}


.payment-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.payment-info {
    margin-bottom: 40px;
}

.payment-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.8;
}

.payment-amount {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amount-label {
    font-size: 1rem;
    opacity: 0.9;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.payment-action {
    margin: 40px 0;
}

.payment-note {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border-right: 4px solid var(--primary-color);
}

.payment-note p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}


.error-message {
    text-align: center;
    padding: 40px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    color: #856404;
}

.error-message p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}


.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}


@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header {
        padding: 20px;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .main-content {
        padding: 25px 20px;
    }

    .official-text {
        font-size: 1.4rem;
    }

    .description {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .form-row {
        flex-direction: column;
        gap: 25px;
    }

    .form-group-half {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .birthdate-row {
        flex-direction: column;
        gap: 15px;
    }

    .birthdate-input {
        width: 100%;
    }

    .info-row {
        flex-direction: column;
        gap: 8px;
    }

    .info-label {
        font-size: 0.9rem;
    }

    .info-value {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .payment-amount {
        padding: 20px;
    }

    .amount-value {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 90px;
    }

    .main-title {
        font-size: 1.4rem;
    }

    .official-text {
        font-size: 1.2rem;
    }

    .main-content {
        padding: 20px 15px;
    }

    .info-card {
        padding: 20px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .input-wrapper {
        padding: 3px;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .label-icon {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
}


@media print {
    body {
        background: white;
    }

    .btn {
        display: none;
    }

    .header, .main-content {
        box-shadow: none;
    }
}

