/* ModulPraca - Simple, clean styles matching PrestaShop theme */

#modulpraca-section.modulpraca-container,
section#modulpraca-section.modulpraca-container,
#content #modulpraca-section.modulpraca-container,
.page-content #modulpraca-section.modulpraca-container {
  padding: 30px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  background-color: #fff;
  color: #000;
  width: 100%;
  box-sizing: border-box;
  display: block;
}

/* Container inside section */
#modulpraca-section .container,
#modulpraca-section.modulpraca-container .container {
  max-width: 100%;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

#modulpraca-section .modulpraca-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: calc(1.75rem + 3px);
  font-weight: 600;
  color: #000;
}

/* Job Cards Grid */
.job-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

.job-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid #e5e5e5;
  transition: transform 0.2s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.job-card-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.job-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-card-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.job-card-content {
  flex: 1;
}

.job-card-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #000;
}

.job-card-work-type {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
}

.job-card-duration,
.job-card-acronym {
  font-size: 14px;
  margin: 8px 0;
  color: #666;
}

.job-card-label {
  font-weight: 500;
  margin-right: 5px;
}

.job-card-duration-value {
  color: #666;
}

.job-card-duration-value.single-day {
  color: #666;
  font-weight: 600;
}

.job-card-acronym-value {
  color: #000;
  font-weight: 500;
}

.job-card-status {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #4caf50;
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.job-card-status.status-zatwierdzona {
  background-color: #000;
}

.job-card-status.status-otwarta {
  text-transform: uppercase;
}

/* Job Detail Page */
.job-detail-page {
  background-color: transparent;
}

.job-detail-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
}

.job-detail-header {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.job-detail-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.job-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-detail-header-content {
  flex: 1;
}

.job-detail-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #000;
}

.job-detail-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #000;
}

.job-detail-work-type {
  font-size: 14px;
  color: #666;
  margin: 0 0 12px 0;
}

.job-detail-duration,
.job-detail-acronym {
  font-size: 14px;
  margin: 8px 0;
  color: #666;
}

.job-detail-label {
  font-weight: 500;
  margin-right: 5px;
}

.job-detail-duration-value,
.job-detail-acronym-value {
  color: #666;
  font-weight: 500;
}

.job-detail-status {
  display: inline-block;
  background-color: #4caf50;
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 10px;
  text-transform: capitalize;
}

.job-detail-status.status-zatwierdzona {
  background-color: #000;
}

.job-detail-status.status-otwarta {
  text-transform: uppercase;
}

.job-detail-content {
  margin-bottom: 30px;
}

.job-detail-body {
  line-height: 1.6;
  color: #000;
}

.job-detail-body p {
  margin-bottom: 15px;
  margin-top: 0;
  color: #000;
}

.job-detail-body h4,
.job-detail-body h5 {
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #000;
  font-size: 1.1em;
}

.job-detail-body ul,
.job-detail-body ol {
  margin-left: 25px;
  margin-bottom: 20px;
  margin-top: 10px;
  padding-left: 0;
  list-style-position: outside;
}

.job-detail-body ul {
  list-style-type: disc;
}

.job-detail-body ol {
  list-style-type: decimal;
}

.job-detail-body li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #000;
  padding-left: 5px;
}

#modulpraca-section .job-section-wrapper {
  margin-bottom: 40px;
  padding: 30px 0;
  border-bottom: 1px solid #e5e5e5;
}

#modulpraca-section .job-section-wrapper:last-child {
  border-bottom: none;
}

#modulpraca-section .job-section-content {
  margin-bottom: 30px;
}

#modulpraca-section .job-section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000;
  text-align: center;
}

#modulpraca-section .job-section-body {
  line-height: 1.6;
  color: #000;
}

#modulpraca-section .job-section-body p {
  margin-bottom: 15px;
  margin-top: 0;
  color: #000;
}

#modulpraca-section .job-section-body p:first-child {
  margin-top: 0;
}

#modulpraca-section .job-section-body p:last-child {
  margin-bottom: 0;
}

#modulpraca-section .job-section-body h4,
#modulpraca-section .job-section-body h5 {
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #000;
  font-size: 1.1em;
}

#modulpraca-section .job-section-body h4:first-child,
#modulpraca-section .job-section-body h5:first-child {
  margin-top: 0;
}

