/*
- * This is a manifest file that'll be compiled into application.css, which will include all the files
- * listed below.
- *
- * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
- * vendor/assets/stylesheets directory can be referenced here using a relative path.
- *
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
- * compiled file so the styles you add here take precedence over styles defined in any other CSS
- * files in this directory. Styles in this file should be added after the last require_* statement.
- * It is generally better to create a new file per style scope.
- *
- *= require_tree .
- *= require_self
- */

@font-face {
  font-family: 'Fanwood';
  src: url("/assets/fanwood_text-webfont-cb7d46b0.woff") format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Fanwood';
  src: url("/assets/fanwood_text_italic-webfont-4abd82fa.woff") format('woff');
  font-weight: 400;
  font-style: italic;
}

* {
  font-family: 'Fanwood', serif;
}

body {
  background-color: white;
  color: #232427;
  nav {
    background-color: #4d6253;
    color: #e4e8ee;
    a {
      color: #e4e8ee;
    }

    h1, h2, h3, h4, h5, h6 {
      color: #cfdcee;
    }
  }

  a {
    color: #4d6253;
  }
}

h1, h2, h3, h4, h5, h6 {
  color: #24292f;
}

p {
  color: #303c34;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.btn svg:not(:last-child) {
  margin-right: 8px;
  height: 1em;
  width: 1em;
}

.btn.icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}

.btn-primary {
  background-color: #232427;
  color: #dcece1;
}

.btn-primary:hover {
  background-color: #46494e;
}

.btn-danger {
  background-color: #760b0e;
  color: #e4e8ee;
}

.btn-danger:hover {
  background-color: #8f3d3f;
}

.btn-danger-outline {
  background-color: transparent;
  color: #760b0e;
  border: 2px solid #760b0e;
}

.btn-danger-outline:hover {
  background-color: #760b0e;
  color: #e4e8ee;
}

.btn-secondary {
  background-color: transparent;
  color: #907f27;
  border: 2px solid #907f27;
}

.btn-secondary:hover {
  background-color: #907f27;
  color: #e4e8ee;
}

.btn-link {
  background-color: transparent;
  color: #4d6253;
}

.btn-link:hover {
  color: #232427;
  background-color: #e4e8ee;
}

.btn-link-danger {
  background-color: transparent;
  color: #760b0e;
}

.btn-link-danger:hover {
  color: #8f3d3f;
  background-color: #f0ced0;
}

.btn-outline {
  background-color: transparent;
  color: #4d6253;
  border: 2px solid #4d6253;
}

.btn-outline:hover {
  background-color: #4d6253;
  color: #e4e8ee;
}

.btn-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #64806c;
  color: #e4e8ee;
  border-radius: 12px;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.btn-alt:hover {
  background-color: #4d6253;
}

.btn-alt svg {
  margin-right: 8px;
  height: 1em;
  width: 1em;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 10px 20px;
  font-size: 1.125rem;
}

.bg-pattern {
  --s: 80px; /* control the size*/
  --c1: #4d6253;
  --c2: #907f27;

  --_s: calc(2*var(--s)) calc(2*var(--s));
  --_g: 35.36% 35.36% at;
  --_c: #0000 66%,var(--c2) 68% 70%,#0000 72%;

  background:
    radial-gradient(var(--_g) 100% 25%,var(--_c)) var(--s) var(--s)/var(--_s),
    radial-gradient(var(--_g) 0    75%,var(--_c)) var(--s) var(--s)/var(--_s),
    radial-gradient(var(--_g) 100% 25%,var(--_c)) 0 0/var(--_s),
    radial-gradient(var(--_g) 0    75%,var(--_c)) 0 0/var(--_s),
    repeating-conic-gradient(var(--c1) 0 25%,#0000 0 50%) 0 0/var(--_s),
    radial-gradient(var(--_c)) 0 calc(var(--s)/2)/var(--s) var(--s)
    var(--c1);
}

/* Marketing/Guest layout styles */

body.guest {
  background: linear-gradient(135deg, #64806c 0%, #92a0b4 100%);
  background-size: 100% 100vh;
  background-repeat: repeat-y;
  background-attachment: fixed;
  min-height: 100vh;
}

.marketing-page section {
  padding: 80px 0;
  scroll-margin-top: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-section {
  background-color: #f8f9fa;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .marketing-page section {
    padding: 40px 0;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

.link-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-out;
}

.link-underline:hover::after {
  transform-origin: left;
  transform: scaleX(1);
}

/* Header styling for scroll effect */
.header {
  background-color: transparent;
  backdrop-filter: blur(0px);
  box-shadow: none;
  transition: all 0.5s ease-in;
  width: 100%;
}

.header.bg-header {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(50px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;

  #sign-in {
    background-color: #4d6253;
    color: #ffffff;
  }
}

/* Color change for text in the header when bg-header is active */
.header.bg-header h1,
.header.bg-header a,
.header.bg-header a:visited {
  color: #4d6253;
}

.header.bg-header .link-underline::after {
  background-color: #4d6253;
}

/* Thinking animation styles */
.thinking-text {
  display: flex;
  font-style: italic;
}

.thinking-char {
  display: inline-block;
  color: #9ca3af; /* text-gray-400 */
  animation: highlight-char 2s infinite;
}

/* Staggered delay for thinking chars */
.thinking-char.thinking-char:nth-child(1) { animation-delay: 0s }
.thinking-char.thinking-char:nth-child(2) { animation-delay: 0.15s }
.thinking-char.thinking-char:nth-child(3) { animation-delay: 0.30s }
.thinking-char.thinking-char:nth-child(4) { animation-delay: 0.45s }
.thinking-char.thinking-char:nth-child(5) { animation-delay: 0.60s }
.thinking-char.thinking-char:nth-child(6) { animation-delay: 0.75s }
.thinking-char.thinking-char:nth-child(7) { animation-delay: 0.90s }
.thinking-char.thinking-char:nth-child(8) { animation-delay: 1.05s }
.thinking-char.thinking-char:nth-child(9) { animation-delay: 1.20s }
.thinking-char.thinking-char:nth-child(10) { animation-delay: 1.35s }
.thinking-char.thinking-char:nth-child(11) { animation-delay: 1.50s }

@keyframes highlight-char {
  0%, 100% { color: #9ca3af; } /* text-gray-400 */
  50% { color: #374151; } /* text-gray-700 */
}

.field_with_errors input {
  border-bottom: 1px solid #8f3d3f;
}

.field_with_errors input::placeholder {
  color: #8f3d3f;
}

.field_with_errors input:focus {
  border-bottom: 1px solid #8f3d3f;
}

.ts-control {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background-color: transparent !important;
  /* Add caret https://github.com/orchidjs/tom-select/discussions/384 */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0 center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}

.ts-wrapper {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.ts-wrapper.dropdown-active {
  background-color: #f3f4f6; /* Gray 100 */
  border-radius: 1rem;
}

.ts-dropdown {
  padding: 0.5rem;
  background-color: #f3f4f6; /* Gray 100 */
  border-radius: 1rem;
  border: none;
}

.ts-dropdown .option:not(:last-child) {
  margin-bottom: 0.5rem;
}

.ts-dropdown .option {
  padding: 0.5rem;
  font-size: 16px;
  border-radius: 1rem;
}

.ts-dropdown .option:hover {
  background-color: white;
}

.ts-dropdown .option.selected {
  background-color: white;
}

