:root {
  --background-color: #f4f4f4;
  --primary-color: #ecad45; 
  --primary-color-hover: #d99e3f;
  --text-color: #333;
  --question-color: #ffffff;
  --question-color-open: #eeeeee;
  --answer-color: #646464;
  --border-color: #dcdcdc;
}

body {
  padding: 0;
  margin: 0;
  font-family: ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji";
  /*background-image: url('inc/bg.svg');*/
  background-color: var(--background-color);
  background-size: 24px 46px;
  background-repeat: repeat;
  font-size: 16px;
}

a {
  color: #d8a24b;
}

button {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

#header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  color: white;
  font-size: 14px;
  background-color: var(--primary-color);
  border-radius: 0 0 20px 20px;
}

#search-box {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

#search-icon {
  position: absolute;
  top: 11px;
  left: 32px;
  color: #ccc;
}

#search-input {
  width: 100%;
  padding: 13px 15px 12px 40px;
  font-size: 16px;
  border: 1px solid var(--border-color);
  border-top: 0;
  border-radius: 0 0 15px 15px;
  box-sizing: border-box;
}

#search-input:focus {
  -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, .2) inset;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
  outline: 0;
}

#search-result {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.faq-container {
  max-width: 800px;
  margin: 0px auto;
  padding: 20px;
  color: var(--text-color);
}

.faq-container h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color);
}

.faq-item {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  border: 1px solid #888;
}

.faq-question {
  background-color: var(--question-color);
  width: 100%;
  padding: 20px 50px 20px 20px;
  text-align: left;
  font-size: 16px;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent; /* prevent blue when clicked */
}

.faq-question.active {
  background-color: var(--question-color-open);
}

.faq-question .arrow {
  position: absolute;
  right: 15px;
  top: 18px;
  transition: transform 0.3s ease;
}

.faq-question.active .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: white;
  color: var(--answer-color);
}

.faq-answer .inner-answer {
  padding: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

#footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

dialog {
  border:0;
  padding:0;
  border-radius: 10px;
  background-color: var(--background-color);
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.dialog-header {
  max-width: 500px;
  margin: 0 auto 0 auto;
  text-align: center;
  padding: 10px 0;
  color: white;
  background-color: var(--primary-color);
  font-size: 20px;
  font-weight: bold;
}

.dialog-content {
  max-width: 460px;
  margin: 0 auto 0 auto;
  padding: 20px;
  padding-bottom: 10px;
  border-radius: 0 0 10px 10px;
}

.dialog-content p {
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 0;
}

.dialog-content input,
.dialog-content textarea {
  width: 100%;
  height: 40px;
  margin-bottom:10px;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-sizing: border-box;
  font-family: sans-serif;
}

.dialog-content textarea {
  margin-bottom:5px; /* has innate 5px seems */
}

.dialog-content .select-container {
  width: 100%;
  margin-bottom:10px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.dialog-content input:focus,
.dialog-content textarea:focus,
.dialog-content .select-container:hover {
  outline: none;
  -webkit-box-shadow: 0 0 0 1px var(--primary-color-hover) inset;
  box-shadow: inset 0 0 0 1px var(--primary-color-hover);
}

.dialog-content select {
  border: 0;
  width: 100%;
  height: 40px;
  padding: 10px;
  box-sizing: border-box;
  border-right: 10px solid transparent; /* to fix arrow alignment */
}

.dialog-content select:focus {
  outline: none;
  -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0) inset;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0);
}

.button {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom:10px;
  padding: 10px 0;
  font-size: 16px;
  border: none;
  border-radius: 20px !important;
  background-color: #fff;
  border: 1px solid var(--border-color);
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #eee;
}

.button.colored {
  background-color: var(--primary-color);
  color: white;
  font-size: 18px;
  border: 0 !important;
}

.button.colored:disabled {
  background-color: #aaa !important;
  color: #fff !important;
}

.button.colored:hover {
  background-color: var(--primary-color-hover);
  color: white;
}

#captchaImg {
  width:100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.error-message {
  text-align: center;
  font-weight: bold;
  color: red;
  margin-bottom:10px;
}

.success-message {
  text-align: center;
  margin-bottom:20px;
}

@media (min-width: 576px) {

  #header {
    padding: 1px 20px;
  }

  #search-input {
    padding: 8px 15px 8px 40px;
  }

  #search-icon {
    top: 6px;
  }

  .faq-question{
    padding: 10px 50px 10px 20px;
  }

  .faq-question .arrow {
    top: 8px;
  }

  .faq-answer .inner-answer {
    padding: 10px 20px;
  }
}