#modulpraca-section .job-section-body ul,
#modulpraca-section .job-section-body ol {
  margin-left: 25px;
  margin-bottom: 20px;
  margin-top: 10px;
  padding-left: 0;
  list-style-position: outside;
}

#modulpraca-section .job-section-body ul {
  list-style-type: disc;
}

#modulpraca-section .job-section-body ol {
  list-style-type: decimal;
}

#modulpraca-section .job-section-body li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #000;
  padding-left: 5px;
}

#modulpraca-section .job-section-body li:last-child {
  margin-bottom: 0;
}

#modulpraca-section .job-application-form-wrapper {
  margin-top: 30px;

}

#modulpraca-section .application-form-title {
  font-size:.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #000;
  text-align: center;
}

#modulpraca-section .no-sections-message {
  text-align: center;
  padding: 40px 20px;
  color: #000;
}

/* Form styles - simple and clean */
#modulpraca-section .job-application-form .form-group {
  margin-bottom: 20px;
}

/* Floating labels (hover-placeholder) - matching supercheckout */
#modulpraca-section .job-application-form .form-group label.hover-placeholder {
  position: absolute;
  top: -8px;
  left: 25px;
  font-size: 14px;
  color: #999;
  pointer-events: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  opacity: 1;
  background-color: #fff;
  padding: 1px 5px;
  margin-bottom: 0;
  font-weight: 400;
}

#modulpraca-section .job-application-form .form-group input:focus + label.hover-placeholder,
#modulpraca-section .job-application-form .form-group textarea:focus + label.hover-placeholder,
#modulpraca-section .job-application-form .form-group select:focus + label.hover-placeholder,
#modulpraca-section .job-application-form .form-group input:not(:placeholder-shown) + label.hover-placeholder,
#modulpraca-section .job-application-form .form-group textarea:not(:placeholder-shown) + label.hover-placeholder,
#modulpraca-section .job-application-form .form-group select:not([value=""]) + label.hover-placeholder,
#modulpraca-section .job-application-form .form-group input.has-value + label.hover-placeholder,
#modulpraca-section .job-application-form .form-group textarea.has-value + label.hover-placeholder {
  top: -8px;
  font-size: 14px;
  color: #b3b6ba;
  opacity: 1;
  background-color: #fff;
  padding: 2px 8px;
}

/* Regular labels (for file inputs and other non-floating labels) */
#modulpraca-section .job-application-form label:not(.hover-placeholder) {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #000;
}

#modulpraca-section .job-application-form .required {
  color: #000;
}

/* Form group with relative positioning for floating labels */
#modulpraca-section .job-application-form .form-group {
  position: relative;
  margin-bottom: 20px;
}

#modulpraca-section .job-application-form .form-row .form-group {
  position: relative;
}

/* Input fields styling - matching supercheckout */
#modulpraca-section .job-application-form input[type="text"],
#modulpraca-section .job-application-form input[type="email"],
#modulpraca-section .job-application-form input[type="tel"],
#modulpraca-section .job-application-form input[type="file"],
#modulpraca-section .job-application-form textarea,
#modulpraca-section .job-application-form .form-control,
#modulpraca-section .job-application-form select {
  border: 1px solid #d5dade;
  padding: 16px;
  color: rgb(24, 24, 26);
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
  display: block;
  height: auto;
  width: 100%;
  border-radius: 0;
  transition: border-color 0.2s ease;
  background-color: #fff;
  box-sizing: border-box;
  font-family: inherit;
}

#modulpraca-section .job-application-form input[type="text"]:focus,
#modulpraca-section .job-application-form input[type="email"]:focus,
#modulpraca-section .job-application-form input[type="tel"]:focus,
#modulpraca-section .job-application-form textarea:focus,
#modulpraca-section .job-application-form .form-control:focus,
#modulpraca-section .job-application-form select:focus {
  outline: none;
  border-color: #000;
  background-color: #fff;
  box-shadow: 0 0 0 1px #000;
}

