/* Reset some default styling */
body, h1, h2, h3, h4, h5, h6, p, label, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Rubik1;
    direction: rtl;
    text-align: right;
}

/* Ensure RTL layout and prevent horizontal scroll */
.page, .contact_form {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Style the page header */
.page_header {
    background-color: #00aa55;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Style the page title */
.page_header_left h1.page_title {
    font-size: 24px;
    margin: 0;
    font-weight: normal; /* Changed from bold to normal */
}

/* Style the breadcrumb */
.page_header_right .bread_crumb {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page_header_right .bread_crumb li {
    display: inline;
    margin-left: 10px;
}

.page_header_right .bread_crumb li a {
    color: white;
    text-decoration: none;
}

.page_header_right .bread_crumb li a:hover {
    text-decoration: underline;
}

/* Style for the box header */
.box_header {
    text-align: center;
    font-size: 20px;
    color: #00aa55; /* Preferred color for headings */
    margin-bottom: 15px;
    border-bottom: 2px solid #00aa55; /* Optional: adds a line below the heading */
    padding-bottom: 10px;
    font-weight: normal; /* Changed from bold to normal */
}
/* Style radio buttons and their labels */
/* CSS */
.styled-fieldset {
    border-top: 2px solid dimgrey;
    padding: 10px;
    margin: 20px 0; /* Add some margin for spacing */
    border-radius: 8px; /* Rounded corners for a softer look */
    background-color: #f9f9f9; /* Light background color */
}

.styled-fieldset .block {
    margin: 10px 0; /* Add margin between elements within the block */
}

.styled-fieldset label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px; /* Space between label and textarea */
    color: #333; /* Dark text color for readability */
}

.styled-textarea {
    width: 100%; /* Full width */
    height: 120px; /* Adjust height as needed */
    padding: 10px;
    border: 1px solid #ccc; /* Light border */
    border-radius: 4px; /* Rounded corners for the textarea */
    resize: vertical; /* Allow vertical resizing only */
    font-size: 16px; /* Adjust font size */
    line-height: 1.5; /* Improve readability */
    background-color: #fff; /* White background color */
}

.styled-textarea:focus {
    border-color: #00aa55; /* Highlight border color on focus */
    outline: none; /* Remove default outline */
}

.radio-group {
    margin-bottom: 10px;
    display: flex; /* Align items in a row */
    align-items: center; /* Align vertically in the center */
    justify-content: flex-end; /* Align items to the right */
    gap: 10px; /* Space between different radio/check options */
    flex-direction: row-reverse; /* Reverse the direction to align the label first */
}

/* Adjust the margins for proper spacing */
.radio-group input[type="radio"],


/* Ensure the label comes before the input */
.radio-group label {
    margin-left: 5px; /* Adjust margin if needed */
}

/* Style for instructions */
.instructions {
    text-align: center;
    font-size: 14px;
    color: black; /* Color for the instruction text */
    margin: 10px;
    border: 1px solid #ed1c24; /* Adds a border to the instruction */
    padding: 10px;
    border-radius: 4px; /* Rounded corners for the border */
    background-color: #fff5f5; /* Light red background for better visibility */
}

/* Style for the contact form */
.contact_form {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9; /* Light background for the form */
    max-width: 800px; /* Limits the width of the form on larger screens */
    width: 100%; /* Ensures the form is responsive */
    margin: 0 auto; /* Center the form horizontally */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for a 3D effect */
    overflow: hidden; /* Prevent content overflow */
}

/* Style for form fields */
.contact_form fieldset {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Style for labels */
.contact_form label {
    display: block;
    font-weight: normal; /* Changed from bold to normal */
    margin-bottom: 5px;
    color: #333;
}

/* Style input fields */
.contact_form input[type="text"],
.contact_form input[type="number"],
.contact_form input[type="email"],
.contact_form input[type="file"],
.contact_form input[type="checkbox"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

/* Style radio buttons and their labels */
.radio-group {
    margin-bottom: 10px;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

.radio-group label {
    margin-right: 20px;
}

/* Style alert messages */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #dff0d8; /* Light green for success */
    color: #3c763d;
}

.alert.bg-red {
    background-color: #f2dede; /* Light red for errors */
    color: #a94442;
}

/* Style for submit button */
.contact_form button {
    background-color: #00aa55;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.contact_form button:hover {
    background-color: #008c45; /* Slightly darker green for hover effect */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .instructions {
        font-size: 16px; /* Adjust font size for smaller screens */
        padding: 10px; /* Adjust padding for smaller screens */
    }
    .contact_form {
        padding: 15px;
    }

    .contact_form input[type="text"],
    .contact_form input[type="number"],
    .contact_form input[type="email"],
    .contact_form input[type="file"] {
        font-size: 16px;
    }
}
