:root {
  /* Colors */
  --background-joboffer-1: #4f75aa;
  --background-joboffer-2: #82ccc0;
  --joboffer-color-h1: #3e3e3b;
  --text-primary: #333;
  --text-secondary: #666;
  --white: #fff;
  
  /* Sizes */
  --icon-size: 40px;
  --thumb-size: 150px;
  --container-max-width: 1200px;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 36px;
  --radius-lg: 202px;
  
  /* Font sizes */
  --font-xs: 14px;
  --font-sm: 16px;
  --font-md: 20px;
  --font-lg: 24px;
  --font-xl: 32px;
  --font-xxl: 60px;

    /* Spacing variables */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --side-padding: 10px;
    --max-width: 1200px;
}

/* Main container */

.joboffers {
    position: relative;
    border-radius: var(--form-border-radius);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    padding: 20px 0 40px;
}
.joboffers-background {
  position: absolute;
  top: 0;
  /* left: 0; */
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    237.83% 141.19% at 41.07% 75.57%,
    var(--background-joboffer-2) 0%,
    var(--background-joboffer-1) 100%
  );
  opacity: 0.35;
  z-index: -1;
}

.joboffers .offer_details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) var(--side-padding);
  flex-wrap: wrap;
  flex-direction: row;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 66%;
}

.joboffers .job-data-block {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs);
  font-size: var(--font-sm);
  color: var(--text-primary);
  width: 150px;
  flex-direction: column;
}

.joboffers .data-joboffer {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}
.joboffers div.message{
  width: 45%;
  margin: 1rem auto;
  height: 100px;
  border-radius: var(--input-border-radius);
  resize: none;
  padding: 15px;
  display: block;
  border: 1px solid var(--checkbox-border-color);
  background-color:white
  }
  textarea#message {
    border:none;
    width:100%;
    height:100%;
     resize: none;
  }
.joboffers .offer_date {
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

/* Icons and images */
.joboffers .icon {
  width: var(--icon-size);
  height: var(--icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.joboffers .icon img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Featured section */
.joboffers .Featured {
  text-align: center;
  margin: var(--spacing-lg) 0;
}
.joboffers .Featured .icon{
  margin:0 auto;
}
.joboffers .thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  margin: 0 auto;
}

/* Typography */
.joboffers h1.title {
  font-size: var(--font-xxl);
  text-align: center;
  font-weight: 400;
  color: var(--joboffer-color-h1);
  margin: var(--spacing-md) 0;
}

 .joboffers h3.title {
  font-size: var(--font-lg);
  text-align: center;
  text-decoration: underline;
  margin: var(--spacing-md) 0;
  color: var(--joboffer-color-h1);
}

.joboffers h3 {
  font-size: var(--font-lg);
  text-align: center;

  margin: var(--spacing-md) 0;
  color: var(--joboffer-color-h1);
}

/* Basic input fields and select */
.joboffers-input,
select#other_province {
  width: 250px;
  height: 40px;
  border-radius: var(--input-border-radius);
  background: var(--checkbox-background);
  border: 1px solid var(--checkbox-border-color);
  padding-left: 10px;
  font-size: 16px;
}
/* Input container */
.joboffers-inputs {
  display: flex;
  flex-wrap: wrap;
  width: 50%;
  gap: 1rem;
  justify-content: center;
  /* margin-bottom: 2rem; */
  align-content: space-around;
  align-items: center;
  justify-items: center;
  /* width: 100%; */
  flex-direction: row;
  margin: 0 auto;
}

/* Description sections */
.joboffers .description-recruiter {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-md) auto;
    width: 90%;
    text-align:center;
}

.joboffers .description-recruiter-slogan {
  font-size: var(--font-md);
  font-weight: 600;
  text-decoration: underline;
  margin-bottom: var(--spacing-md);
}
a.shareButton{
  cursor: pointer;
}
.joboffers .description-recruiter-info {
  margin: var(--spacing-md) 0;
}

.joboffers .description-recruiter-contact {
  font-weight: 500;
}

.joboffers .description-recruiter-contact-no {
  font-size: var(--font-xl);
  font-weight: 600;
  color: var(--text-primary);
}
.error{
  border-color:red;
  color:red;
}
/* Call button */
.joboffers .description-tel {
  display: inline-block;
  width: 25%;
  padding: var(--spacing-sm);
  background: linear-gradient(
    0deg,
    var(--background-joboffer-2) 0%,
    var(--background-joboffer-1) 75%
  );
  border-radius: var(--radius-md);
  color: var(--white);
  text-decoration: none;
  font-size: var(--font-md);
  text-align: center;
  transition: transform 0.3s ease;
}

.joboffers .description-tel:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    0deg,
    var(--background-joboffer-1) 0%,
    var(--background-joboffer-2) 75%
  );
}

