@font-face {
  font-family: "GT Eesti Display";
  src: url("../assets/fonts/GT-Eesti-Display-Regular-Trial.otf")
    format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "GT Eesti Display";
  src: url("../assets/fonts/GT-Eesti-Display-Bold-Trial.otf")
    format("opentype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "GT Eesti Display";
  src: url("../assets/fonts/GT-Eesti-Display-Light-Trial.otf")
    format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "GT Eesti Display";
  src: url("../assets/fonts/GT-Eesti-Display-Medium-Trial.otf")
    format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "GT Eesti Text";
  src: url("../assets/fonts/GT-Eesti-Text-Regular-Trial.otf")
    format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "GT Eesti Text";
  src: url("../assets/fonts/GT-Eesti-Text-Bold-Trial.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "GT Eesti Text";
  src: url("../assets/fonts/GT-Eesti-Text-Light-Trial.otf")
    format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "GT Eesti Text";
  src: url("../assets/fonts/GT-Eesti-Text-Medium-Trial.otf")
    format("opentype");
  font-weight: 500;
  font-style: normal;
}

body {
  font-family: "GT Eesti Text", sans-serif;
  background: #FFF;
}

/* Apply GT Eesti Display font to Form.io elements */
.formio-component-label,
.formio-component .control-label,
.form-group label,
.field-required::after,
.formio-component-htmlelement h4,
.formio-component legend {
  font-family: "GT Eesti Display", sans-serif;
  font-weight: 300;
}

/* Ensure consistency for form elements */
.formio-component input,
.formio-component textarea,
.formio-component select {
  font-family: "GT Eesti Text", sans-serif;
}

/* Style Form.io buttons */
.btn,
.btn-primary,
.btn-success,
.formio-component .btn,
.formio-component button {
  font-family: "GT Eesti Display", sans-serif;
  font-weight: 500;
}

/* Style error messages */
.formio-error-wrapper,
.formio-errors,
.has-error,
.formio-component-content small,
.alert-danger,
.alert-warning,
.formio-component .text-danger {
  font-family: "GT Eesti Display", sans-serif;
  font-weight: 400;
}

/* Style Form.io headings */
.formio-component-htmlelement h4 {
  font-weight: 500;
  color: #0c2340;
  font-size: 1.2rem;
}

.modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 0 auto;
  text-align: center;
}

.modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100% - 1rem);
  margin: 0 auto;
}

.modal-header {
  border-bottom: none;
  padding-bottom: 0;
  display: flex;
  justify-content: flex-end;
}

.modal-body {
  padding: 0;
}

.close {
  font-size: 2rem;
  font-weight: normal;
  color: #000;
  opacity: 0.5;
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.close:hover {
  opacity: 1;
}

.modal-title {
  font-family: "GT Eesti Display", sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #0c2340;
  margin-top: 10px;
  margin-bottom: 15px;
  text-align: center;
  width: 100%;
}

.modal-description {
  color: #666;
  font-size: 16px;
  margin-bottom: 25px;
  text-align: center;
}

/* Updated SEND button to be centered on its own row */
.btn-send {
  font-family: "GT Eesti Display", sans-serif;
  background-color: #4d8adb;
  color: white;
  width: 100%;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  display: block;
  margin: 0 auto; /* centers the button */
}

.modal-image {
  margin-bottom: 20px;
  max-width: 180px;
  margin: 0 auto 20px;
}

.header {
  font-family: "GT Eesti Display", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 1rem;
  color: #0c2340;
}

/* Additional styles for success and rate limit modals */
#successModal .modal-image img,
#rateLimitModal .modal-image img {
  max-width: 80px;
  margin: 0 auto 20px;
}

#successModal .modal-title {
  color: #28a745; /* Green color for success */
}

#rateLimitModal .modal-title {
  color: #dc3545; /* Red color for warning */
}

/* Note section styles */
.note-section {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 15px 20px;
  margin-bottom: 20px;
  font-family: "GT Eesti Text", sans-serif;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
}

.note-title {
  font-family: "GT Eesti Display", sans-serif;
  font-weight: bold;
  margin-bottom: 8px;
  color: #0c2340;
}

.note-list {
  padding-left: 20px;
  margin-bottom: 0;
}

.note-list li {
  margin-bottom: 8px;
}

.note-list li:last-child {
  margin-bottom: 0;
}

/* Generate Invoice button styles */
.btn-generate {
  font-family: "GT Eesti Display", sans-serif;
  font-size: 18px;
  font-weight: bold;
  padding: 12px 40px;
  min-width: 250px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#rateLimitModal a {
  color: #4d8adb;
  text-decoration: none;
  font-weight: bold;
}

/* Footer Styles */
.footer-container {
  background-color: #0c2340;
  color: white;
  padding: 20px 0;
  margin-top: 60px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 30px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.social-icon:hover img {
  opacity: 1;
}

.copyright {
  font-family: "GT Eesti Text", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

#rateLimitModal a:hover {
  text-decoration: underline;
}

.toast {
  border-radius: 10px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.toast-header {
  background-color: transparent;
  border-bottom: none;
  padding: 15px 15px 5px;
}

.toast-body {
  padding: 5px 15px 15px;
  color: #28a745;
  font-weight: bold;
}

.btn-send.sending {
  opacity: 0.8;
  cursor: not-allowed;
  position: relative;
}

.btn-send.sending::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 10px 15px;
  margin-top: 10px;
  display: none;
  font-weight: 500;
  font-family: "GT Eesti Display", sans-serif;
  text-align: center;
}

#modal-error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 10px 15px;
  margin: 10px 0;
  display: none;
  font-weight: 500;
  font-family: "GT Eesti Display", sans-serif;
  text-align: center;
}

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

.faq-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.faq-item {
  background-color: white;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: height 0.3s ease-in-out;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #333;
}

.faq-question::after {
  content: '+';
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
  display: none;
  color: #666;
  line-height: 1.6;
}

.faq-answer.show {
  display: block;
}