/* General Styling */
body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #e0f7ff, #90d4f7);
    color: #1a1a1a;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    background: #f0fbff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #66bfff, #1e90ff);
    color: white;
    padding: 30px;
    text-align: center;
    border-bottom: 5px solid #5ab1e8;
}

.header h1 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 3.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    animation: fadeIn 2s ease-in-out;
}

.header p {
    position: relative;
    font-size: 1.2rem; /* حجم خط مناسب */
    font-weight: 500; /* سمك خط متوسط */
    color: rgba(255, 255, 255, 0.9); /* لون أبيض شفاف */
    text-align: center; /* محاذاة النص في المنتصف */
    padding: 10px 20px; /* مسافة داخلية */
    border-radius: 8px; /* حواف ناعمة */
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(102, 191, 255, 0.2)); /* خلفية شفافة */
    display: inline-block; /* ليظهر ككتلة مستقلة */
    overflow: hidden; /* لإخفاء العناصر الخارجة عن الإطار */
}

.header p::before,
.header p::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fbc2eb);
    animation: animateLine 4s linear infinite;
}

.header p::before {
    top: 0; /* الخط العلوي */
    left: 0;
}

.header p::after {
    bottom: 0; /* الخط السفلي */
    left: 0;
}

.header p::nth-of-type(1)::after {
    animation-delay: 2s;
}

@keyframes animateLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}


.form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #062855;
    font-size: 1.1rem;
    letter-spacing: 1px;
    animation: labelFocus 1.5s ease-in-out;
}

/* تصميم الحقل الأساسي */
/* التصميم الأساسي للحقل */
.form-group select {
    position: relative;
    width: 60%;
    max-width: 300px;
    padding: 10px 15px;
    font-size: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #1e90ff, #66bfff); /* الأزرق الافتراضي */
    border: none;
    border-radius: 25px;
    box-shadow: 0 8px 15px rgba(30, 144, 255, 0.2); /* ظلال زرقاء */
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-clip: padding-box;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* سهم الحقل */
.form-group select::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #ffffff;
}

/* التأثير عند التمرير */
.form-group select:hover {
    background: linear-gradient(135deg, #66bfff, #1e90ff); /* الأزرق عند التمرير */
    box-shadow: 0 10px 20px rgba(30, 144, 255, 0.4);
}

/* تصميم الخيارات */
.form-group select option {
    background: linear-gradient(135deg, #f0f8ff, #b0e0e6);
    color: #1a1a1a;
    padding: 10px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease;
}



.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #90d4f7;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #e6f7ff;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1e90ff;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #1e90ff, #66bfff);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #66bfff, #1e90ff);
    transform: translateY(-3px);
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    color: #1a1a1a;
    background: #f0fbff;
    border-top: 5px solid #5ab1e8;
}

.language-selector {
    margin-top: 15px;
    text-align: center;
}

.language-selector label {
    font-size: 1rem;
    color: #e6f7ff;
    margin-right: 10px;
    font-weight: bold;
}

.language-selector select {
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 5px;
    background: linear-gradient(135deg, #1e90ff, #66bfff);
    color: #5c5454;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    background: linear-gradient(135deg, #66bfff, #1e90ff);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}


/* Popup Modal */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease-in-out;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: scaleUp 0.3s ease-in-out;
}

.popup-content p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}
.popup-content h2 {
    font-size: 1.2rem;
    color: #3cff00;
    margin-bottom: 15px;
}

.btn-close {
    padding: 10px 20px;
    background: linear-gradient(135deg, #28ac0d, #00ff9d);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-close:hover {
    background: linear-gradient(135deg, #707274, #13770a);
}

/* Loading Overlay */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease-in-out;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading p {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* زر اللصق */
.btn-paste {
    padding: 10px 15px;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, #4b82b98c, #000000a4);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-paste:hover {
    background: linear-gradient(135deg, #66bfff, #1e90ff);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* تصميم زر معطل */
.btn-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
}
