/* Variables */
:root {
    --primary-color: #062f75;
    --accent-color: #40bded;
    --yellow: #FFD700;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-image: url('src/Design--Landing-page-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    direction: rtl;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(6, 47, 117, 0.92),
        rgba(6, 47, 117, 0.85)
    );
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header-wrapper {
    width: 100%;
    max-width: 500px;
    margin-top: 1rem;
}

.header-container {
    background: #fff;
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: var(--shadow-md);
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Form Section */
.main-header {
    width: 100%;
    max-width: 500px;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.right-section {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 0.5rem;
}

.form-group {
    margin-bottom: 0.8rem;
    width: 100%;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

#surveyForm {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--primary-color);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
    cursor: pointer;
}

select.form-control option {
    padding: 0.8rem;
    font-size: 1rem;
    color: var(--text-color);
    background-color: white;
}

select.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(231, 65, 150, 0.2);
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Submit Button Styles */
.submit-btn {
    background: linear-gradient(45deg, var(--primary-color), #f06292);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 65, 150, 0.2);
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 65, 150, 0.3);
    background: linear-gradient(45deg, #f06292, var(--primary-color));
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(231, 65, 150, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Error Messages */
.error-message {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group input.error,
.form-group select.error {
    border-color: #f44336;
}

/* Success Message Animation */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

.success-message,
.error-message-popup {
    font-family: inherit;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Form Title */
.form-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.form-title h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #f06292);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #f06292, var(--primary-color));
    right: -50px;
    border-radius: 2px;
}

.title-underline::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: linear-gradient(to left, #f06292, var(--primary-color));
    left: -50px;
    border-radius: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-title {
        margin-bottom: 1.5rem;
    }

    .form-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .form-title {
        margin-bottom: 1.2rem;
    }

    .form-title h2 {
        font-size: 1.5rem;
    }

    .title-underline {
        width: 50px;
    }

    .title-underline::before,
    .title-underline::after {
        width: 30px;
        left: -40px;
    }

    .title-underline::after {
        right: -40px;
        left: auto;
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    body {
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .container {
        padding: 0.8rem;
        gap: 1rem;
    }

    .header-wrapper {
        margin-top: 0.5rem;
    }

    .header-container,
    .form-section {
        border-radius: 10px;
    }

    .form-container {
        padding: 0.8rem;
    }

    select.form-control {
        background-position: left 0.8rem center;
        padding-left: 2rem;
    }
    
    select.form-control option {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 0.7rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0.5rem;
    }

    .header-container,
    .form-section {
        border-radius: 8px;
    }

    .form-container {
        padding: 0.7rem;
    }

    select.form-control {
        background-position: left 0.6rem center;
        padding-left: 1.8rem;
    }
    
    select.form-control option {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 0.8rem;
    }
    
    .right-section {
        padding: 0;
    }
    
    .form-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 1.2rem;
    }
    
    .form-container {
        padding: 0;
    }
}

/* Social Message Section */
.social-message-section {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.message-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.message-subtext {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    width: auto;
    min-width: 80px;
    padding: 0.5rem;
}

.social-link:hover {
    transform: translateY(-3px);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    color: white;
}

.instagram .icon-circle {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.2);
}

.facebook .icon-circle {
    background: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.2);
}

.whatsapp .icon-circle {
    background: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.location .icon-circle {
    background: #ea4335;
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.2);
}

.social-link span {
    font-size: 0.85rem;
    text-align: center;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.social-link:hover .icon-circle {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        min-width: 80px;
    }
    
    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .social-link span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.5rem;
        gap: 0.8rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .social-links::-webkit-scrollbar {
        display: none;
    }
    
    .social-link {
        flex: 0 0 auto;
        min-width: 70px;
    }
    
    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .social-message-section {
        margin: 1.5rem auto;
    }

    .message-box {
        padding: 1.5rem;
    }

    .message-text {
        font-size: 1.2rem;
    }

    .message-subtext {
        font-size: 1rem;
    }

    .social-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .message-logo {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .social-message-section {
        margin: 1rem auto;
    }

    .message-box {
        padding: 1.2rem;
    }

    .message-text {
        font-size: 1.1rem;
    }

    .message-subtext {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .message-logo {
        width: 90px;
        height: 90px;
        border-width: 2px;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
}

/* Logo Container Styles */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 2s infinite;
}

.message-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 
        0 0 0 4px var(--primary-color),
        0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.message-logo:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 0 4px var(--primary-color),
        0 12px 25px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.15;
    }
    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

@media (max-width: 768px) {
    .message-logo {
        width: 120px;
        height: 120px;
    }
    
    .logo-container::before {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 480px) {
    .message-logo {
        width: 110px;
        height: 110px;
        border-width: 3px;
    }
    
    .logo-container::before {
        width: 120px;
        height: 120px;
    }
}

/* Announcement Bar */
.announcement-bar {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(45deg, #FFD700, #FFC107);
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    z-index: 1;
}

.announcement-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0.5rem;
}

.announcement-content p {
    margin: 0;
    color: #000;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
    .announcement-bar {
        margin: 0 1rem;
    }
    
    .announcement-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .announcement-content p {
        font-size: 0.9rem;
    }
}

/* Thank You Section Styles */
.thank-you-content {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.thank-you-title {
    color: #e74196;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thank-you-subtitle {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.message-text {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0;
}

.message-subtext {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-link i {
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .thank-you-title {
        font-size: 2rem;
    }

    .thank-you-subtitle {
        font-size: 1.2rem;
    }

    .message-text {
        font-size: 1.1rem;
    }

    .message-subtext {
        font-size: 1rem;
    }

    .social-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #e74196 0%, #ff8a00 100%);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    margin-top: 3rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.company-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.company-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.company-link i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* تحسين التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
    }

    .footer-text {
        font-size: 1rem;
    }

    .company-link {
        font-size: 1.1rem;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

/* تنسيقات رسالة التحميل */
.loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    flex: 1;
    min-width: auto;
    padding: 0.5rem;
}

.social-link:hover {
    transform: translateY(-3px);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    color: white;
}

.instagram .icon-circle {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.2);
}

.facebook .icon-circle {
    background: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.2);
}

.whatsapp .icon-circle {
    background: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.location .icon-circle {
    background: #ea4335;
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.2);
}

.social-link span {
    font-size: 0.85rem;
    text-align: center;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.social-link:hover .icon-circle {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .social-links {
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .icon-circle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .social-link span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 0.3rem;
        padding: 0;
        margin-top: 1rem;
    }
    
    .social-link {
        padding: 0.3rem;
    }
    
    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .social-link span {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .social-links {
        gap: 0.2rem;
    }
    
    .icon-circle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .social-link span {
        font-size: 0.7rem;
    }
}

/* Hide dropdown arrow from datalist input */
input[list="cityList"]::-webkit-calendar-picker-indicator {
    display: none !important;
}

input[list="cityList"] {
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    appearance: textfield;
}