/* Lottery System - Apple-inspired Design */

/* ============ Base Styles ============ */
.lottery-nav {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.login-btn {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 20px;
    font-weight: 600;
}

.login-btn::after {
    display: none;
}

/* ============ Hero Section ============ */
.lottery-hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.hero-content-lottery {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.lottery-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.lottery-hero h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ Registration Section ============ */
.registration-section {
    padding: 4rem 2rem;
    background: #f5f5f7;
}

.registration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.reg-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.reg-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.reg-card.featured {
    border-color: #667eea;
}

.reg-card.premium {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6f0 100%);
    border-color: #764ba2;
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.reg-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.reg-card p {
    color: #6e6e73;
    margin-bottom: 1.5rem;
}

.card-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    display: block;
}

.price-currency {
    font-size: 1rem;
    color: #6e6e73;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: right;
}

.card-features li {
    padding: 0.75rem 0;
    color: #1d1d1f;
    border-bottom: 1px solid #f5f5f7;
    font-weight: 500;
}

.card-features li:last-child {
    border-bottom: none;
}

.btn-register {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.premium-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ============ Info Box ============ */
.info-box {
    background: white;
    border-radius: 18px;
    padding: 2rem;
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.info-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
}

.info-content p {
    line-height: 1.8;
    color: #6e6e73;
}

/* ============ Services Section ============ */
.services-section {
    padding: 4rem 2rem;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: #6e6e73;
    line-height: 1.7;
}

/* ============ Requirements Section ============ */
.requirements-section {
    padding: 4rem 2rem;
    background: #f5f5f7;
}

.requirements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: center;
}

.req-visual {
    text-align: center;
}

.req-icon-large {
    font-size: 10rem;
    opacity: 0.1;
}

.req-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.req-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.req-item.highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #667eea;
}

.req-item-icon {
    font-size: 2rem;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.req-item-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.req-item-content p {
    color: #6e6e73;
    line-height: 1.6;
}

/* ============ Timeline Section ============ */
.timeline-section {
    padding: 4rem 2rem;
    background: white;
}

.timeline {
    max-width: 800px;
    margin: 3rem auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: #f5f5f7;
    padding: 1.5rem;
    border-radius: 18px;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #6e6e73;
    line-height: 1.7;
}

/* ============ Terms Section ============ */
.terms-section {
    padding: 4rem 2rem;
    background: #f5f5f7;
}

.terms-box {
    background: white;
    border-radius: 18px;
    padding: 2.5rem;
    border-right: 4px solid #ff9500;
}

.terms-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff9500;
    margin-bottom: 1.5rem;
}

.terms-list {
    list-style: none;
    padding: 0;
}

.terms-list li {
    padding: 1rem 0;
    padding-right: 1.5rem;
    border-bottom: 1px solid #f5f5f7;
    color: #1d1d1f;
    line-height: 1.8;
    position: relative;
}

.terms-list li::before {
    content: '▸';
    position: absolute;
    right: 0;
    color: #ff9500;
    font-weight: 700;
}

.terms-list li:last-child {
    border-bottom: none;
}

/* ============ CTA Section ============ */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #1d1d1f 0%, #2d2d2f 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1.25rem 2.5rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-cta.primary {
    background: #667eea;
    color: white;
}

.btn-cta.secondary {
    background: #34c759;
    color: white;
}

