/* ==========================================================================
   SEND US YOUR FEEDBACK OR CONCERN — styles
   Uses root.css tokens if present (--font-primary, --font-secondary,
   --primary); falls back to sensible defaults so this file also works
   standalone. All local tokens are prefixed --fb- so nothing collides
   with the rest of the design system.
   ========================================================================== */

:root {
  --fb-font-heading: var(--font-primary, "Poppins", sans-serif);
  --fb-font-body: var(--font-secondary, "Plus Jakarta Sans", sans-serif);

  --fb-text-dark: #12172b;
  --fb-text-muted: #6b7280;
  --fb-border: #e5e7eb;
  --fb-bg-soft: #f6f8fc;
  --fb-placeholder: #9aa1b0;
  --fb-error: #e0342c;

  --fb-primary: var(--primary, #003198);
  --fb-primary-hover: var(--primary-hover, #00256f);
  --fb-primary-tint: #eaf0fb;
}

.fbform-section {
  position: relative;
  background: var(--fb-bg-soft);
  background-image: radial-gradient(var(--fb-primary) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  background-position: 0 0;
  padding: 64px 24px 80px;
  font-family: var(--fb-font-body);
  overflow: hidden;
}

.fbform-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(246, 248, 252, 0.55) 0%,
    rgba(246, 248, 252, 0.92) 100%
  );
  pointer-events: none;
}

.fbform-container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

/* ===================== Top quick-action cards ===================== */

.fbform-topcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.fbform-topcard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--fb-border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  opacity: 0;
  transform: translateY(18px);
  animation: fbFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.fbform-topcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0, 49, 152, 0.1);
  border-color: rgba(0, 49, 152, 0.18);
}

.fbform-topcard:nth-child(1) {
  animation-delay: 0.05s;
}
.fbform-topcard:nth-child(2) {
  animation-delay: 0.15s;
}
.fbform-topcard:nth-child(3) {
  animation-delay: 0.25s;
}

.fbform-topcard__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fb-primary-tint);
  color: var(--fb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fbform-topcard:hover .fbform-topcard__icon {
  transform: scale(1.08) rotate(-4deg);
}

.fbform-topcard__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fb-text-dark);
  margin: 0 0 4px;
}

.fbform-topcard__desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fb-text-muted);
  margin: 0;
}

.fbform-topcard__desc::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fb-primary);
  border-radius: 2px;
  margin-top: 14px;
}

/* ===================== Main grid ===================== */

.fbform-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.fbform-card,
.fbform-help-card,
.fbform-steps-card {
  background: #fff;
  border: 1px solid var(--fb-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  opacity: 0;
  transform: translateY(20px);
  animation: fbFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.3s;
}

.fbform-card {
  position: relative;
  padding: 26px 30px 28px;
}

.fbform-card__title {
  font-family: var(--fb-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--fb-text-dark);
  margin: 0 0 10px;
}

.fbform-card__underline {
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: var(--fb-primary);
  margin-bottom: 24px;
}

/* ===================== Form fields ===================== */

.fbform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fbform-field {
  margin-bottom: 18px;
}

.fbform-field > label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fb-text-dark);
  margin-bottom: 7px;
}

.fbform-required {
  color: var(--fb-error);
}

.fbform-field input[type="text"],
.fbform-field input[type="email"],
.fbform-field textarea,
.fbform-select-wrap select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--fb-border);
  border-radius: 10px;
  font-family: var(--fb-font-body);
  font-size: 13.5px;
  color: var(--fb-text-dark);
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.fbform-field textarea {
  height: auto;
  min-height: 105px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

.fbform-field input::placeholder,
.fbform-field textarea::placeholder {
  color: var(--fb-placeholder);
}

.fbform-field input:focus,
.fbform-field textarea:focus,
.fbform-select-wrap select:focus {
  outline: none;
  border-color: var(--fb-primary);
  box-shadow: 0 0 0 3px rgba(0, 49, 152, 0.1);
}

.fbform-field.has-error input,
.fbform-field.has-error textarea,
.fbform-field.has-error .fbform-select-wrap select {
  border-color: var(--fb-error);
}

.fbform-field.has-error input:focus,
.fbform-field.has-error textarea:focus,
.fbform-field.has-error .fbform-select-wrap select:focus {
  box-shadow: 0 0 0 3px rgba(224, 52, 44, 0.1);
}

.fbform-select-wrap {
  position: relative;
}

.fbform-select-wrap select {
  appearance: none;
  cursor: pointer;
  padding-right: 36px;
  color: var(--fb-placeholder);
}

.fbform-select-wrap select.has-value {
  color: var(--fb-text-dark);
}

.fbform-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--fb-text-muted);
  pointer-events: none;
}