/* Content tabs */
.joboffers .description-tab-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-md) auto;
  width: 90%;
}
.decription-main.description-tab-content p.description {
  margin-left: 110px;
  margin-right: 100px;
}
.joboffers .description-tab {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  width: 70%;
  flex-direction: row;
  align-content: center;
  margin: 0 auto;
  padding-bottom: 70px;
  /* column-count: 3; */
  justify-content: space-between;
}
/* Action buttons */
.joboffers .action {
  display: flex;
  justify-content: flex-end;
  padding: var(--spacing-md);
}

.joboffers .gets {
  display: flex;
  gap: var(--spacing-md);
}

.joboffers .gets img {
  width: 48px;
  transition: opacity 0.joboffers .3s ease;
}

.joboffers .gets a:hover img {
  opacity: 0.7;
}
.joboffers .form-field label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color);
}
.joboffers .form-fields {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  /* max-width: 800px; */
  margin: 0 auto 2rem 9px;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 70%;
  margin: 0 auto;
}
.joboffers .joboffers-field-checkbox {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
}
.joboffers .joboffers-field-checkbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  border: 2px solid var(--checkbox-border-color);
  background-color: var(--checkbox-background);
  border-radius: 4px;
  transition: all var(--transition-duration) ease;
  box-sizing: border-box;
}
.joboffers .joboffers-field-checkbox::after {
  content: '';
  position: absolute;
  display: none;
  left: 50%;
  top: 45%;
  width: 6px;
  height: 12px;
  border: solid var(--checkbox-background);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.joboffers .joboffers-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.joboffers .joboffers-field-checkbox:has(.joboffers-checkbox:checked)::before {
  border-color: var(--checkbox-check-color);
  background-color: var(--checkbox-check-color);
}
.joboffers .joboffers-field-checkbox:has(.joboffers-checkbox:checked)::after {
  display: block;
}
.joboffers .joboffers-field-checkbox:hover::before {
  border-color: var(--checkbox-hover-border-color);
}
.joboffers .joboffers-field-checkbox:has(.joboffers-checkbox:focus-visible)::before {
  outline: 2px solid var(--checkbox-active-border-color);
  outline-offset: 2px;
}
.joboffers .joboffers-field-checkbox:has(.joboffers-checkbox[required]) + span::after {
  content: '*';
  color: var(--required-color);
  margin-left: 4px;
}
/* Submit button */
.joboffers .joboffers-form input[type="submit"] {
margin: 2rem auto;
width: 250px;
height: 40px;
background: linear-gradient(
  0deg,
  var(--background-joboffer-2) 0%,
  var(--background-joboffer-1) 75%
);
border-radius: var(--input-border-radius);
border: none;
color: var(--checkbox-background);
font-size: 20px;
cursor: pointer;
display: block;
transition: background var(--transition-duration);
}

.joboffers .joboffers-form input[type="submit"]:hover {
background: linear-gradient(
  0deg,
  var(--background-joboffer-1) 0%,
  var(--background-joboffer-2) 75%
);
}

.joboffers #form-response {
  width: 100%;
  max-width: 600px;
  margin: var(--notice-margin) auto;
}
.joboffers .notice {
  position: relative;
  padding: var(--notice-padding);
  margin-bottom: var(--notice-margin);
  border: 1px solid transparent;
  border-radius: var(--notice-border-radius);
  animation: slideIn 0.5s ease-out;
}
.joboffers .notice-success {
  background-color: var(--success-background);
  border-color: var(--success-border);
  color: var(--success-text);
  box-shadow: 0 2px 4px var(--success-shadow);
}

