body {
    margin: 0;
    height: 100vh; /* the page take up full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a3176;
}

.container {
    direction: ltr;
    width: 80%;
    max-width: 1200px;
    height: 60%;
    display: flex;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); /* box shadow */
    background-color: #fff;
    border-radius: 10px; /* Rounded corners */
}

.left-section, .right-section {
    direction: rtl;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 90px 40px;
}

.vertical-line {
    width: 2px;
    background-color: #ccc;
    margin: 20px 0; /* some margin */
}

.description {
    font-family: 'Vazirmatn';
    text-align: center;
    direction: rtl;
    line-height: 1.6;
    margin-bottom: 30px;
    margin-right: 30px;
    margin-left: 30px;
    margin-top: 0;
    font-size: 1.1rem;
}

form {
    display: flex;
    margin: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    position: relative; /* Make the form a positioning context */
}

.input-group {
    flex-direction: row-reverse;
    display: flex;
    align-items: center;
    width: 70%;
    justify-content: center;
}

#phone-number {
    font-family: 'Vazirmatn';
    text-align: center;
    direction: rtl;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 70%; /* Adjustable */
    max-width: 300px;
    font-size: 1rem;
    margin: 0;
}

#submit-button {
    font-family: 'Vazirmatn';
    direction: rtl;
    padding: 12px 20px;
    background-color: #129506;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer; /* looks like a clickable button */
    margin-right: 10px; /* space between input and button */
}

#submit-button:hover {
    background-color: #0056b3;
}

.brand-info {
    display: flex;
    align-items: center;
}

.logo {
    width: 400px; /* Adjustable */
    height: auto;   
    margin-right: 1%;
}

.tagline {
    font-family: 'Vazirmatn';
    text-align: center;
    font-size: 1.5rem;
}

.input-group {
    display: flex;
    align-items: center;
    width: 70%;
    /* Adjustable*/
    justify-content: center;
}

input.error {
    border: 2px solid red;
}

#error-message {
    color: red;
    position: absolute; /* Absolute positioning */
    top: 100%; /* Position below the input group */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for centering */
    margin-top: 5px; /* Adjust vertical spacing as needed */
    font-family: 'Vazirmatn';
    text-align: center;
    font-size: 0.8em;
    display: none; /* Initially hidden */
}

#error-message.show {
    display: block; /* Shown when needed */
}

#success-popup {
    position: fixed;
    direction: rtl;
    font-family: 'Vazirmatn';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 10px; /* Rounded corners */
  }
  
  #close-popup {
    padding: 8px 15px;
    font-family: 'Vazirmatn';
    background-color: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px; /* Rounded corners */
  }

  #backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    backdrop-filter: blur(5px); /* Apply the blur effect */
    -webkit-backdrop-filter: blur(2px); /* For Safari */
    z-index: 999; /* Make sure it's above the main content but below the pop-up */
    display: none; /* Initially hidden */
  }

 /* SEO Fixes - Minimal Visual Impact */
.seo-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.seo-nav, .seo-footer {
  position: fixed;
  width: 100%;
  padding: 8px;
  text-align: center;
  font-family: 'Vazirmatn';
  z-index: 100;
  background: rgba(10, 49, 118, 0.9);
}

.seo-nav { top: 0; }
.seo-footer { bottom: 0; }

.seo-nav a, .seo-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.85rem;
  opacity: 0.9;
}

.seo-nav a:hover, .seo-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

  @media (max-width: 1250px) {
    .container {
      flex-direction: column; /* Stack sections vertically */
      height: auto; /* Adjust height to auto */
      width: 70%;
    }

    /* For arranging the right section on top */
    .right-section {
      order: -1;
    }
  
    .left-section, .right-section {
      width: 100%; /* Both sections take full width */
      padding: 20px; /* Consistent padding for both sections */
      box-sizing: border-box; /* Include padding in width calculation */
    }
      
    .description {
        margin-bottom: 15px;
        margin-right: 10px;
        margin-left: 10px;
        margin-top: 0px;
    }

    .input-group {
      flex-direction: column;
      align-items: center;
    }
  
    #phone-number {
      width: 100%;
      order: 1; /* Input appears first */
    }
  
    #submit-button {
      width: 100%;
      margin-right: 0;
      margin-top: 10px;
      order: 2; /* Button appears second */
    }

    .vertical-line {
      display: none; /* Hide the vertical line */
    }
  
    .brand-info {
      flex-direction: column; /* Stack logo and brand name vertically */
    }
  
    .logo {
        max-width: 400px; /* Same maximum width */
        width: 80%; /* Adjust width for smaller screens */
    }
  
    .tagline {
      font-size: 1.1rem; /* Adjust tagline font size */
      text-align: center;
    }

    .left-section {
        padding-top: 20px; /* Add padding above the line */
        width: 100%; /* Make sure the left section takes full width */
        margin-left: 0; /* Reset margins to zero */
        margin-right: 0; /* Reset margins to zero */
    }

    .horizontal-line {
      width: calc(100% - 40px); /* 40px total padding (20px left + 20px right) */
      border: none;
      margin-left: 20px auto; /* Center the line */
      margin-right: 20px auto;
      margin-bottom: 0px;
      border-top: 2px solid #ccc;
    }
  }
