/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fbbf24;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/government_building_3.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fbbf24;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fbbf24;
}

.feature p {
    opacity: 0.9;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #1e3a8a;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: #1e3a8a;
    margin-bottom: 60px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-card p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 8px 0;
    color: #059669;
    font-weight: 500;
}

.service-card li:before {
    content: "✓ ";
    color: #059669;
    font-weight: bold;
    margin-left: 10px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 30px;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.stat {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    color: #1e3a8a;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat p {
    color: #666;
    font-weight: 500;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 120px auto 60px;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 40px;
    font-weight: 700;
}

.form-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 20px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
}

.submit-button:active {
    transform: scale(0.98);
}

/* Security Notice */
.security-notice {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.security-notice h3 {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.security-notice p {
    color: #1e40af;
    margin: 0;
    font-weight: 500;
}

/* Verification Styles */
.verification-container {
    max-width: 500px;
    margin: 120px auto 60px;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.verification-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: white;
}

.verification-code {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 10px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    margin: 20px 0;
    font-weight: 600;
}

.resend-button {
    background: none;
    border: none;
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1rem;
    margin: 10px;
    transition: all 0.3s ease;
}

.resend-button:hover {
    color: #1e3a8a;
    transform: scale(1.05);
}

/* Success Page */
.success-container {
    max-width: 600px;
    margin: 120px auto 60px;
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    color: white;
}

.success-title {
    font-size: 2.5rem;
    color: #059669;
    margin-bottom: 20px;
    font-weight: 700;
}

.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    color: #065f46;
    font-weight: 600;
}

.application-details {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: right;
}

.application-details h3 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #374151;
}

.detail-value {
    color: #1e3a8a;
    font-weight: 600;
}

.next-steps {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: right;
}

.next-steps h4 {
    color: #92400e;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.next-steps ul {
    list-style: none;
    color: #92400e;
}

.next-steps li {
    padding: 5px 0;
    position: relative;
    padding-right: 20px;
}

.next-steps li:before {
    content: "•";
    position: absolute;
    right: 0;
    color: #f59e0b;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.print-button {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.print-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.3);
}

.home-button {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* Footer */
.footer {
    background: #1e3a8a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fbbf24;
}

.footer-section p,
.footer-section li {
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fbbf24;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    margin: 20px 0;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header fixes */
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
        gap: 10px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Hero section fixes */
    .hero {
        margin-top: 120px;
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .feature {
        padding: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature h3 {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    /* Services section fixes */
    .services {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* About section fixes */
    .about {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Form fixes */
    .form-container {
        margin: 140px auto 40px;
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .submit-button {
        padding: 15px;
        font-size: 1rem;
    }
    
    /* Verification fixes */
    .verification-container {
        margin: 140px auto 40px;
        padding: 40px 20px;
    }
    
    .verification-code {
        font-size: 1.5rem;
        padding: 15px;
        letter-spacing: 5px;
    }
    
    /* Footer fixes */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .form-title {
        font-size: 1.8rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .nav ul {
        gap: 8px;
    }
    
    .nav a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .verification-code {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Button Click Effects */
.submit-button:active,
.cta-button:active,
.resend-button:active {
    transform: scale(0.95);
}

/* Link Hover Effects */
a.submit-button,
a.cta-button {
    transition: all 0.3s ease;
}

a.submit-button:hover,
a.cta-button:hover {
    text-decoration: none;
}

