* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #fff1f1;
    position: relative;
    overflow-x: hidden;
    
} 



/*--------------------------------------------enrollnow-------------------------------------*/

.eight {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin-top: 95px;
}

.form-container {
    width: 100%;
    max-width: 800px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-header {
    background-color: #ff0000;
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.form-header:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #ff0000;
}

.form-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 20px;
}

.form-content {
    padding: 40px 20px 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-col {
    flex: 1;
}

label {
    display: block;
    font-size: 24px;
    color: #999;
    margin-bottom: 10px;
}

.required:after {
    content: " *";
    color: red;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #a70000;
}

.success-message {
    display: none;
    background-color: #2ecc71;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 18px;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}  
    
    
    /* form {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        max-width: 500px;
        margin: auto;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
      }
      input, select, textarea {
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
      }
      button {
        margin-top: 15px;
        padding: 10px;
        background-color: #28a745;
        color: white;
        border: none;
        width: 100%;
        font-size: 16px;
        border-radius: 5px;
      } */

/*----------------------------------------------------media query---------------------------------------------------*/


/*--------------------------------------------enrollnow query-------------------------------------*/

/* Large screens (desktops) */
@media screen and (min-width: 1200px) {
    .form-container {
      max-width: 1000px;
    }
    
    .form-header h1 {
      font-size: 42px;
    }
    
    .form-header p {
      font-size: 22px;
    }
  }
  
  /* Medium screens (tablets) */
  @media screen and (max-width: 768px) {
    .form-container {
      max-width: 90%;
    }
    
    .form-header h1 {
      font-size: 30px;
    }
    
    .form-header p {
      font-size: 18px;
    }
    
    .form-row {
      flex-direction: column;
      gap: 10px;
    }
    
    label {
      font-size: 20px;
    }
    
    button {
      font-size: 20px;
    }
  }
  
  /* Small screens (mobile) */
  @media screen and (max-width: 480px) {
    .eight {
      padding: 10px;
      margin-top: 60px;
    }
    
    .form-container {
      max-width: 100%;
    }
    
    .form-header {
      padding: 20px 15px;
    }
    
    .form-header h1 {
      font-size: 24px;
    }
    
    .form-header p {
      font-size: 16px;
    }
    
    .form-content {
      padding: 30px 15px 15px;
    }
    
    label {
      font-size: 18px;
      margin-bottom: 5px;
    }
    
    input {
      padding: 10px;
      font-size: 14px;
    }
    
    button {
      padding: 12px;
      font-size: 18px;
    }
  }
