*{
    font-family: system-ui, Georgia, 'Times New Roman', Times, serif;
    font-size: 12px !important;
}
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    direction: rtl; 
}

.form-container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
}

header {
    display: flex !important;
    flex-direction: column;
    align-items:center !important;
}

header img{
    width: 200px;
}

h2 {
    margin-top: 0;
    text-align: center;
    font-size: 20px !important;
    padding: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
}

button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 0 auto; 
}

button:hover {
    background-color: #0056b3;
}

#price-info {
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: center;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content:space-between;
}

.product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 4px;
}

.product-image.selected {
    border-color: #023e7f;
}
.selected-image{
    width: 200px !important;
}

.actions{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

fieldset {
    border: 1px solid #ebe7e7;
    margin-bottom: 30px;
    padding-top: 10px;
    padding-bottom: 20px;
}

fieldset legend{
    background-color: #ebe7e7;
    padding: 5px 30px;
    border-radius: 12px;
    font-weight: bolder;
    font-size: 12px !important;
}

fieldset legend span{
    font-weight: normal !important;
    font-size: 12px !important;
}
fieldset.danger legend span{
    color: red;
}
fieldset.success legend span{
    color: green;
}

html, body {
    -webkit-text-size-adjust: 100%; /* تعطيل التكبير التلقائي */
}
@supports (-webkit-touch-callout: none) {
    /* استهداف iOS Safari */
    select, option {
        font-size: 16px; /* حجم الخط الافتراضي لتجنب مشاكل التكبير */
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