#modulpraca-section .job-application-form textarea,
#modulpraca-section .job-application-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* File input styling - matching other inputs */
#modulpraca-section .job-application-form input[type="file"],
#modulpraca-section .job-application-form .form-control-file {
  border: 1px solid #d5dade;
  padding: 16px;
  background-color: #fff;
  height: auto;
  width: 100%;
  color: rgb(24, 24, 26);
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
  display: block;
  border-radius: 0;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
}

#modulpraca-section .job-application-form input[type="file"]:focus,
#modulpraca-section .job-application-form .form-control-file:focus {
  outline: none;
  border-color: #000;
  background-color: #fff;
  box-shadow: 0 0 0 1px #000;
}

/* Style file input button (Przeglądaj...) - matching form style */
#modulpraca-section .job-application-form input[type="file"]::-webkit-file-upload-button {
  border: 1px solid #d5dade;
  background-color: #fff;
  color: rgb(24, 24, 26);
  padding: 8px 16px;
  margin-right: 12px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

#modulpraca-section .job-application-form input[type="file"]::-webkit-file-upload-button:hover {
  background-color: #f8f9fa;
  border-color: #000;
}

/* Standard file selector button (Firefox, newer browsers) */
#modulpraca-section .job-application-form input[type="file"]::file-selector-button {
  border: 1px solid #d5dade;
  background-color: #fff;
  color: rgb(24, 24, 26);
  padding: 8px 16px;
  margin-right: 12px;
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

#modulpraca-section .job-application-form input[type="file"]::file-selector-button:hover {
  background-color: #f8f9fa;
  border-color: #000;
}

/* File input label - same as floating labels */
#modulpraca-section .job-application-form .form-group input[type="file"] + label.hover-placeholder {
  position: absolute;
  top: -8px;
  left: 25px;
  font-size: 14px;
  color: #999;
  pointer-events: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  opacity: 1;
  background-color: #fff;
  padding: 1px 5px;
  margin-bottom: 0;
  font-weight: 400;
}

/* Regular labels (for other non-floating labels) */
#modulpraca-section .job-application-form .form-group label:not(.hover-placeholder) {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #000;
}

#modulpraca-section .job-application-form .form-text {
  display: block;
  margin-top: 5px;
  font-size: 0.875rem;
  color: #000;
}

#modulpraca-section .form-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

#modulpraca-section .form-row .form-group {
  flex: 0 0 50%;
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 768px) {
  #modulpraca-section .form-row .form-group {
    flex: 0 0 100%;
  }
  
  #modulpraca-section.modulpraca-container,
  section#modulpraca-section.modulpraca-container,
  #content #modulpraca-section.modulpraca-container,
  .page-content #modulpraca-section.modulpraca-container {
    padding: 20px 15px;
    max-width: 100%;
  }
  
  .job-cards-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
  
  .job-detail-header {
    flex-direction: column;
  }
  
  .job-detail-avatar {
    align-self: flex-start;
  }
  
  #modulpraca-section .container,
  #modulpraca-section.modulpraca-container .container {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Submit button - simple style */
#modulpraca-section .submit-application-btn,
#modulpraca-section .job-application-form .submit-application-btn,
#modulpraca-section button.submit-application-btn {
  background-color: #000;
  color: #fff;
  border: 1px solid #e5e5e5;
  padding: 12px 30px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  text-transform: uppercase;
}

#modulpraca-section .submit-application-btn:hover,
#modulpraca-section .job-application-form .submit-application-btn:hover,
#modulpraca-section button.submit-application-btn:hover {
  background-color: #000;
  color: #fff;
}

#modulpraca-section .submit-application-btn:disabled,
#modulpraca-section .job-application-form .submit-application-btn:disabled,
#modulpraca-section button.submit-application-btn:disabled {
  background-color: #000;
  color: #fff;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form messages */
#modulpraca-section .form-message {
  margin-top: 15px;
  padding: 12px 15px;
  border-radius: 0;
  display: none;
  border: 1px solid #e5e5e5;
}

#modulpraca-section .form-message.success {
  background-color: #fff;
  color: #000;
  border: 1px solid #e5e5e5;
  display: block;
}

#modulpraca-section .form-message.error {
  background-color: #fff;
  color: #000;
  border: 1px solid #e5e5e5;
  display: block;
}

#modulpraca-section .form-message.info {
  background-color: #fff;
  color: #000;
  border: 1px solid #e5e5e5;
  display: block;
}
