* {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  background-color: white;
  color: #333;
  padding-top: 50px;
}
.header {
  background-color: #375ab0;
  color: white;
  width: 100%;
  height: 50px;
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.header p {
  font-size: 24px;
  margin: 0;
}
.header a {
  text-decoration: none;
  color: white;
}
.home {
  display: flex;
  flex-direction: column;
  padding: 70px 30px;
  justify-content: center;
}
.text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.home-content h1 {
  font-size: 64px;
  font-weight: 700;
  color: black;
}
.home-content h1 span {
  color: #375ab0;
}
.home-content p {
  font-size: 24px;
  color: #313a45;
}

.smallbtn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #375ab0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  border-radius: 16px;
  height: 40px;
  padding: 0 24px;
  width: 130px;
  box-sizing: border-box;
}

.btn {
  border-radius: 12px;
  width: 150px;
  font-weight: 500;
  font-size: 12px;
}

.smallbtn:hover,
.smallbtn:focus,
.btn:hover,
.btn:focus {
  background-color: #274080;
  color: #fff;
  text-decoration: none;
}
/* ...existing code... */
/* ...existing code... */
.analysis {
  display: flex;
  background-color: #375ab0;
  width: auto;
  height: 150px;
  align-items: center;
  justify-content: center;
  padding-right: 30px;
  padding-left: 100px;
  /* justify-content: space-between; */
}
.analysis-title {
  color: black;
  width: 125px;
  height: 62px;
  background-color: #eef0ff;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  transform: rotate(270deg); /* Added rotation */
}
.analysis-title h2 {
  font-size: 18px;
  font-weight: 700;
  color: #375ab0;
  /* margin-top: 16px; */
}
.analysis-title p {
  font-size: 16px;
  font-weight: 500;
  color: #375ab0;
  /* margin-top: 16px; */
}
.circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #eef0ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.analysis-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 100px;
  width: 100%;
}
.analysis-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.analysis-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.analysis-text h3 {
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
}
.analysis-text p {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}
.open-popup {
  padding: 10px 20px;
  background-color: #3b6fd1;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 50px;
  font-size: 16px;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
}
.back-to-main {
  margin-top: 20px;
  background-color: #274080;
  color: white;
}

.open-popup:focus + .popup-overlay,
.popup-overlay:target {
  display: flex;
}
.demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.demo h3 {
  font-size: 36px;
  font-weight: 700;
  color: #375ab0;
  margin-bottom: 24px;
}
.demo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.demo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.demo-text h3 {
  font-size: 32px;
  font-weight: 600;
  color: #375ab0;
}
.demo-text p {
  font-size: 24px;
  font-weight: 400;
  color: #313a45;
  text-align: center;
}
/* .mediumbtn {
  width: 250px;
  height: 56px;
  background-color: #375ab0;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 700;
  color: white;
  border-color: #375ab0;
} */

.mediumbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #375ab0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  border-radius: 16px;
  height: 40px;
  padding: 0 24px;
  min-width: 130px;
  box-sizing: border-box;
}
.mediumbtn:hover,
.mediumbtn:focus {
  background-color: #274080;
  color: #fff;
  text-decoration: none;
}
.service {
  background-color: #ebf4ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 30px;
  gap: 44px;
}
.service-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-title h3 {
  font-size: 36px;
  font-weight: 700;
  color: #375ab0;
}
.service-title p {
  font-size: 18px;
  font-weight: 500;
  color: #303032;
  text-align: center;
}
.service-content {
  display: flex;
  align-items: center;
  gap: 56px;
}
.service-items {
  gap: 32px;
  display: flex;
  flex-direction: column;
}
.service-list {
  display: flex;
  align-items: center;
  gap: 20px;
}
.service-text {
  display: flex;
  flex-direction: column;
}
.service-text h3 {
  font-size: 18px;
  font-weight: 600;
  color: #545f6d;
}
.service-text p {
  font-size: 16px;
  font-weight: 400;
  color: #313a45;
}
.register {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 30px;
  gap: 32px;
}
.text p {
  font-size: 28px;
  font-weight: 700;

  text-align: center;
}
.text p span {
  color: #375ab0;
}
.waitlist input {
  width: 700px;
  height: 56px;
  border-radius: 16px;
  padding-left: 16px;
  font-size: 18px;
  color: #313a45;
  margin-bottom: 10px;
}
/* .largebtn {
  width: 700px;
  height: 56px;
  background-color: #375ab0;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 700;
  color: white;
  border-color: #375ab0;
} */