.fbform-error {
  font-size: 11.5px;
  color: var(--fb-error);
  margin: 5px 0 0;
  display: none;
}

.fbform-field.has-error .fbform-error {
  display: block;
}

/* ----- Radio group ----- */

.fbform-radio-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  flex-wrap: nowrap;
}

.fbform-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fb-text-dark);
  cursor: pointer;
}

.fbform-radio input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.fbform-radio__dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--fb-border);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.fbform-radio__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--fb-primary);
  transform: scale(0);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fbform-radio input:checked + .fbform-radio__dot {
  border-color: var(--fb-primary);
}

.fbform-radio input:checked + .fbform-radio__dot::after {
  transform: scale(1);
}

/* ----- Textarea footer ----- */

.fbform-textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
}

.fbform-char-count {
  font-size: 11px;
  color: var(--fb-text-muted);
  white-space: nowrap;
  margin-left: auto;
}

/* ----- Submit button ----- */

.fbform-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 200px;
  height: 50px;
  background: var(--fb-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--fb-font-body);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 10px 24px rgba(0, 49, 152, 0.2);
}

.fbform-submit-btn:hover {
  background: var(--fb-primary-hover);
  transform: translateY(-2px);
}

.fbform-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===================== Thank-you success state ===================== */

.fbform-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.fbform-success.is-visible {
  display: flex;
  animation: fbFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fbform-success__icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #e6f7ec;
  color: #1f8a52;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  animation: fbPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.fbform-success__title {
  font-family: var(--fb-font-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--fb-text-dark);
  margin: 0 0 8px;
}

.fbform-success__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fb-text-muted);
  max-width: 380px;
  margin: 0 0 24px;
}

.fbform-success__btn {
  background: transparent;
  border: 1.5px solid var(--fb-primary);
  color: var(--fb-primary);
  font-family: var(--fb-font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.fbform-success__btn:hover {
  background: var(--fb-primary);
  color: #fff;
}

/* ===================== Sidebar ===================== */

.fbform-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fbform-help-card {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  animation-delay: 0.4s;
}

.fbform-help-card__title,
.fbform-steps-card__title {
  font-family: var(--fb-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--fb-text-dark);
  margin: 0 0 8px;
}

.fbform-help-card__text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fb-text-muted);
  max-width: 65%;
  margin: 0;
}

.fbform-help-card__icon {
  position: absolute;
  right: 20px;
  bottom: 12px;
  color: var(--fb-primary);
  font-size: 75px;
  animation: fbFloat 3.2s ease-in-out infinite;
}

.fbform-steps-card {
  padding: 26px 28px 30px;
  animation-delay: 0.5s;
  flex: 1;
}

.fbform-steps {
  display: flex;
  flex-direction: column;
  position: relative;
}

.fbform-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 26px;
  padding-left: 2px;
}

.fbform-step:last-child {
  padding-bottom: 0;
}

/* Connecting vertical line between step numbers */
.fbform-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: -2px;
  width: 2px;
  background: var(--fb-border);
}

.fbform-step__number {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fb-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fbform-step__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--fb-primary-tint);
  color: var(--fb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: -5px;
}

.fbform-step__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fb-text-dark);
  margin: 0 0 3px;
}

.fbform-step__desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--fb-text-muted);
  margin: 0;
}

/* ===================== Animations ===================== */