.btn-cta.premium {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ============ Footer ============ */
.lottery-footer {
    background: #1d1d1f;
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem 1.5rem;
}

.lottery-footer .footer-logo {
    width: 200px;
    filter: brightness(0) invert(1);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-badges a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-badges a:hover {
    transform: scale(1.05);
}

.footer-badges img {
    max-width: 100px;
    height: auto;
}

.lottery-footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.lottery-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.lottery-footer a:hover {
    color: white;
}

/* ============ Form Container ============ */
.form-container {
    min-height: 100vh;
    background: #f5f5f7;
    padding: 6rem 2rem 3rem;
}

.progress-container {
    max-width: 900px;
    margin: 0 auto 3rem;
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e8e8ed;
    color: #6e6e73;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.progress-step.completed .step-circle {
    background: #34c759;
    color: white;
}

.progress-step.completed .step-circle::after {
    content: '✓';
    position: absolute;
    font-size: 1.5rem;
}

.progress-step span {
    font-size: 0.85rem;
    color: #6e6e73;
    text-align: center;
}

.progress-step.active span {
    color: #667eea;
    font-weight: 600;
}

.progress-bar-fill {
    position: absolute;
    top: 50%;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.4s ease;
    width: 0%;
    z-index: 0;
}

/* ============ Form Steps ============ */
.form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.form-step {
    display: none;
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.4s ease;
}

.form-step.active {
    display: block;
}

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

.step-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.step-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #6e6e73;
    font-size: 1.05rem;
}

.form-content {
    margin-bottom: 2.5rem;
}

/* ============ Radio Cards ============ */
.radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.radio-card {
    cursor: pointer;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card-content {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 2.5rem;
    text-align: center;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.radio-card input:checked + .radio-card-content {
    background: white;
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.radio-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.radio-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.radio-card-content p {
    color: #6e6e73;
}

/* ============ Form Controls ============ */
.children-select {
    margin-top: 2rem;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.children-select label {
    display: block;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
}

.children-select select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #d2d2d7;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.children-select select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Form Row & Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #d2d2d7;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ============ Upload Section ============ */
.upload-section {
    margin-bottom: 2.5rem;
}

.upload-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.upload-requirements {
    background: #fff4e5;
    border-right: 3px solid #ff9500;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.upload-requirements p {
    font-weight: 700;
    color: #ff9500;
    margin-bottom: 0.5rem;
}

.upload-requirements ul {
    margin: 0;
    padding-right: 1.5rem;
    color: #6e6e73;
}

.upload-box {
    border: 3px dashed #d2d2d7;
    border-radius: 18px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-box:hover {
    border-color: #667eea;
    background: #f5f7fa;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-box p {
    color: #6e6e73;
    font-weight: 500;
}

.image-preview {
    margin-top: 1rem;
    display: none;
}

.image-preview.active {
    display: block;
}

.image-preview img {
    max-width: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============ Review Section ============ */
.review-section {
    margin-bottom: 2.5rem;
}

.review-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5f5f7;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.review-item {
    padding: 1rem;
    background: #f5f5f7;
    border-radius: 12px;
}

.review-item label {
    display: block;
    font-size: 0.85rem;
    color: #6e6e73;
    margin-bottom: 0.25rem;
}

.review-item span {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1d1d1f;
}

/* Terms Agreement */
.terms-agreement {
    background: #fff4e5;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-label span {
    line-height: 1.7;
    color: #1d1d1f;
}

/* Price Summary */
.price-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 18px;
    padding: 2rem;
}

.price-summary h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.price-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    border-bottom: none;
    margin-top: 0.5rem;
}

/* ============ Form Actions ============ */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid #f5f5f7;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 1rem 2.5rem;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-prev {
    background: #e8e8ed;
    color: #1d1d1f;
}

.btn-prev:hover {
    background: #d2d2d7;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
}

/* ============ Modal ============ */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.success-content {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.3);
}

.success-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.tracking-code {
    background: #f5f5f7;
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 1.75rem;
    font-weight: 800;
    color: #667eea;
    margin: 1.5rem 0;
    letter-spacing: 0.1em;
    font-family: 'SF Mono', monospace;
}

.success-message {
    color: #6e6e73;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ============ Subsection Title ============ */
.subsection-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f5f5f7;
}

.info-message {
    background: #e3f2fd;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.info-message .info-icon {
    font-size: 3rem;
}

.info-message p {
    color: #1d1d1f;
    line-height: 1.7;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .progress-steps {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .progress-step span {
        font-size: 0.75rem;
        max-width: 80px;
    }

    .form-step {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .registration-cards {
        grid-template-columns: 1fr;
    }

    .requirements-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .progress-step span {
        display: none;
    }
}

