.service-section {
  border: 1px solid #262626;
  box-shadow: 0 0 0 6px #191919;
  margin-bottom: 5px;
}

.container.service {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
}

.row-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 24px;
  text-align: center;
  border: 1px solid #262626;
  border-radius: 10px;
  gap: 16px;
  background-color: var(--background-color);
}

.row-service p {
  text-align: left;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.row-service h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.row-service img {
  width: 60px;
}

.row-service a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.row-service a:hover {
  color: var(--button-color);
}

.contact-header {
  margin: 0 80px;
}

.contact-header h1 {
  color: white;
  font-size: 38px;
  font-weight: 600;
  margin: 0;
  line-height: 150%;
  margin-bottom: 10px;
}

.contact-header p {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.contact-form {
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 80px 80px;
  margin: 60px 80px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group label {
  color: white;
  font-size: 16px;
  line-height: 150%;
  font-weight: 500;
  margin: 0;
}

.form-group input {
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 16px 20px;
  background: #1a1a1a;
  color: white;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  font-family: "Urbanist", sans-serif;
}

.phone-input {
  display: flex;
  border: 1px solid #262626;
  background-color: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.phone-input input {
  border: none;
  padding-left: 0px;
  flex: 1;
  font-size: 1em;
  outline: none;
}

.select2-container {
  width: 100px !important;
}

.select2-container--default .select2-selection--single {
  border: none !important;
}

.select2-dropdown {
  border-radius: 6px !important;
  border: 1px solid #262626 !important;
  background-color: #1a1a1a !important;
  color: #999999 !important;
}

.select2-search--dropdown .select2-search__field {
  border-radius: 6px !important;
  border: 1px solid #262626 !important;
  background-color: #1a1a1a !important;
  color: #999999 !important;
}

.select2-selection__arrow {
  display: none;
}

.select2-selection__rendered {
  text-align: center;
  background-color: #1a1a1a;
  height: 52px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #999999 !important;
  padding: 0px !important;
  border: none !important;
}

.select2-container--default .select2-results__option--selected {
  background-color: #262626 !important;
  color: #999999 !important;
}

.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #262626 !important;
  color: #999999 !important;
}

.form-group textarea {
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 16px 20px;
  background: #1a1a1a;
  color: white;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  resize: none;
  font-family: "Urbanist", sans-serif;
}

.full-width {
  width: 100%;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.checkbox-container {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkbox-container a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.checkbox-container p,
.checkbox-container span {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  color: var(--text-secondary);
  cursor: pointer;
}

.recaptcha-notice a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.contact-form button,
#submit-button {
  background-color: #d0ff71;
  border: none;
  color: #000;
  padding: 14px 34px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.contact-form button:hover,
#submit-button:hover {
  background-color: #b2dd25;
}

@media (max-width: 1024px) {
  .container.service {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    border-radius: 12px;
  }

  .container.contact {
    margin-top: 80px;
  }

  .contact-header {
    margin: 0 16px;
  }

  .contact-header h1 {
    font-size: 28px;
  }

  .contact-form {
    padding: 40px 16px;
    margin: 40px 16px;
  }

  .form-row {
    gap: 20px;
  }

  .form-group {
    gap: 10px;
  }

  .row-service {
    padding: 20px 14px;
  }

  .row-service h4 {
    line-height: 150%;
  }

  .row-service p {
    line-height: 150%;
  }

  .row-service img {
    width: 48px;
  }

  .form-footer {
    flex-direction: column;
    gap: 20px;
  }

  .checkbox-container {
    order: 2;
  }

  .contact-form button,
  #submit-button {
    order: 3;
    width: 100%;
  }
}

/* reCAPTCHA Styling */
.recaptcha-wrapper {
  margin: 30px 0 10px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 78px;
  padding-top: 20px;
  border-top: 1px solid #262626;
}

/* Error message styling */
.errorlist {
  color: #ff4444;
  font-size: 14px;
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
}

.errorlist li {
  margin: 5px 0;
}

/* Mobile responsiveness for reCAPTCHA */
@media (max-width: 480px) {
  .recaptcha-wrapper {
    overflow: hidden;
    max-width: 100%;
  }

  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
    margin: 0 auto;
  }
}

/* Field error styling */
.field-error {
  color: #ff4444 !important;
  font-size: 14px !important;
  margin-top: 5px !important;
  display: block !important;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #ff4444 !important;
}

/* Terms and conditions error */
.form-footer .errorlist {
  width: 100%;
  margin-top: 10px;
  order: 2;
}

@media (max-width: 1024px) {
  .form-footer .errorlist {
    order: 3;
  }
}
