.content-contact-section {
  height: auto;
  min-height: 666px;
  margin-top: 5vh;
}

.category-contact-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  gap: 24px;
  padding: 50px;
}

.header-contact-cont {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  flex-wrap: wrap;
}

.header-contact-cont h5 {
  font-weight: 700;
  font-size: 56px;
  line-height: 66px;
  color: var(--text-dark);
  letter-spacing: 0;
}

/* Subheader */
.categ-subhead {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1150px;
  padding: 0 16px;
  margin: 0 auto;
  box-sizing: border-box;
}

.categ-subhead p {
  width: 100%;
  max-width: 1250px;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: var(--text-gray);
  overflow-wrap: break-word;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
  padding: 0 1rem;
}

.category-box {
  display: flex;
  flex-direction: column;
  align-items: start;
  width: 464px;
  height: 214px;
  background: #f8f9fa;
  padding: 40px;
  gap: 10px;
  border-radius: 16px;
  text-align: start;
  justify-content: start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  box-sizing: border-box;
  word-wrap: break-word;
}

.category-box:hover {
  transform: translateY(-5px);
}

.category-box img {
  width: 24px;
  height: 24px;
}

.category-box h1 {
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: var(--text-muted);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.contact-row p {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--text-dark);
  overflow-wrap: break-word;
  cursor: default;
}

/* Two-column container tweaks */
.two-column-container {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping to keep columns side by side */
  width: 100%;
  max-width: 1450px;
  height: auto; /* Let height grow with content */
  min-height: 606px;
  margin: 3rem auto 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Left content takes 50% width and padding */
.left-content {
  width: 50%;
  padding: 0rem 5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.right-image {
  width: 50%;
  min-width: 300px;
  height: auto;
  min-height: 500px;
  background-image: url("../img/tower.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  flex-shrink: 0; /* prevents it from shrinking */
}

.left-content,
.right-image {
  width: 50%;
  flex: none;
}

/* First row: flex container for image + h1 */
.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-row img {
  width: 24px;
  height: 24px;
}

.header-row h1 {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--text-gray);
}

.header-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Second row: select input styling */
.select-row select {
  background: url("../svg/dropdown-arrow.svg") no-repeat right 16px center;
  background-size: 10px 6px;
  cursor: pointer;
  background-color: #f7fafc;
  width: 552px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid #c1d3db;
  padding-right: 12px;
  padding-left: 12px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-muted);
}

.select-row select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.two-columns-row {
  display: flex;
  gap: 5rem;
}

.column-left {
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.column-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding-top: 10px;
}

.column-header p {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--text-gray);
}

.opening-hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.hours-row {
  display: flex;
  gap: 1.5rem;
  font-size: 14px;
  color: var(--text-gray);
}

.day {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  min-width: 30px;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: var(--text-gray);
}

.time {
  font-weight: 400;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: var(--text-gray);
}

.question-section-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1450px;
  height: auto;
  margin: 3rem auto 0 auto;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 50px;
  box-sizing: border-box;
}

.question-form {
  display: flex;
  width: 700px;
  gap: 12px;
}

.question-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 700px;
  height: 100%;
  box-sizing: border-box;
}

.question-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.question-title-row img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.question-title-row h2 {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--text-gray);
}

.full-input,
.two-inputs-row input,
textarea {
  border-radius: 12px;
  border: 1px solid #c1d3db;
  background-color: #f7fafc;
  padding: 12px 16px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.full-input {
  height: 64px;
  width: 100%;
}

.two-inputs-row {
  display: flex;
  gap: 12px;
}

.two-inputs-row input {
  flex: 1;
  height: 64px;
}

textarea {
  resize: none;
  width: 100%;
  height: 120px;
  border-radius: 12px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  padding: 12px 16px;
  box-sizing: border-box;
  color: var(--text-dark);
  border: 1px solid #c1d3db;
}

.full-input:focus,
.two-inputs-row input:focus,
textarea:focus {
  border-color: var(--primary-color);
}

.checkbox-contact-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  user-select: none;
  font-weight: 600;
  line-height: 22px;
  margin-top: 2%;
  color: var(--text-muted);
}

.checkbox-contact-label input[type="checkbox-contact"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary-green);
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  position: relative;
}

/* When checked */
.checkbox-contact-label input[type="checkbox-contact"]:checked {
  background-color: var(--primary-green);
}

/* White checkmark */
.checkbox-contact-label input[type="checkbox-contact"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.submit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 149px;
  height: 64px;
  background-color: #3fb84b;
  border-radius: 999px;
  padding-top: 10px;
  padding-right: 40px;
  padding-bottom: 10px;
  padding-left: 40px;
  gap: 12px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 22px;
  color: #ffffff;
  margin-top: 2%;
  text-decoration: none;
}

