/* Custom styles for Blinkist UI */
:root {
  --blinkist-blue: #002f54;
  --blinkist-green: #2cde80;
  --blinkist-placeholder: #6c757d;
  --blinkist-light-gray: #f5f7fa;
  --blinkist-border: #7f97a9;
  --blinkist-link: #002f54;
  --blinkist-white: #ffffff;
  --font-family: Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--blinkist-blue);
  background-color: var(--blinkist-white);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* common */
.text-center {
  text-align: center;
}
.m-auto {
  margin: auto;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.p-4 {
  padding: 1rem;
}

/* typography */
.font-sm {
  font-size: 0.875rem;
}
.font-md {
  font-size: 1rem;
}
.font-lg {
  font-size: 1.125rem;
}
.font-xl {
  font-size: 1.25rem;
}
.w-100 {
  width: 100%;
}

/* logo */
.logo {
  max-width: 200px;
  height: auto;
}

.tagline {
  font-size: 0.875rem;
  color: var(--blinkist-blue);
}

.heading {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.card {
  background-color: #ffffff;
  padding: 2rem 4rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--blinkist-border);
  max-width: 600px;
  width: 100%;
  margin: 1rem;
}
.form {
  max-width: 370px;
  padding: 0.625rem 0;
  margin: auto;
}
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--blinkist-blue);
  background-color: #fff;
  border: 1px solid var(--blinkist-border);
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--blinkist-green);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(54, 195, 144, 0.25);
}

.form-control::placeholder {
  color: var(--blinkist-placeholder);
  opacity: 1;
}
.state-wrapper{
    display: flex;
    gap: 0.5rem;
}

.code-form {
  width: 135px;
}

.btn {
  display: inline-block;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border: none;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: 1.5rem;
  transition: background-color 0.15s ease-in-out;
}

.btn-primary {
  color: var(--blinkist-blue);
  background-color: var(--blinkist-green);
  border: 1px solid var(--blinkist-green);
}

.btn-primary:disabled {
  opacity: 0.65;
  pointer-events: none;
}
.btn-secondary {
  color: var(--blinkist-blue);
  background-color: var(--blinkist-white);
  border: 1px solid var(--blinkist-blue);
}

.help-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-decoration: none;
  color: var(--blinkist-link);
  font-size: 0.875rem;
  margin-top: 10px;
}

.help-link img {
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
}

/* Library */
.library-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-height: 225px;
  max-height: 225px;
  overflow-y: auto;
}

@media (max-width: 767px) {
  .card {
    background-color: #ffffff;
    padding: 2rem 2rem;
  }
}
.form .error{
    color: red;
    font-size: 14px;
}

.login-previous-btm{
    margin-top: 20px;
}

.faq-card{
  background-color: #ffffff;
  padding: 2rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--blinkist-border);
  max-width: 600px;
  width: 100%;
  margin: 1rem;
}

.faq-container{
    background: #e9f1e8;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 10px;
}
.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #a5aba5;
  padding-bottom: 15px;
  cursor: pointer;
  background: #e8f3e7;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: #2c3e50;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #0dc563;
}

.arrow {
  font-size: 18px;
  margin-left: 10px;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  color: #555;
  margin-top: 0;
  background: #e8f3e7;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Large enough to show content */
  opacity: 1;
  margin-top: 10px;
}

.faq-error{
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #f15353;
}
.faq-title{
    margin: 25px 5px 50px 0px;
    text-align: center;
}

