/* ------------------------------
   RESET & BASE
------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f5f7fa; /* light, soft blue-gray for trust */
  color: #1a1a1a;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ------------------------------
   MAIN CONTAINER (Glass-like Card)
------------------------------ */
.container {
  max-width: 900px;
  margin: 50px auto;
  padding: 40px 30px;
  background: #ffffff; /* clean white */
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 70, 160, 0.1);
  border: 1px solid rgba(0, 120, 215, 0.2);
}

/* ------------------------------
   HEADER
------------------------------ */
header h1 {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #0078d4; /* trustworthy blue */
  margin-bottom: 10px;
}

header p {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 35px;
}

/* ------------------------------
   FORM ELEMENTS
------------------------------ */
form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

input,
textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  font-size: 1rem;
  color: #1a1a1a;
  transition: 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: #888;
}

input:focus,
textarea:focus {
  border-color: #0078d4;
  box-shadow: 0 0 12px rgba(0, 120, 212, 0.25);
  outline: none;
  background: #fff;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

/* ------------------------------
   BUTTONS
------------------------------ */
button {
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0078d4, #00a6ff); /* soft blue gradient */
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 6px 14px rgba(0, 120, 212, 0.25);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 120, 212, 0.35);
}

button:active {
  transform: translateY(0) scale(0.98);
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* ------------------------------
   PREVIEW BOX
------------------------------ */
pre {
  background: #f0f4f8; /* light, soft blue-gray */
  padding: 25px;
  border-radius: 14px;
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 450px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 120, 212, 0.2);
  line-height: 1.5;
  color: #1a1a1a;
}

/* ------------------------------
   SUB HEADINGS
------------------------------ */
h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 700;
  color: #0078d4;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 15px;
  font-size: 0.9rem;
  color: #555;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
  .container {
    padding: 10px 20px;
    margin: 20px;
  }

  header h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  button {
    width: 100%;
  }

  .buttons {
    flex-direction: column;
    gap: 12px;
  }
}

a {
    color: #ff8614;
    text-decoration: none;
    transition: 0.2s 
}

a:visited {
    color: #ff8614;
}

a:hover {
    text-decoration: underline;
}

/* ------------------------------
   FAQ Simple Dropdown with Animation
------------------------------ */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 12px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #0078d4;
  font-size: 1.2rem;
}

.faq-arrow {
  transition: transform 0.3s ease;
}

/* Animated answer container */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  color: #333;
  padding-left: 10px;
  transition: max-height 0.35s ease, margin-top 0.35s ease;
}


/* =============================== Animation ===============================*/
/* Spinner for loading animation */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

.hidden {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}