.subscribe-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    width: 100%;
    padding-bottom: 20px;
}
.subscribe-form input {
    padding: 0.85rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgb(237 28 37 / 39%);
    background: rgb(255 74 81 / 26%);
    color: #f5f5f7;
    font: inherit;
}

.subscribe-form button {
    padding: 0.85rem 1.8rem;
    border-radius: 14px;
    border: none;
    background: #ff3d32;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(255, 61, 50, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 768px) {
    .subscribe-form button {
        display: none;
    }
}

/* Autocomplete dropdown styled to match input */
.autocomplete-wrapper { position: relative; }
.autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 57px;
    background: radial-gradient(circle at 12% 18%, rgba(255, 61, 50, 0.22), transparent 55%),
            radial-gradient(circle at 88% 16%, rgba(56, 189, 248, 0.14), transparent 60%),
            linear-gradient(155deg, rgba(12, 12, 18, 0.95), rgba(7, 7, 10, 0.94));
    border: 1px solid rgb(237 28 37 / 39%);
    border-radius: 14px;
    color: #f5f5f7;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    z-index: 40;
    padding: 6px 6px;
    -webkit-overflow-scrolling: touch;
    width: 85%;
}

.autocomplete-item {
    display: block;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    color: inherit;
    font: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 3px 0;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: rgba(255,61,50,0.12);
}

/* small scrollbar style */
.autocomplete-list::-webkit-scrollbar { width: 8px; }
.autocomplete-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 8px; }
/* Job search autocomplete styles */
.job-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
}
.job-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
}
.job-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: radial-gradient(circle at 12% 18%, rgba(255, 61, 50, 0.22), transparent 55%),radial-gradient(circle at 88% 16%, rgba(56, 189, 248, 0.14), transparent 60%),linear-gradient(155deg, rgba(12, 12, 18, 0.95), rgba(7, 7, 10, 0.94));
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 24px rgba(16,24,40,0.08);
  border-radius: 8px;
  max-height: 320px;
  overflow: auto;
  z-index: 1000;
  padding: 6px 0;
  width: 85%;
  margin-top: -26px;
}
.job-search-suggestion {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 120ms ease;
  align-items: flex-start;
}
.job-search-suggestion:hover,
.job-search-suggestion.active {
  background: #ed1d252b;
  color: #22d3ee;
}
.job-search-title {
  font-weight: 600;
  color: #f8fafc;
  font-size: 0.95rem;
}
.job-search-meta {
  font-size: 0.85rem;
  color: #6b7280;
}
.job-search-no-results {
  padding: 12px;
  color: #6b7280;
  text-align: center;
}
/* small highlight for matched text */
.job-search-hit { 
  background: linear-gradient(90deg, rgba(255,214,102,0.36) 0%, rgba(255,214,102,0.12) 100%);
  border-radius: 3px;
}
/* responsive */
@media (max-width: 480px) {
  .job-search-wrapper { max-width: 100%; }
  .job-search-suggestions { max-height: 220px; }
}

/* Autocomplete dropdown styled to match input */
.autocomplete-wrapper { position: relative; }
.autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 57px;
    background: radial-gradient(circle at 12% 18%, rgba(255, 61, 50, 0.22), transparent 55%),
            radial-gradient(circle at 88% 16%, rgba(56, 189, 248, 0.14), transparent 60%),
            linear-gradient(155deg, rgba(12, 12, 18, 0.95), rgba(7, 7, 10, 0.94));
    border: 1px solid rgb(237 28 37 / 39%);
    border-radius: 14px;
    color: #f5f5f7;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    z-index: 40;
    padding: 6px 6px;
    -webkit-overflow-scrolling: touch;
    width: 85%;
}

.autocomplete-item {
    display: block;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    color: inherit;
    font: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 3px 0;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: rgba(255,61,50,0.12);
}

/* small scrollbar style */
.autocomplete-list::-webkit-scrollbar { width: 8px; }
.autocomplete-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 8px; }

/* Job Search Suggestions - Using JobSearch class */
.job-search-suggestions {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: radial-gradient(circle at 12% 18%, rgba(255, 61, 50, 0.22), transparent 55%),
            radial-gradient(circle at 88% 16%, rgba(56, 189, 248, 0.14), transparent 60%),
            linear-gradient(155deg, rgba(12, 12, 18, 0.95), rgba(7, 7, 10, 0.94)) !important;
    border: 1px solid rgb(237 28 37 / 39%) !important;
    border-radius: 14px !important;
    color: #f5f5f7 !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
    z-index: 1000 !important;
    padding: 6px 6px !important;
    -webkit-overflow-scrolling: touch !important;
    display: none !important;
    margin: 0 !important;
}

.job-search-suggestions[style*="display: block"],
.job-search-suggestions.active {
    display: block !important;
}

.job-search-suggestion {
    display: block !important;
    padding: 0.85rem 1.2rem !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    color: inherit !important;
    font: inherit !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 3px 0 !important;
    transition: background 120ms ease !important;
}

.job-search-suggestion:hover,
.job-search-suggestion.active {
    background: rgba(255,61,50,0.12) !important;
}

.job-search-title {
    font-weight: 600 !important;
    color: #f8fafc !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.job-search-meta {
    font-size: 0.85rem !important;
    color: #6b7280 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.job-search-no-results {
    padding: 12px !important;
    color: #6b7280 !important;
    text-align: center !important;
}

/* scrollbar style */
.job-search-suggestions::-webkit-scrollbar { width: 8px !important; }
.job-search-suggestions::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18) !important; border-radius: 8px !important; }