@keyframes fbFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fbPopIn {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fbFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ===================== Bottom Section (FAQ & Contact) ===================== */

.fbform-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.fbform-faq-card,
.fbform-contact-card {
  padding: 30px 32px 34px;
}

.fbform-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fbform-faq-item {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: var(--fb-primary-tint);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(15px);
  animation: fbFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fbform-faq-item:nth-child(1) { animation-delay: 0.1s; }
.fbform-faq-item:nth-child(2) { animation-delay: 0.2s; }
.fbform-faq-item:nth-child(3) { animation-delay: 0.3s; }
.fbform-faq-item:nth-child(4) { animation-delay: 0.4s; }

.fbform-faq-item:hover,
.fbform-faq-item.active {
  background: #e1e9f8;
}

.fbform-faq-item:hover:not(.active) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 49, 152, 0.08);
}

.fbform-faq-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.fbform-faq-item__text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fb-text-dark);
}

.fbform-faq-item__header i {
  font-size: 14px;
  color: var(--fb-primary);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.fbform-faq-item.active .fbform-faq-item__header i {
  transform: rotate(45deg);
}

.fbform-faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.fbform-faq-item__body > div {
  overflow: hidden;
}

.fbform-faq-item__body p {
  margin: 12px 0 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fb-text-muted);
}

.fbform-faq-item.active .fbform-faq-item__body {
  grid-template-rows: 1fr;
}

.fbform-contact-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fbform-contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fbform-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fbform-contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fb-primary-tint);
  color: var(--fb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.fbform-contact-item:hover .fbform-contact-item__icon {
  transform: scale(1.1);
  background: var(--fb-primary);
  color: #fff;
}

.fbform-contact-item__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fbform-contact-item__text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fb-text-dark);
}

.fbform-contact-item__text span {
  font-size: 12.5px;
  color: var(--fb-text-muted);
}

.fbform-contact-graphic {
  font-size: 120px;
  color: var(--fb-primary);
  opacity: 0.9;
  animation: fbFloat 4s ease-in-out infinite;
  margin-right: 10px;
}

/* ===================== Banner ===================== */

.fbform-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fb-primary-tint);
  padding: 24px 32px;
  border-radius: 16px;
  margin-top: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: fbFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
  box-shadow: 0 10px 30px rgba(0, 49, 152, 0.05);
}

.fbform-banner__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fbform-banner__icon {
  position: relative;
  font-size: 48px;
  color: var(--fb-primary);
  animation: fbFloat 3.5s ease-in-out infinite;
}

.fbform-banner__bubble {
  position: absolute;
  top: -8px;
  right: -18px;
  font-size: 20px;
  color: var(--fb-primary);
  background: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: fbPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

.fbform-banner__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fbform-banner__title {
  font-family: var(--fb-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--fb-text-dark);
  margin: 0;
}

.fbform-banner__desc {
  font-size: 13.5px;
  color: var(--fb-text-muted);
  margin: 0;
}

.fbform-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fb-primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--fb-font-body);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.fbform-banner__btn:hover {
  background: var(--fb-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 49, 152, 0.2);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */

@media (max-width: 1024px) {
  .fbform-topcards {
    grid-template-columns: 1fr;
  }

  .fbform-grid,
  .fbform-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .fbform-section {
    padding: 48px 16px 60px;
  }

  .fbform-card,
  .fbform-help-card,
  .fbform-steps-card {
    border-radius: 14px;
  }

  .fbform-card {
    padding: 24px 20px 28px;
  }

  .fbform-card__title {
    font-size: 18px;
  }

  .fbform-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fbform-topcard {
    padding: 18px 18px;
  }

  .fbform-help-card,
  .fbform-steps-card {
    padding: 22px 20px;
  }

  .fbform-help-card__text {
    max-width: 75%;
  }

  .fbform-help-card__icon {
    font-size: 55px;
    bottom: 15px;
    right: 15px;
  }

  .fbform-radio-row {
    flex-wrap: wrap;
    height: auto;
    gap: 12px 16px;
    padding-bottom: 8px;
  }

  .fbform-submit-btn {
    width: 100%;
  }

  .fbform-faq-card,
  .fbform-contact-card {
    padding: 24px 20px 28px;
  }

  .fbform-contact-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .fbform-contact-graphic {
    display: none;
  }

  .fbform-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 24px 20px;
  }

  .fbform-banner__left {
    flex-direction: column;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fbform-topcard,
  .fbform-card,
  .fbform-help-card,
  .fbform-steps-card,
  .fbform-success,
  .fbform-success__icon,
  .fbform-help-card__icon {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