.submit-button:hover {
  background-color: #6fcf7c;
  box-shadow: var(--XXSoftXSsoft) var(--YYSoftXSsoft) var(--BlurBlurSoftXSsoft)
      var(--SpreadSpreadSoftXSsoft) var(--PrimaryButtonsShadow),
    var(--XXHardXShard) var(--YYHardXShard) var(--BlurBlurHardXShard)
      var(--SpreadSpreadHardXShard) var(--PrimaryButtonsShadow);
}

/* Responsive Styles */
@media (max-width: 1380px) {
  .two-column-container {
    max-width: 95%;
    height: auto;
    margin: 2rem auto;
    flex-direction: row;
  }

  .left-content {
    padding: 2.5rem;
    gap: 1.75rem;
  }

  .right-image {
    min-width: 250px;
    min-height: 500px;
  }

  .select-row select {
    width: 100%;
    max-width: 500px;
  }

  .two-columns-row {
    gap: 3rem;
    flex-wrap: wrap;
  }

  .column-left,
  .column-right {
    flex: 1;
    min-width: 350px;
  }

  .contact-row p {
    font-size: 22px;
    line-height: 30px;
  }

  .column-header p {
    font-size: 22px;
  }

  .header-row h1 {
    font-size: 24px;
  }

  .header-icon {
    width: 36px;
    height: 36px;
  }

  .category-box {
    width: 350px;
    height: 214px;
    padding: 35px;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .question-section-container {
    width: 100%;
    max-width: 90%;
    height: auto;
    padding: 2.5rem;
  }

  .question-box {
    width: 100%;
    height: auto;
  }

  /* Additional adjustments for better spacing */
  .content-contact-section {
    margin-top: 1%;
  }

  .category-contact-head {
    padding: 1.5rem;
  }

  .header-contact-cont h5 {
    font-size: 52px;
    line-height: 62px;
  }

  .categ-subhead p {
    font-size: 18px;
    line-height: 28px;
  }

  .hours-row {
    gap: 1.25rem;
  }
}

@media (max-width: 1460px) {
  .category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center; /* centers items horizontally within their cells */
  }

  .category-grid > div:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center; /* center the items */
  }
}

@media (max-width: 1024px) {
  .two-column-container {
    max-width: 100%;
    height: auto;
    flex-direction: row;
    margin: 2rem auto;
  }

  .left-content {
    padding: 2rem;
    gap: 1.5rem;
  }

  .right-image {
    min-height: 400px;
  }

  .select-row select {
    width: 100%;
    max-width: 450px;
  }

  .two-columns-row {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .column-left,
  .column-right {
    flex: 1;
    min-width: 300px;
  }

  .contact-row p {
    font-size: 20px;
    line-height: 28px;
  }

  .column-header p {
    font-size: 20px;
  }

  .header-row h1 {
    font-size: 22px;
  }

  .header-icon {
    width: 32px;
    height: 32px;
  }

  .category-box {
    width: 300px;
    height: 200px;
  }

  .category-grid {
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
  }

  .question-section-container {
    max-width: 955px;
    height: auto;
    padding: 2rem;
  }

  .question-box {
    width: 100%;
    height: auto;
    padding: 1rem;
  }
}

@media (max-width: 900px) {
  .two-column-container {
    flex-direction: column;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    gap: 0;
  }

  .left-content {
    width: 100%;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
    order: 2;
  }

  .right-image {
    background-position: top;
    /* min-height: 500px; */
    order: 1;
    width: 100%;
  }

  .select-row select {
    width: 100%;
    max-width: 100%;
    height: 56px;
  }

  .two-columns-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .column-left,
  .column-right {
    min-width: 100%;
  }

  .contact-row {
    justify-content: flex-start;
  }

  .contact-row p {
    font-size: 18px;
    line-height: 26px;
  }

  .column-header p {
    font-size: 20px;
  }

  .header-row h1 {
    font-size: 22px;
    line-height: 28px;
  }

  .header-icon {
    width: 32px;
    height: 32px;
  }

  .category-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0;
  }

  .category-box {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 25px;
  }

  /* Typography adjustments */
  .header-contact-cont h5 {
    font-size: 42px;
    line-height: 50px;
  }

  .categ-subhead p {
    font-size: 16px;
    line-height: 24px;
  }

  /* Opening hours adjustments */
  .hours-row {
    gap: 1rem;
  }

  .day,
  .time {
    font-size: 14px;
    line-height: 20px;
  }
  .question-section-container {
    max-width: 95%;
    height: auto;
    margin: 1.5rem auto;
    padding: 1.5rem;
    border-radius: 16px;
  }

  .question-box {
    width: 100%;
    height: auto;
  }

  .question-title-row {
    height: auto;
    margin-bottom: 0.5rem;
  }

  .question-title-row h2 {
    font-size: 22px;
    line-height: 28px;
  }

  .full-input,
  .two-inputs-row input,
  textarea {
    padding: 10px 14px;
    font-size: 15px;
  }

  .full-input {
    height: auto;
  }

  .two-inputs-row {
    flex-direction: column;
    gap: 12px;
  }

  .two-inputs-row input {
    width: 100%;
  }

  textarea {
    min-height: 120px;
  }

  .checkbox-contact-label {
    font-size: 15px;
  }

  .submit-button {
    width: 100%;
    height: 40px;
    font-size: 18px;
    margin-top: 0%;
  }
}

