@import url('https://careers-chatbot-content.clearcompany.com/chatbot.css');

/* 
 * Styles for ClearCompany Jobs Board
 * Note: Google Font 'DM Sans' is enqueued via PHP (wp_enqueue_style) for security and performance.
 */

:root {
  --cc-bg-color: #F0F8FB;
  --cc-text-dark: #505665;
  --cc-text-light: #7b8e9b;
  --cc-blue: #2299B4;
  --cc-blue-light: #E1F3F9;
  --cc-orange: #F2811D;
  --cc-search-orange: #EC8209;
  --cc-white: #ffffff;
  --cc-border: #8F91AB33;
  --cc-font-family: 'DM Sans', sans-serif;
  --cc-border-radius: 5px;
  --cc-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

#cc-jobs-board-root,
#cc-single-job-root {
  font-family: var(--cc-font-family);
  font-size: clamp(12px, 2vw, 18px);
  /* background-color: var(--cc-bg-color); */
  /* padding: clamp(24px, 5vw, 80px) clamp(24px, 8vw, 120px); */
  /* min-height: 100vh; */
  box-sizing: border-box;
  color: var(--cc-text-dark);
}

#cc-jobs-board-root *,
#cc-single-job-root * {
  box-sizing: border-box;
}

/* Header Section */
.cc-header {
  margin: 0 0 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.cc-header-title {
  flex: 1;
  min-width: 250px;
}

.cc-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cc-blue);
  margin-bottom: 5px;
  font-weight: 400;
}

.cc-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin: 0;
  color: var(--cc-text-dark);
}


.cc-header-tagline {
  color: #505665;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(14px, 2vw, 18px);
  font-style: normal;
  font-weight: 400;
  line-height: 115%;
  /* 20.7px */
  margin: 0;
  width: clamp(300px, 43.65vw, 838px);
  align-self: flex-end;
}

@media (max-width: 1024px) {
  .cc-header-tagline {
    width: clamp(260px, 55vw, 600px);
  }
}

@media (max-width: 768px) {
  .cc-header-tagline {
    width: 100%;
  }
}

/* Search and Filters */
.cc-search-wrapper {
  margin: clamp(1.5rem, 1.409rem + 0.3883vw, 1.875rem) 0;
  border-radius: var(--cc-border-radius);
}

.cc-search-form-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cc-search-input-wrapper {
  position: relative;
  width: 100%;
}

.cc-search-input-new {
  width: 100%;
  padding: 14px 40px 14px 15px;
  border: 1px solid var(--cc-border) !important;
  border-radius: var(--cc-border-radius);
  font-size: 14px;
  box-sizing: border-box;
  color: var(--cc-text-dark);
  outline: none;
  font-family: var(--cc-font-family);
  background: var(--cc-white);
  box-shadow: var(--cc-shadow);
}

.cc-search-input-new::placeholder {
  color: var(--cc-text-light);
}

.cc-search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  fill: var(--cc-text-light);
}

