@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

html {
    scroll-behavior: smooth;
}

 /* Improved CSS for Rate Us Page */
 body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }

  .bodys {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 80vh;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    width: 100vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .card h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
  }

  .fa-house {
    color: #f76c6c;
    font-size: 24px;
    text-decoration: none;
    margin-bottom: 10px;
  }

  .star {
    font-size: 40px;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s;
  }

  .star {
    font-size: 30px;
    cursor: pointer;
    color: #ccc; /* Default color for unselected stars */
  }

  .star.hovered,
  .star.active {
    color: #f76c6c; /* Color for hovered or active stars */
  }


  #output {
    font-size: 18px;
    color: #333;
    margin-top: 10px;
  }

  #ratingForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  #reviewInput {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    min-height: 100px;
    margin-bottom: 15px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
  }

 .submit-btn[type="submit"] {
    background-color: #f76c6c;
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .submit-btn[type="submit"]:hover {
    background-color: #e05b5b;
  }

  #popup {
    display: none;
    background-color: #4caf50;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
  }

  main {
    max-width: 1000px;
    margin: 40px auto;
  }

  main h1 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
  }

  .slider {
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }

  .slide-row {
    display: flex;
    transition: transform 0.3s ease-in-out;
  }

  .slide-col {
    flex: 1;
    margin-right: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .slide-col .content {
    max-width: 60%;
  }

  .slide-col h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
  }

  .slide-col p {
    font-size: 14px;
    color: #555;
  }

  .hero img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
  }

  .indicator {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  .indicator .btn {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .indicator .btn.active {
    background-color: #f76c6c;
  }

  .indicator .btn:hover {
    background-color: #e05b5b;
  }

@media (max-width: 850px) {
    main {
        width: 500px;
    }

    .slide-row {
        width: 2000px;
    }

    .slide-col {
        width: 500px;
        height: 250px;
    }

    .hero img {
        width: 200px;
    }

    .content {
        width: 320px;
        height: 200px;
        padding: 20px;
    }

    .content p {
        font-size: 0.9rem;
    }

    .content h2 {
        font-size: 1.2rem;
        margin-top: 20px;
    }
}

@media (max-width: 550px) {
    main {
        width: 300px;
    }

    .slide-row {
        width: 1200px;
    }

    .slide-col {
        width: 500px;
        height: 300px;
    }

    .hero {
        top: 60%;
        height: 100px;
        z-index: 5;
    }

    .hero img {
        width: 100px;
    }

    .content {
        width: 300px;
    }

    main h1 {
        margin-top: 10px;
        margin-bottom: 0px;
    }
}

@media only screen and (max-width: 455px) {
    .card {
        max-width: 20rem;
        margin-top: 20px;
        padding: 0.5rem;
        font-size: 14px;
    }

    .card a {
        top: 5px;
        right: 5px;
    }

    #ratingForm #reviewInput {
        width: 250px;
        height: 100px;
    }

    button {
        width: 30%;
        height: 30px;
    }

    h1 {
        margin: 10px;
    }
}