@media (max-width: 768px) {
  .two-column-container {
    flex-direction: column;
  }

  .left-content,
  .right-image {
    width: 100%;
  }

  .right-image {
    min-width: 300px;
  }

  /* Header Section */
  .header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .header-row h1 {
    font-size: 20px;
    line-height: 26px;
  }

  .header-icon {
    width: 28px;
    height: 28px;
  }

  /* Form Elements */
  .select-row select {
    height: 52px;
    font-size: 15px;
  }

  /* Contact Columns */
  .two-columns-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .column-left,
  .column-right {
    width: 100%;
  }

  .contact-row {
    justify-content: flex-start;
  }

  .contact-row p {
    font-size: 16px;
    line-height: 24px;
  }

  /* Opening Hours */
  .column-header p {
    font-size: 18px;
  }

  .hours-row {
    gap: 0.75rem;
  }

  .day,
  .time {
    font-size: 14px;
  }

  /* Category Grid */
  .category-grid {
    width: 97.5%;
    grid-template-columns: 1fr;
  }

  .category-box {
    width: 100%;
    padding: 1.5rem;
    height: auto;
  }

  /* Question Section */
  .question-section-container {
    max-width: 95%;
    border-radius: 24px;
  }

  .question-title-row h2 {
    font-size: 20px;
  }

  /* Typography Adjustments */
  .header-contact-cont h5 {
    font-size: 36px;
    line-height: 44px;
    text-align: center;
  }

  .categ-subhead p {
    font-size: 15px;
    line-height: 22px;
    padding: 0 1rem;
  }

  /* Form Elements */
  .full-input,
  .two-inputs-row input,
  textarea {
    font-size: 15px;
    padding: 10px 14px;
  }

  .submit-button {
    height: 40px;
    font-size: 18px;
    width: 100%;
    margin: 0 auto;
  }

  .content-contact-section {
    margin-top: 3%;
  }

  .category-contact-head {
    padding: 1rem;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .two-column-container {
    width: 100%;
    max-width: 95%;
    margin: 0.5rem auto 0;
    border-radius: 24px;
  }

  .left-content {
    padding: 1.25rem;
    gap: 1rem;
  }

  .right-image {
    min-height: 500px;
  }

  .column-left {
    display: flex;
    align-items: center;
  }

  .opening-hours {
    display: flex;
    width: 100%;
  }

  .hours-row {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: row;
  }

  .header-row {
    display: flex;
    flex-direction: row;
    font-size: 18px;
  }

  .header-contact-cont h5 {
    font-size: 28px;
    line-height: 36px;
    word-wrap: break-word;
  }

  .categ-subhead p {
    font-size: 14px;
    line-height: 20px;
  }

  /* Form Elements */
  .select-row select {
    height: 64px;
    font-size: 14px;
    border-radius: 12px;
  }

  /* Contact Info */
  .contact-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .contact-row p {
    font-size: 15px;
    line-height: 22px;
    word-break: break-all;
  }

  .column-right {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Opening Hours */
  .column-header {
    flex-wrap: wrap;
  }

  .column-header p {
    font-size: 16px;
  }

  /* Category Grid */
  .category-grid {
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 95%;
  }

  .category-box {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-radius: 16px;
  }

  .category-box h1 {
    font-size: 16px;
    line-height: 24px;
  }

  /* Question Form */
  .question-section-container {
    width: 100%;
    max-width: 90%;
  }

  .question-title-row h2 {
    font-size: 18px;
  }

  .full-input,
  .two-inputs-row input,
  textarea {
    font-size: 14px;
    padding: 8px 12px;
  }

  .submit-button {
    height: 64px;
    font-size: 16px;
    width: 100%;
    max-width: 200px;
  }

  .header-icon {
    width: 24px;
    height: 24px;
  }

  .contact-row img,
  .column-header img {
    width: 18px;
    height: 18px;
  }

  .content-contact-section {
    margin-top: -5vh;
  }

  .category-contact-head {
    padding: 0.75rem;
  }
}
