@import url('styles.css');

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  background-color: transparent;
  color: #333;
  line-height: 1.6;
}

body.dark .faq-item p {
  color: #171717;
}

body.dark .faq-form label {
  color: #333
}

main {
  max-width: 900px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 71px 5px 82px 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background-color: rgb(0 0 0 / 45%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.support-modal.show {
  opacity: 1;
  visibility: visible;
}

.support-modal-content {
  background-color: #f9f9f9;
  margin: 0;
  padding: 20px;
  border-radius: 5px;
  max-width: 800px;
  width: 100%;
  max-height: none;
  overflow: visible;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.support-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 12px 16px;
  background-color: #c3c3c352;
  border-radius: 5px;
  border-bottom: 2px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.support-form {
  display: flex;
  flex-direction: column;
  gap: 10px; 
}

.support-form label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.support-title {
  font-size: 28px;
  padding-bottom: 15px;
}

.support-form input,
.support-form textarea {
  width: 96%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.support-form input:focus,
.support-form textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 3px rgba(76, 175, 80, 0.2);
}

.support-checkboxes {
  display: flex;
  flex-wrap: wrap; 
  gap: 15px; 
  margin: 10px 0;
}

.support-checkboxes label {
  display: flex;
  align-items: center; 
  gap: 10px; 
  font-size: 14px;
  cursor: pointer;
}

.support-checkboxes input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #4CAF50; 
  cursor: pointer;
}

@media (max-width: 768px) {
  .support-checkboxes {
    flex-direction: column; 
    align-items: flex-start; 
  }
}

.support-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.support-submit-button {
  background-color: #4CAF50;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.support-submit-button:hover {
  background-color: #45a049;
  transform: scale(1.03);
}

.support-submit-button:active {
  background-color: #3e8e41;
  transform: scale(0.98);
}

textarea {
  max-width: 600px;
  height: 150px;
  resize: none; 
  border: 1px solid #ccc;
  border-radius: 4px; 
  padding: 10px;
  font-size: 14px; 
  box-sizing: border-box; 
}

.faq-container h2 {
  font-size: 1.4em;
  margin: 20px 0 10px;
}

.faq-item {
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  transition: background-color 0.3s ease;
}

.faq-item:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

.faq-item h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  margin: 0;
  color: #333;
  cursor: pointer;
  padding: 12px 0;
}


.faq-item p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  margin: 0;
}

.faq-item.open p {
  opacity: 1;
}



.faq-item .faq-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}


.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

footer {
  text-align: center;
  padding: 10px;
  background: #6a7378;
  color: white;
  margin-top: 20px;
}

footer p {
  margin: 0;
  font-size: 14px;
}

.faq-form-section h2 {
  font-size: 1.4em;
  margin: 20px 0 10px;
  text-align: center; 
}

.faq-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff; 

}

.faq-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.faq-form input,
.faq-form textarea {
  padding: 10px;
  font-size: 14px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.faq-form input:focus,
.faq-form textarea:focus {
  border-color: #4CAF50;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 255, 179, 0.5); 
}

.faq-form .radio-container {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px; 
}

.faq-form .radio-container label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.faq-form input[type="radio"] {
  
  width: 14px;
  height: 14px;
  accent-color: #4CAF50;
  cursor: pointer;
}

.faq-form .submit-button {
  margin: 0 0 0 auto;
  width: 250px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: -1px 1px 2px 0px rgba(191, 191, 191, 0.71);
}

.faq-form .submit-button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}


/* mobile */

@media (max-width: 768px) {
    .support-modal {
    padding: 60px 10px;         /* трохи менші відступи */
  }
  .support-modal-content {
    margin: 0;                  /* залишаємо без зовнішніх відступів */
    padding: 15px;
  }

  .faq-form {
    padding: 15px;
  }

  .faq-form .radio-container {
    flex-direction: column;
    gap: 10px;
  }

  .faq-form input,
  .faq-form textarea {
    font-size: 14px;
  }

  .faq-form .submit-button {
    width: 100%; 
    font-size: 14px;
  }

  .faq-container h2,
  .faq-form-section h2 {
    font-size: 1.2em;
    text-align: left;
  }

  .faq-item h3 {
    font-size: 1em;
    padding: 10px 0;
  }

  .faq-item p {
    font-size: 13px;
    line-height: 1.4;
  }

  .faq-item .faq-arrow {
    width: 14px;
    height: 14px;
  }

  .faq-form input,
  .faq-form textarea {
    font-size: 13px;
    padding: 8px;
  }

  .faq-form .submit-button {
    font-size: 14px;
    padding: 10px;
  }

  .radio-container label {
    font-size: 13px;
  }

  .support-modal-content {
    margin: 40px 10px;
    padding: 15px;
  }

  main {
    padding: 15px;
    border-radius: 8px;
  }
}