.largebtn {
  padding: 10px 20px;
  width: auto;
  min-width: 100px;
  align-self: flex-end;
}
.end {
  display: flex;
  flex-direction: column;
  padding: 64px 120px;
  gap: 32px;
}
.end p {
  font-size: 24px;
  font-weight: 500;
  color: #313a45;
  /* text-align: center; */
}
/* .btn {
  width: 150px;
  height: 40px;
  background-color: #375ab0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: white;
} */

.back-bar {
  display: flex;
  align-items: center;
  margin: 30px 0 20px 0;
  gap: 10px;
}
.back-bar a {
  color: #375ab0;
  font-size: 24px;
  text-decoration: none;
  display: flex;
}
/* .submit-request-form {
  background: white;
  padding: 30px;
  width: 300px;
  border-radius: 10px;
  position: relative;
} */

.submit-request-form {
  background: white;
  padding: 30px;
  width: auto;
  min-width: 320px;
  max-width: 90vw; /* responsive max width */
  border-radius: 10px;
  position: relative;
  box-sizing: border-box;
}

.category-list {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}
.category-item {
  background: #fff;
  color: #375ab0;
  border: 1px solid #375ab0;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.category-item.selected,
.category-item:hover {
  background: #375ab0;
  color: #fff;
}

.input-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.input-row label {
  margin-right: 0; /* Remove gap */
  font-weight: 600;
  font-size: 8px;
  color: #fff;
  width: 70px;
  background: #375ab0;
  padding: 8px 16px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  height: 30px;
  display: flex;
  align-items: center;
}

.input-row input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
  border: 1px solid #ccc;
  border-left: none;
  font-size: 15px;
  height: 30px;
}
/* ...existing code... */
/* textarea {
  width: 100%;
  min-height: 80px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 8px 10px;
  font-size: 15px;
  margin-bottom: 16px;
  resize: vertical;
} */
/* ...existing code... */
.textarea-wrapper {
  position: relative;
  margin-bottom: 16px;
}

#request-desc {
  width: 100%;
  min-height: 90px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 32px 10px 32px 48px; /* top, right, bottom, left for space for overlays */
  font-size: 15px;
  resize: vertical;
  box-sizing: border-box;
}

.textarea-word-count {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 12px;
  color: #375ab0;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 8px;
  pointer-events: none;
}

.textarea-icons {
  position: absolute;
  left: 12px;
  bottom: 8px;
  display: flex;
  gap: 8px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}
/* ...existing code... */

/* .budget-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  margin-bottom: 24px;
} */

.budget-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

.budget-input {
  width: 100%;
  padding: 8px 36px 8px 10px; /* Add right padding for the icon */
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  box-sizing: border-box;
}

