/* Basic Reset & Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Cairo", sans-serif;
    background-color: #fef3e0; /* Light cream background */
    direction: rtl; /* Right-to-left text */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: #fff; /* White container background */
    border: 3px solid #e5c99f; /* Tan border */
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    width: 100%;
    margin: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header Box Styles */
.header-box {
    background-color: #e5c99f; /* Tan background */
    color: #5c3d2e; /* Dark brown text */
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Price Box */
.price-box {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #b91c1c; /* Red color for price */
    margin-bottom: 25px;
    background-color: white;
    border-radius: 4px;
    padding: 2px;
}

/* Form Styling */
#order-form .form-group {
    margin-bottom: 15px;
}

#order-form label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #5c3d2e; /* Dark brown text */
    background-color: white;
    border-radius: 4px;
    padding: 2px;
}

#order-form input[type="text"],
#order-form input[type="tel"],
#order-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5c99f; /* Tan border */
    border-radius: 8px;
    font-size: 1em;
    background-color: #fff;
}
#order-form input:focus,
#order-form select:focus {
      border-color: #a0522d; /* Sienna */
      outline: none;
      box-shadow: 0 0 0 2px rgba(160, 82, 45, 0.2);
}


#order-form select {
    cursor: pointer;
}

#order-form small {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-top: 3px;
}


/* Submit Button */
.submit-button {
    background-color: #a0522d; /* Sienna background */
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #8b4513; /* Saddle Brown */
}
.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


/* Features Box */
.features-box {
    border: 2px solid #e5c99f; /* Tan border */
    border-radius: 8px;
    padding: 15px;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 15px; /* Gap between items */
    text-align: center;
    background-color: #fef9ef; /* Very light cream */
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em;
    color: #5c3d2e; /* Dark brown text */
}

.feature-item img {
    width: 40px; /* Adjust size as needed */
    height: 40px;
    margin-bottom: 8px;
}

/* Thank You Section Styles */
#thank-you-section {
    text-align: center;
}

.thank-you-header {
     background-color: #e5c99f; /* Tan background */
     margin-bottom: 20px; /* Add space below header */
}

.thank-you-text {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
    background-color: white;
    border-radius: 4px;
    padding: 2px;
}

.contact-info {
    margin-bottom: 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}
.contact-info span {
    display: block;
    margin-bottom: 10px;
    background-color: white;
    border-radius: 4px;
    padding: 2px;
}
.contact-info img {
    width: 16px; /* Adjust icon size */
    height: 16px;
    vertical-align: middle;
    margin: 0 5px;
}


.alt-contact-box {
    border: 2px solid #e5c99f; /* Tan border */
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #5c3d2e;
    background-color: #fef9ef;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-button {
    display: inline-flex; /* Use flex to align icon and text */
    align-items: center;
    justify-content: center; /* Center content */
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    transition: opacity 0.3s ease;
}
.contact-button img {
    width: 20px; /* Icon size */
    height: 20px;
    margin-left: 10px; /* Space between icon and text (since RTL, use left margin) */
}

.contact-button:hover {
    opacity: 0.9;
}

.phone-button {
    background-color: #d32f2f; /* Red */
    color: white; /* White text for contrast */
}
.phone-button img {
     filter: brightness(0) invert(1); /* Make red icon white if needed */
}


.whatsapp-button {
    background-color: #25D366; /* WhatsApp Green */
}

.facebook-button {
    background-color: #1877F2; /* Facebook Blue */
}

/* Status Message Styles */
#status-message {
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    display: none; /* Hidden by default */
}
#status-message.success {
    background-color: #d4edda; /* Green */
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
#status-message.error {
    background-color: #f8d7da; /* Red */
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}


/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .header-box {
        font-size: 1.1em;
    }

    .price-box {
        font-size: 1.3em;
    }

    .features-box {
        grid-template-columns: 1fr 1fr; /* Keep 2 columns on smaller screens */
        padding: 10px;
        gap: 10px;
    }
     .feature-item span {
         font-size: 0.8em;
     }
     .feature-item img {
         width: 35px;
         height: 35px;
     }

    .submit-button, .contact-button {
        font-size: 1em;
        padding: 12px 15px;
    }
}

@media (max-width: 400px) {
     .features-box {
        grid-template-columns: 1fr; /* Stack features vertically */
     }
}

/* --- Color Selection Styles --- */
.color-selection label {
    margin-bottom: 8px; /* زيادة الهامش قليلاً */
    font-weight: bold;
    color: #5c3d2e;
}

.color-options {
    display: flex; /* استخدام flex لترتيب الصور */
    flex-wrap: wrap; /* السماح بالالتفاف لأسطر جديدة */
    gap: 10px; /* المسافة بين الصور */
    justify-content: center; /* توسيط الصور إذا كان هناك مساحة */
    margin-bottom: 15px; /* هامش أسفل حاوية الصور */
    margin-top: 8px;
}

.color-option-img {
    width: 60px; /* حجم الصورة المصغرة */
    height: 60px;
    object-fit: cover; /* لضمان ملاءمة الصورة دون تشويه */
    border: 2px solid #e5c99f; /* حدود أولية */
    border-radius: 8px; /* حواف دائرية */
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.color-option-img:hover {
    transform: scale(1.05); /* تكبير طفيف عند المرور */
    border-color: #a0522d; /* تغيير لون الحدود عند المرور */
}

/* نمط الصورة المختارة */
.color-option-img.selected {
    border-color: #007bff; /* حدود زرقاء بارزة للصورة المختارة */
    transform: scale(1.1); /* تكبير أكثر للصورة المختارة */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); /* ظل أزرق حول المختارة */
}
/* --- نهاية Color Selection Styles --- */