.joboffers .is-dismissible {
  padding-right: 38px;
  position: relative;
}
.joboffers .notice-error  {
  background-color: #ff000026;
  border-color:  #ff00001c;
  color:  #ff0000;
  box-shadow: 0 2px 4px var(--success-shadow);
}
.joboffers .notice-error p,
.joboffers .notice-success p {
  margin: 0;
  font-size: var(--notice-font-size);
  line-height: var(--notice-line-height);
  text-align: center;
  font-weight: 500;
}
.joboffers .notice-error.is-dismissible::after {
  content: 'x';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 20px;
   color:  #ff0000;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
@keyframes slideIn {
  from {
      transform: translateY(-20px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}
.joboffers .is-dismissible::after {
  content: 'x';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--success-text);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.joboffers .is-dismissible::after:hover {
  opacity: 1;
}
/* Responsive Design */
@media (max-width: 1200px) {
  .joboffers {
    padding: var(--spacing-md);
  }

  .joboffers h1.title {
    font-size: var(--font-xl);
  }

  .joboffers .description-recruiter {
    width: 50%;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }
  .joboffers div.message {
    width: 90%;
    margin: 1rem auto;
    height: 100px;
    border-radius: var(--input-border-radius);
    resize: none;
    padding: 15px;
    display: block;
    border: 1px solid var(--checkbox-border-color);
    background-color: white;
    margin-left: 7px;
}
.joboffers-inputs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
    justify-content: center;
    /* margin-bottom: 2rem; */
    align-content: space-around;
    align-items: center;
    justify-items: center;
    /* width: 100%; */
    flex-direction: row;
    margin: 0 auto;
}
  .joboffers {
    padding: var(--spacing-sm);
  }

  .joboffers .joboffers-background {
    border-radius: calc(var(--radius-lg) / 2);
  }

  .joboffers .offer_details {
    justify-content: center;
    text-align: center;
  }

  .joboffers .description-recruiter {
    width: 90%;
    padding: var(--spacing-md);
    height: 280px;
  }
.joboffers .description-recruiter-slogan{
  margin-top: 40px;
}
  .joboffers .description-tab-content {
    padding: var(--spacing-lg);
  }

  .joboffers .description-tab {
    gap: var(--spacing-md);
  }

  .joboffers .job-data-block,
  .joboffers .data-joboffer {
    width: 100%;
    justify-content: center;
  }
  .joboffers .gets {
    justify-content: center;
    width: 100%;
  }

  .joboffers .action {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .joboffers h1.title {
    font-size: var(--font-lg);
  }

  .joboffers h3.title {
    font-size: var(--font-md);
  }

  .joboffers .description-recruiter-contact-no {
    font-size: var(--font-lg);
  }

  .joboffers .thumb {
    width: calc(var(--thumb-size) * 0.8);
    height: calc(var(--thumb-size) * 0.8);
  }

  .joboffers .description-tab-content {
    padding: var(--spacing-md);
  }
}

/* GÅ‚Ã³wny kontener ustawieÅ„ */
.wrap.stationrecruitment {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* NagÅ‚Ã³wek */
.wrap.stationrecruitment h2 {
    font-size: 23px;
    font-weight: 400;
    margin: 0 0 25px;
    padding: 0;
    color: #1d2327;
    border-bottom: 1px solid #c3c4c7;
    padding-bottom: 15px;
}

/* Formularz */
#st-edit-setings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Pola formularza */
.wrap.stationrecruitment .form-field {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f1;
}

/* Ostatnie pole formularza */
.wrap.stationrecruitment .form-field:last-of-type {
    border-bottom: none;
}

/* Labels */
.wrap.stationrecruitment .form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 10px;
}

/* Pola input */
.wrap.stationrecruitment .form-field input[type="text"],
.wrap.stationrecruitment .form-field input[type="time"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 2;
    transition: all 0.2s ease;
}

/* Hover na inputach */
.wrap.stationrecruitment .form-field input:hover {
    border-color: #2271b1;
}

/* Focus na inputach */
.wrap.stationrecruitment .form-field input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Pola czasu */
.wrap.stationrecruitment .sale_price_dates_fields {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wrap.stationrecruitment input[type="time"] {
    max-width: 150px !important;
}

/* Link anulowania */
.wrap.stationrecruitment .cancel_sale_schedule {
    display: inline-block;
    padding: 5px 10px;
    color: #d63638;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.wrap.stationrecruitment .cancel_sale_schedule:hover {
    color: #d63638;
    text-decoration: underline;
}

/* Przycisk zapisz */
.wrap.stationrecruitment .submit {
    padding: 20px 0 0;
    margin-top: 20px;
    border-top: 1px solid #f0f0f1;
}

.wrap.stationrecruitment .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    padding: 0 12px;
    min-height: 35px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    line-height: 2.15384615;
}

.wrap.stationrecruitment .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Komunikat odpowiedzi */
#form-response {
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 4px;
}

#form-response.success {
    background-color: #edfaef;
    color: #0a3622;
    border: 1px solid #72e128;
}

#form-response.error {
    background-color: #fcf0f1;
    color: #d63638;
    border: 1px solid #d63638;
}

/* Style dla pÃ³l API */
.wrap.stationrecruitment .form-field input[type="text"][id*="api"],
.wrap.stationrecruitment .form-field input[type="text"][id*="key"] {
    font-family: monospace;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
}

/* ResponsywnoÅ›Ä‡ */
@media screen and (max-width: 782px) {
    .wrap.stationrecruitment {
        margin: 10px;
        padding: 15px;
    }

    .wrap.stationrecruitment .form-field input[type="text"],
    .wrap.stationrecruitment .form-field input[type="time"] {
        max-width: 100%;
    }

    .wrap.stationrecruitment .sale_price_dates_fields {
        flex-direction: column;
        align-items: flex-start;
    }

    .wrap.stationrecruitment input[type="time"] {
        max-width: 100% !important;
    }

    .wrap.stationrecruitment .cancel_sale_schedule {
        margin-left: 0;
        padding-left: 0;
    }
}

/* Dodatkowe style dla lepszej dostÄ™pnoÅ›ci */
.wrap.stationrecruitment .button-primary:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #2271b1;
}

.wrap.stationrecruitment input:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}