.budget-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.largebtn {
  width: 100%;
  height: 40px;
  background: #375ab0;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.largebtn:hover {
  background: #274080;
}
footer {
  padding: 12px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
footer a {
  text-decoration: none;
  color: black;
  font-size: 12px;
  font-weight: 500;
}
.social-icons {
  display: flex;
  gap: 15px;
  /* margin-top: 20px; */
}

.social-icons a {
  color: white; /* Match your site theme */
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #000; /* On hover, turns black or customize */
}

/* Responsive styles */
/* --- Responsive Styles --- */

/* Tablet and below */
@media (max-width: 900px) {
  .service-content {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .service-items {
    width: 100%;
  }
}

/* Ensure box-sizing is border-box for all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Mobile */
@media (max-width: 600px) {
  body {
    padding-top: 60px;
  }
  .header {
    height: 60px;
    font-size: 16px;
  }
  .header p {
    font-size: 16px;
  }
  html,
  body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .home,
  .analysis,
  .demo,
  .service,
  .register,
  .end {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .home {
    padding-left: 0;
    padding-right: 0;
  }
  .analysis,
  .demo,
  .service,
  .register,
  .end {
    padding-left: 0;
    padding-right: 0;
  }
  /* Home section: always row, just scale down */
  .home {
    padding: 8px 20px;
  }
  .home-content {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .home-content h1 {
    font-size: 18px;
  }
  .home-content p {
    font-size: 12px;
  }
  .submit-request-form {
    width: 90%;
    padding: 20px;
  }

  .waitlist input,
  .largebtn {
    width: 100% !important;
  }

  .home img {
    width: 100px !important;
    height: 30px !important;
    /* max-width: 60px; */
  }
  .home-content img {
    width: 150px !important;
    height: 150px !important;
  }
  .smallbtn,
  .btn {
    font-size: 8px;
    padding: 0 8px;
    height: 32px;
    width: 80px;
    min-width: unset;
  }

  /* Analysis section: always row, just scale down */
  .analysis {
    height: auto;
    padding: 16px 4px;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
  }
  .analysis-content {
    flex-direction: column !important;
    gap: 20px;
    align-items: first baseline;
    width: auto;
  }
  .analysis-title {
    width: 80px;
    height: 40px;
    font-size: 10px;
    transform: none !important;
  }

  .circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    margin-right: 10px;
  }
  .analysis-title h2 {
    font-size: 12px;
  }
  .analysis-title p {
    font-size: 10px;
  }
  .analysis-text h3 {
    font-size: 18px;
  }
  .analysis-text p {
    font-size: 10px;
  }

  /* Demo section: always row, just scale down */
  .demo {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .demo h3 {
    font-size: 20px;
  }
  .demo-item {
    flex-direction: column !important;
    align-items: center;
    gap: 8px;
  }
  .demo-text h3 {
    font-size: 16px;
  }
  .demo-text p {
    font-size: 12px;
  }
  .demo-item img {
    width: 60px;
    height: 60px;
    max-width: 60px;
  }

  /* Service section: column on mobile */
  .service {
    padding: 24px 30px;
    gap: 24px;
  }
  .service-content {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 16px;
  }
  .service-items {
    justify-content: center;
  }
  .service-title h3 {
    font-size: 20px;
  }
  .service-title p {
    font-size: 14px;
  }
  .service-text .desktop-break {
    display: none;
  }
  .service-list {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
  .service-text h3 {
    font-size: 14px;
  }
  .service-text p {
    font-size: 12px;
  }

  /* Register/Waitlist section */
  .register {
    padding: 16px 4px;
    gap: 16px;
  }
  .register .text p {
    font-size: 15px;
  }
  .waitlist input,
  .waitlist button {
    width: 100%;
    font-size: 15px;
    height: 38px;
  }
  .largebtn {
    font-size: 14px;
    height: 38px;
    width: 100%;
  }

  /* Submit request form */
  .submit-request-form {
    width: 100%;
    min-width: unset;
    padding: 16px 30px;
  }
  .input-row label {
    font-size: 12px;
    font-weight: 400;
    flex-direction: row !important;
  }
  .category-list {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* End section */
  .end {
    padding: 24px 30px;
    gap: 16px;
  }
  .end img {
    width: 100px;
    height: 30px;
  }

  .end p {
    font-size: 14px;
  }
  .end a.btn {
    display: flex;
    width: 100px;
    font-size: 10px;
    padding: 0 8px;
    height: 36px;
    border-radius: 12px;
    gap: 6px;
  }
  .end a.btn img {
    width: 16px;
    height: 16px;
  }
  footer a {
    font-size: 8px;
  }
}

/* Hide on mobile */
@media (max-width: 900px) {
  .desktop-break {
    display: none;
  }
}

/* Show on desktop */
@media (min-width: 901px) {
  .desktop-break {
    display: block; /* or inline / flex as appropriate */
  }
}

/* --- End Responsive Styles --- */
