:root {
    --primary-color: #00FFD1;
    --primary-glow: rgba(0, 255, 209, 0.5);
    --secondary-color: #FF3366;
    --bg-dark: #0A0A0A;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --neon-glow: 0 0 10px rgba(0, 255, 209, 0.5),
                 0 0 20px rgba(0, 255, 209, 0.3),
                 0 0 30px rgba(0, 255, 209, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.light-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
                rgba(0, 255, 209, 0.1) 0%,
                rgba(0, 0, 0, 0) 50%);
    animation: pulseLight 8s ease-in-out infinite;
}

.geometric-shapes .shape {
    position: absolute;
    opacity: 0.1;
}

.shape-1 {
    top: 20%;
    left: 15%;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    transform: rotate(45deg);
    animation: floatShape 20s infinite linear;
}

.shape-2 {
    top: 60%;
    right: 10%;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 350px solid rgba(0, 255, 209, 0.1);
    animation: rotateShape 25s infinite linear;
}

.shape-3 {
    bottom: 10%;
    left: 30%;
    width: 200px;
    height: 200px;
    background: linear-gradient(-45deg, var(--secondary-color), transparent);
    border-radius: 50%;
    animation: pulseShape 15s infinite ease-in-out;
}

.shape-4 {
    top: 40%;
    right: 25%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), transparent);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: spinShape 30s infinite linear;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.glow-text {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-shadow: var(--neon-glow);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.decoration-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.decoration-circle {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: var(--neon-glow);
}

/* Message Form */
.message-form {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.form-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: var(--glass-border);
}

.form-section-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.section-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-left: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="tel"] {
    width: 100%;
    padding: 15px 45px 15px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--neon-glow);
}

.input-icon {
    position: absolute;
    right: 15px;
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    opacity: 0.7;
    transition: all 0.3s ease;
}

input:focus ~ .input-icon {
    opacity: 1;
    transform: scale(1.1);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Message Options */
.message-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-option {
    position: relative;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.message-option:hover {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.message-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.message-option label {
    display: block;
    cursor: pointer;
    padding-right: 30px;
    position: relative;
    margin: 0;
    font-size: 0.95rem;
}

.message-option label:before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.message-option input[type="radio"]:checked + label:before {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Terms Section */
.terms-section {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-dark);
    font-size: 14px;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.terms-link:hover {
    text-shadow: var(--neon-glow);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: var(--secondary-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 51, 102, 0.4);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(-5px);
}

/* Features Section */
.features {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.features h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 10px var(--primary-glow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(0, 255, 209, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 209, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 255, 209, 0.2), transparent);
    animation: pulseIcon 2s infinite ease-in-out;
}

.feature-icon .icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    stroke-width: 1.5;
    position: relative;
    z-index: 1;
}

.feature-item h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.modern-footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-top: var(--glass-border);
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-shadow: var(--neon-glow);
}

.footer-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

/* Animations */
@keyframes textGlow {
    from { text-shadow: 0 0 10px rgba(0, 255, 209, 0.5); }
    to { text-shadow: var(--neon-glow); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes rotateShape {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseShape {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

@keyframes spinShape {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulseLight {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .submit-btn {
    color: transparent;
}

.loading .submit-btn::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .glow-text {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon .icon {
        width: 24px;
        height: 24px;
    }

    .message-option {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .glow-text {
        font-size: 2rem;
    }

    .hero {
        padding: 40px 15px;
    }

    .message-form {
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 15px;
    }

    .form-section-header h2 {
        font-size: 1.3rem;
    }

    .message-option label {
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .contact-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .hero, .animated-background, .submit-btn {
        display: none;
    }

    .message-form {
        box-shadow: none;
        padding: 0;
        margin: 0;
        background: none;
        backdrop-filter: none;
        border: none;
    }

    .feature-icon, .message-option:hover, .input-glow {
        display: none;
    }

    * {
        color: black !important;
        text-shadow: none !important;
        box-shadow: none !important;
        background: none !important;
    }
}