.benefit_main_wrapper{
  background-color: var(--background-color);
}
.benefit_header_image{
    width: 100%;
    max-height: 370px;
    object-fit: cover;
}
.benefit_title{
    color: var(--black-color);
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 30px;
    margin-top: 20px;
    text-align: center;
}
.benefit_title_green{
    color: var(--green-color);
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 30px;
    margin-top: 30px;
    text-align: center;
}
.benefit_subtitle{
    font-size: 22px;
    color: var(--black-color);
    font-family: var(--font-main);
    text-align: center;
}
.benefit_selector_container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
}
.benefit_selector_grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    grid-template-rows: repeat(2, 1fr); /* 2 rows */
    gap: 50px;
}
.benefit_club_img{
  box-shadow: 0 0 0 2px rgba(100, 100, 255, 0.2);
}
.benefit_selector_grid img{
    width: 240px;
    height: 120px;
    max-height: 250px;
    border-radius: 10px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.benefit_selector_grid img:hover {
    transform: scale(1.05);
}
.benefit_dropdown_wrapper{
    width: 350px; 
    margin: 20px auto;
}
.benefit_dropdown {
  width: 100%;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 16px;
  color: var(--black-color);
  background-color: var(--background-color);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: left 12px center !important;
  padding: 12px 16px 12px 40px; /* add left padding for arrow space */
  background-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  direction: rtl;
  cursor: pointer;
}
.benefit_dropdown:hover {
  border-color: #888;
}
.benefit_dropdown:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 0 2px rgba(100, 100, 255, 0.2);
}
.benefit_result_image {
  text-align: center;
  margin-bottom: 60px;
}
.benefit_result_image img {
  width: 200px;
  border-radius: 10px;
  border: 1px solid var(--black-color);
}
.manually_benefit_section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.automatically_benefit_section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.benefit_explanation_section{
  width: 80%;
  max-width: 600px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  direction: rtl;
}
.benefit_explanation{
  font-size: 20px;
  color: var(--black-color);
  font-family: var(--font-main);
  text-align: center;
  align-self: center;
}
.benefit_form {
  width: 80%;
  max-width: 600px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  direction: rtl;
}
.form_row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form_row.two_cols {
  flex-direction: row;
  gap: 20px;
}

.form_row.two_cols input {
  flex: 1;
}

/* Inputs and Dropdowns */
.benefit_form input,
.benefit_dropdown_wrapper select,
.benefit_form textarea,
.benefit_form select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 25px;
  border: 1px solid #ccc;
  font-size: 16px;
  font-family: var(--font-main);
  color: #333;
  background-color: #fff;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Dropdown arrow (RTL-friendly) */
.benefit_form select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 18px;
  padding-left: 40px;
}

/* Hover and Focus states */
.benefit_form input:hover,
.benefit_form textarea:hover,
.benefit_form select:hover {
  border-color: #888;
}

.benefit_form input:focus,
.benefit_form textarea:focus,
.benefit_form select:focus {
  outline: none;
  border-color: var(--pink-color);
  box-shadow: 0 0 0 2px rgba(255, 100, 150, 0.2);
}
.benefit_form textarea {
  resize: vertical;
  min-height: 120px;
  border-radius: 20px;
}
/* Submit Button */
.benefit_form_button {
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  background-color: var(--black-color);
  color: var(--background-color);
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  min-height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}
.benefit_form_button:hover {
  background-color: var(--background-color);
  color: var(--black-color);
  border: 1px solid var(--black-color);
}
.benefit_product_section{
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
}
.benefit_product_left_section{
  height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}
.benefit_product_right_section{
  height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: start;
  align-items: right;
}
.benefit_product_title{
    color: var(--black-color);
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 20px;
    text-align: right;
}
.benefit_product_subtitle{
    color: var(--black-color);
    font-family: var(--font-main);
    font-weight:normal;
    font-size: 20px;
    text-align: right;
}
.benefit_quantity_control_wrapper{
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: start;
    margin-top: 15px;
}
.benefit_quantity_control {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  border-radius: 15px;
  border: 1px solid var(--black-color);
}
.benefit_product_img {
  width: 90%;
  height: 90%;
}
.benefit_main_code_section{
  height: 60px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  width: 600px;
  margin: 20px auto;
}
.benefit_main_code_field{
  height: 100%;
  display: flex;
  flex: 9;
  justify-content: center;
  align-items: center;
}
.benefit_main_code_section_button{
  height: 100%;
  display: flex;
  flex: 3;
  justify-content: center;
  align-items: center;
}
.benefit_main_code_button {
  border-radius: 30px;
  border: none;
  background-color: var(--black-color);
  color: var(--background-color);
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  width: 100%;
  margin-right: 10px;
}
.benefit_main_code_button:hover {
  background-color: var(--background-color);
  color: var(--black-color);
  border: 1px solid var(--black-color);
}
/* Inputs and Dropdowns */
.benefit_main_code_field input{
  width: 100%;
  height: 60px;
  margin-top: 0px;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-size: 16px;
  font-family: var(--font-main);
  color: #333;
  background-color: #fff;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  direction: rtl;
}
/* Hover and Focus states */
.benefit_main_code_field input:hover{
  border-color: #888;
}
.benefit_main_code_field input:focus{
  outline: none;
  border-color: var(--pink-color);
  box-shadow: 0 0 0 2px rgba(255, 100, 150, 0.2);
}
.benefit_automatically_product_section{
  height: 150px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  width: 350px; 
  margin: 20px auto;
}