/* JobWhois — mobile layout and touch-friendly controls */

@media (max-width: 767.98px) {
  .form-control,
  .form-select,
  input[type="email"],
  input[type="password"],
  input[type="text"],
  input[type="tel"],
  input[type="search"],
  input[type="url"],
  textarea {
    font-size: 16px !important;
  }
}

.btn,
.jw-nav-actions .btn,
.jw-google-signin-btn,
.jw-seeker-panel__body .jw-seeker-google-btn {
  min-height: 44px;
}

.jw-google-signin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
}

@media (min-width: 576px) {
  .jw-google-signin-btn {
    width: auto;
    max-width: 28rem;
  }
}

main.container {
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
}

.jw-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  padding: 0.45rem 0.6rem;
}

.jw-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
}

@media (max-width: 991.98px) {
  .jw-navbar .navbar-collapse {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

.jw-nav-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

@media (min-width: 992px) {
  .jw-navbar .navbar-collapse {
    align-items: center;
  }

  .jw-nav-actions {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 0.5rem;
  }

  .jw-navbar .jw-nav-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    line-height: 1.25;
    min-height: 2rem;
    margin: 0;
    vertical-align: middle;
  }

  .jw-navbar .jw-nav-actions .jw-nav-post-jobs {
    padding-left: 0.85rem;
    padding-right: 0.95rem;
  }
}

.jw-nav-actions .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jw-nav-candidate-signin {
  white-space: nowrap;
}

/* Highlighted employer acquisition CTA in navbar */
.jw-nav-post-jobs {
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  background: linear-gradient(
    120deg,
    #f97316 0%,
    #f43f5e 28%,
    #a855f7 55%,
    #2563eb 78%,
    #14b8a6 100%
  ) !important;
  background-size: 220% 220% !important;
  box-shadow:
    0 2px 0 rgba(15, 23, 42, 0.12),
    0 8px 22px rgba(244, 63, 94, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 1px rgba(15, 23, 42, 0.25);
  animation: jw-nav-post-jobs-shift 7s ease-in-out infinite;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.jw-nav-post-jobs__icon {
  display: inline-block;
  margin-right: 0.2rem;
  font-size: 0.85em;
  opacity: 0.95;
  animation: jw-nav-post-jobs-sparkle 1.8s ease-in-out infinite;
}

.jw-nav-post-jobs:hover,
.jw-nav-post-jobs:focus {
  color: #fff !important;
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow:
    0 3px 0 rgba(15, 23, 42, 0.1),
    0 12px 28px rgba(168, 85, 247, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

@keyframes jw-nav-post-jobs-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes jw-nav-post-jobs-sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.15) rotate(12deg);
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  .jw-nav-post-jobs {
    order: -2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jw-nav-post-jobs,
  .jw-nav-post-jobs__icon {
    animation: none;
  }
}

.jw-nav-user {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  line-height: 1.35;
  padding: 0.25rem 0.1rem;
  word-break: break-word;
}

@media (min-width: 992px) {
  .jw-nav-user {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.15rem;
  }
}

#jw-cookie-banner {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 575.98px) {
  .jw-el-sign-hero {
    padding: 1.35rem 1rem 2.65rem;
    border-radius: 16px;
  }

  .jw-el-sign-top {
    flex-direction: column;
    align-items: stretch;
  }

  .jw-el-sign-top .btn {
    width: 100%;
    min-height: 44px;
  }

  .jw-el-sign-card-wrap {
    margin-top: -1.85rem;
  }

  .jw-el-sign-card .card-body {
    padding: 1.35rem 1.1rem 1.5rem;
  }

  .jw-el-sign-submit {
    min-height: 48px;
    font-size: 1rem;
  }

  .jw-seeker-panel {
    max-width: 100%;
    transform: none;
  }

  .jw-login-stamp-rubber {
    width: 5.25rem;
    height: 5.25rem;
    top: -2.35rem;
    left: -2.35rem;
    font-size: 0.95rem;
  }

  .jw-seeker-panel__body .jw-seeker-google-btn {
    min-height: 48px;
    font-size: 0.9375rem;
    padding: 0.72rem 1rem;
  }

  .jobs-gate-inner,
  .apply-gate-inner {
    padding: 1.35rem 1.1rem !important;
  }

  .jobs-gate-banner {
    padding: 1.15rem 1.1rem;
    border-radius: 14px;
  }

  .jw-emp-hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .jw-emp-btn-logout {
    align-self: stretch;
    text-align: center;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
