/* Reset body margin and padding */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: url('WhatsApp\ Image\ 2025-01-11\ at\ 10.47.43_8491f895.jpg') no-repeat center;
    
    background-size: cover; /* تجعل الصورة تغطي العنصر بالكامل */
    background-repeat: no-repeat; /* تمنع تكرار الصورة */
    background-position: center;
    font-size: 1.1em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Section */
.header {
    color: white;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.2;
    padding: clamp(20px, 5vw, 50px);
    background: linear-gradient(135deg, #3b8b3a, #2e493a);
    background-size: cover;
    text-align: center;
    border-radius: 00px;
    width: 100%;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0;
    color: white;
}

.header p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-top: 10px;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #3b8b3a;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    z-index: 10;
    text-align: center;
}

.language-selector:hover {
    background-color: #2e493a;
}

/* Language Menu */
.language-menu {
    display: none;
    position: fixed;
    top: 65px;
    right: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 9;
}

.language-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-menu li {
    padding: 12px 18px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.language-menu li:hover {
    background-color: #f4f4f4;
}

/* Form Styling */
.form-container {
    max-width: 900px;
    margin: 60px auto;
    font-size: clamp(1rem, 4vw, 1.5rem);
    background-color: hsla(120, 60%, 0%, 0.4);
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
}

.form-container h2 {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Input Fields */
input,
select,
button {
    width: 50%;
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

input:focus,
select:focus {
    outline: none;
    border-color: #3b8b3a;
}

button {
    background: linear-gradient(135deg, #3b8b3a, #2e493a);
    border-radius: 500px;
    color: white;
    border: none;
    cursor: pointer;
    font-size: clamp(1rem, 4vw, 1.5rem);
    padding: 15px;
    transition: background-color 0.3s ease;
    width: 30%;
    margin-left: auto;
    margin-right: auto;
}

button:hover {
    background-color: #3b8b3a;
}

/* Length and total cost display */
#length-cost,
#total-cost {
    font-size: clamp(1rem, 4vw, 1.5rem);
    color: white;
    margin-top: 20px;
    text-align: center;
}

/* Website Button */
.website-btn button {
    background-color: #2e493a;
    padding: 15px;
    font-size: clamp(1rem, 4vw, 1.5rem);
    cursor: pointer;
    width: auto;
    color: white;
    border: none;
    border-radius: 500px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.website-btn button:hover {
    background-color: #3b8b3a;
}

/* Responsive Layout */
    @media (max-width: 768px) {
        .header h1 {
            font-size: 2rem; /* تعديل حجم العنوان للأجهزة الأصغر */
        }

        .header p {
            font-size: 1.2rem;
        }

        input, button {
            width: 60%;
        }
        
            .language-selector {
                padding: 8px 15px;
                font-size: 1em;
        }
        .form-container {
            margin: 60px auto;
            font-size: clamp(1rem, 4vw, 1.5rem);
            width: 80%;
        }

        .form-container h2 {
            font-size: clamp(1rem, 4vw, 1.5rem);
            width: 100%;

    }


    @media (max-width: 480px) {
        .header h1 {
            font-size: 1.8rem; /* تقليص حجم العنوان للموبايلات */
        }

        .header p {
            font-size: 1rem;
        }

        .input, button {
            width: 60%;
        }
        .language-selector {
            padding: 8px 15px;
            font-size: 1em;
        }
        .form-container {
            margin: 60px auto;
            font-size: clamp(1rem, 4vw, 1.5rem);
            width: 80%;
        }

        .form-container h2 {
            font-size: clamp(1rem, 4vw, 1.5rem);
            width: 100%;
        }
    }
}