.cc-search-filters-row {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.cc-select-new {
  flex: 1;
  min-width: 150px;
  padding: 14px 35px 14px 15px;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-border-radius);
  font-size: 14px;
  background-color: var(--cc-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232a3a46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  color: var(--cc-text-dark);
  outline: none;
  font-family: var(--cc-font-family);
  box-shadow: var(--cc-shadow);
}

.cc-search-btn-new {
  background-color: var(--cc-search-orange);
  color: var(--cc-white);
  border: none;
  padding: 14px 24px;
  border-radius: var(--cc-border-radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  font-family: var(--cc-font-family);
  transition: opacity 0.2s ease;
}

.cc-search-btn-new:hover,
.cc-search-btn-new:focus {
  background-color: var(--cc-search-orange) !important;
  color: var(--cc-white) !important;
  opacity: 0.9;
}

.cc-reset-btn {
  background: none !important;
  border: none !important;
  color: var(--cc-blue) !important;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0 10px;
  font-family: var(--cc-font-family);
}

.cc-reset-btn:hover,
.cc-reset-btn:focus {
  color: var(--cc-blue) !important;
  background: none !important;
  text-decoration: underline;
}

/* Job List */
.cc-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cc-job-card {
  background: var(--cc-white);
  padding: clamp(1rem, 0.3667rem + 2.6667vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--cc-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 20px;
  border: 1px solid rgba(34, 153, 180, 0.08);
}

.cc-job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.cc-job-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-job-title {
  font-size: clamp(20px, 2vw, 14px);
  font-weight: 600;
  color: var(--cc-text-dark);
  margin: 0;
}

.cc-job-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: clamp(18px, 2vw, 12px);
  color: #64748B;
  flex-wrap: wrap;
}

.cc-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cc-meta-item-single {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ECN-White, #F0F7FA);
  font-family: "DM Sans";
  font-size: clamp(0.875rem, 0.7536rem + 0.5178vw, 1.375rem);
  font-style: normal;
  font-weight: 400;
  line-height: 115%;
}

.cc-meta-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  color: #2299B4;
}

.cc-tag {
  background-color: #E1F3F9;
  color: #2299B4;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: clamp(16px, 2vw, 12px);
  font-weight: 400;
}

.cc-apply-btn {
  background-color: transparent;
  color: var(--cc-orange);
  border: 1px solid var(--cc-orange);
  padding: 12px 24px;
  font-size: clamp(18px, 2vw, 12px);
  font-weight: 500;
  border-radius: 34px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.cc-apply-btn:hover {
  background-color: var(--cc-orange);
  color: var(--cc-white);
}

/* Pagination */
.cc-pagination {
  margin: 40px 0 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.cc-page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--cc-white);
  border: none;
  border-radius: 50%;
  font-size: 14px;
  color: var(--cc-text-dark);
  cursor: pointer;
  box-shadow: var(--cc-shadow);
  transition: all 0.2s ease;
}

.cc-page-btn.active {
  background-color: var(--cc-blue);
  color: var(--cc-white);
}

.cc-page-btn:hover:not(.active):not(:disabled) {
  background-color: var(--cc-border);
}

.cc-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.cc-dots {
  color: var(--cc-text-light);
}

/* Utilities */
.cc-loading {
  text-align: center;
  padding: 40px;
  color: var(--cc-text-light);
}

.cc-error {
  text-align: center;
  padding: 40px;
  color: #d32f2f;
  background: #ffebee;
  border-radius: var(--cc-border-radius);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .cc-job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cc-apply-btn {
    width: 100%;
    justify-content: center;
  }

  .cc-controls {
    flex-direction: column;
    width: 100%;
  }

  .cc-input-group {
    flex-direction: column;
    width: 100%;
  }

  .cc-search-input,
  .cc-select {
    width: 100%;
    border-left: none;
    border-bottom: 1px solid var(--cc-border);
  }

  /* .cc-search-btn {
    width: 100%;
  } */
}

/* Single Job View */
#cc-single-job-root .container-global,
#cc-single-job-root .cc-single-hero {
  max-width: 1920px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Single Job View */
.cc-single-hero {
  background-color: #2a3a46;
  background-image: url('../assets/gradient-wp.webp'), url('../assets/careers-hero-image.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--cc-white);
  padding: clamp(1.5rem, 0.6505rem + 3.6246vw, 5rem) clamp(1.5rem, 0.0437rem + 6.2136vw, 7.5rem);
  position: relative;
  height: clamp(17.5rem, 12.949rem + 19.4175vw, 36.25rem) !important;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.cc-single-title {
  font-family: var(--cc-font-family);
  font-size: clamp(28px, 4vw, 50px) !important;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: var(--cc-white);
  line-height: 1.2;
  max-width: 785px;

}

.cc-single-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 18px;
}

.cc-single-hero .cc-meta-item {
  color: rgba(255, 255, 255, 0.9);
  gap: 12px;
}

.cc-single-hero .cc-tag {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--cc-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 13px;
}

.cc-single-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  text-decoration: none;
  width: 280px;
  height: 50px;
  font-size: 16px;
  font-weight: 600;
  background-color: #EC8209;
  color: #fff;
  border: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cc-single-apply:hover {
  background-color: #EC8209;
  color: #fff;
}

.cc-single-hero .cc-single-apply {
  margin-bottom: 28px;
}

.cc-pay-block {
  background-color: #F0F8FB;
  margin-top: 40px;
  margin-bottom: 40px;
  margin-left: -30px;
  margin-right: -30px;
  padding: 30px;
  border-radius: 4px;
}

.cc-pay-title {
  color: #1a3c50;
  /* Dark blue matching the image */
  font-size: 20px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
}

.cc-pay-list {
  margin-top: 0;
  margin-bottom: 30px;
  padding-left: 20px;
  color: #556a77;
  font-size: 16px;
  line-height: 1.5;
}

.cc-pay-block .cc-single-footer {
  margin-top: 20px;
}

.cc-single-share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.cc-share-icon {
  color: var(--cc-white);
  opacity: 0.8;
  transition: opacity 0.2s ease;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0 !important;
  background: transparent;
}

.cc-copy-btn {
  width: 40px;
  height: 40px;
  border: none ! important;
}

.cc-copy-btn:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

.cc-share-title {
  color: #F0F7FA;
  font-family: "DM Sans";
  font-size: clamp(0.75rem, 0.659rem + 0.3883vw, 1.125rem);
  font-style: normal;
  font-weight: 700;
  line-height: 115%;
}

.cc-share-icon:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
}

.cc-single-body {
  background: var(--cc-white);
  padding: 40px;
  border-radius: var(--cc-border-radius);
  box-shadow: var(--cc-shadow);
  color: var(--cc-text-dark);
  line-height: 1.6;
}

.cc-single-description h3 {
  color: var(--cc-text-dark);
  display: block;
}

.cc-single-description p strong {
  color: var(--cc-text-dark);
}

.cc-single-description ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.cc-single-description li {
  margin-bottom: 10px;
}

.cc-single-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--cc-border);
}

/* ═══════════════════════════════════════════════════════
   ClearCompany Chatbot Widget Styles
   ═══════════════════════════════════════════════════════ */

/* ── Supplementary Layout Styles ─────────────────────── */
/* The official CSS provides containers, but we need some inner layout */

.cc-careersite-bot {
  flex-direction: column;
  z-index: 9999;
  border-radius: 10px;
  overflow: hidden;
}

/* Fix theme borders overriding FAB */
.ccui-button--root.toggle,
#jl-chat-fab {
  background-color: var(--color--dark-blue) !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(37, 70, 119, 0.4) !important;
}

.ccui-button--root.toggle img,
#jl-chat-fab img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.ccui-button--root.toggle svg,
#jl-chat-fab svg {
  width: 28px !important;
  height: 28px !important;
  fill: currentColor !important;
}

.ccui-chatWindow--header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px;
  background: var(--color--blue-300);
  color: var(--color--dark-blue);
  border-radius: 10px 10px 0 0;
  flex-shrink: 0;
}

.ccui-chatWindow--header button {
  background: none;
  border: none;
  color: var(--color--dark-blue);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.ccui-chatWindow--header button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.ccui-chatWindow--body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: var(--color--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ccui-chatWindow--footer {
  flex-shrink: 0;
  background: var(--color--white);
  border-radius: 0 0 4px 4px;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 15px;
}

.quick-button-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ccui-button--secondary {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  background: #ffffff;
  color: #3b82f6;
  border: 1px solid #3b82f6;
  width: 100%;
}

.ccui-button--secondary:hover {
  background: #f0f7ff;
  border-color: #2563eb;
  color: #2563eb;
}

/* ── Messages ────────────────────────────────────────── */
.ccui-chatBubble--root {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--color--gray-100);
  border-radius: 8px;
  padding: 16px;
  color: var(--color--primary-black);
  max-width: 90%;
  margin-bottom: 10px;
}

.jl-chat-msg {
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.jl-chat-msg--bot {
  /* Handled by ccui-chatBubble--root now */
}

.jl-chat-msg--user {
  background: var(--color--light-blue);
  color: var(--color--white);
  border-radius: 8px;
  padding: 12px 16px;
  align-self: flex-end;
  max-width: 85%;
}

/* ── Typing Indicator ────────────────────────────────── */
.jl-chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px;
  background: var(--color--gray-100);
  border-radius: 8px;
  align-self: flex-start;
  width: fit-content;
}

.jl-chat-typing__dot {
  width: 6px;
  height: 6px;
  background: var(--color--gray-400);
  border-radius: 50%;
  animation: jlTypingBounce 1.4s infinite ease-in-out both;
}

.jl-chat-typing__dot:nth-child(1) {
  animation-delay: 0s;
}

.jl-chat-typing__dot:nth-child(2) {
  animation-delay: 0.16s;
}

.jl-chat-typing__dot:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes jlTypingBounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Input Area ──────────────────────────────────────── */
.jl-chat-input-area {
  display: flex !important;
  align-items: center !important;
  background: var(--color--white) !important;
  border: 1px solid var(--color--gray-300) !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  margin-bottom: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 4px !important;
}

.jl-chat-input {
  flex: 1 !important;
  border: none !important;
  padding: 8px !important;
  margin: 0 !important;
  font-size: 14px !important;
  outline: none !important;
  background: transparent !important;
  color: var(--color--primary-black) !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: normal !important;
  max-width: none !important;
}

.jl-chat-input::placeholder {
  color: var(--color--gray-400) !important;
}

.jl-chat-input:disabled {
  cursor: not-allowed !important;
  background: transparent !important;
}

.jl-chat-attach-btn,
.jl-chat-send-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border: none !important;
  background: transparent !important;
  color: var(--color--gray-400) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 4px !important;
}

.jl-chat-attach-btn:hover,
.jl-chat-send-btn:hover {
  color: var(--color--dark-blue) !important;
}

.jl-chat-attach-btn:disabled,
.jl-chat-send-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.jl-chat-attach-btn svg,
.jl-chat-send-btn svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

/* ── End of Chat Banner ──────────────────────────────── */
.jl-chat-ended {
  text-align: center;
  padding: 12px 16px;
  color: var(--color--gray-500);
  font-size: 13px;
  font-weight: 500;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .jl-chat-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .jl-chat-fab {
    bottom: 16px;
    right: 16px;
  }
}