/* ========================================
   Single Application Form Styles (spójne z globalnym)
   ======================================== */

.job-application-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
}

.job-application-form h3 {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  text-align: center;
}

.application-form {
  display: grid;
  gap: 16px 24px;
}

.application-form .form-row {
  display: grid;
  gap: 16px 24px;
  grid-template-columns: 1fr 1fr;
}

.application-form .form-group {
  display: flex;
  flex-direction: column;
}

/* Etykiety i pola (jak globalny .fjo-field) */
.application-form label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #000000;
}

.application-form input[type="text"],
.application-form input[type="email"],
.application-form input[type="tel"],
.application-form input[type="file"],
.application-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.application-form input[type="text"]:focus,
.application-form input[type="email"]:focus,
.application-form input[type="tel"]:focus,
.application-form input[type="file"]:focus,
.application-form textarea:focus {
  outline: none;
  border-color: #3ee522;
  box-shadow: 0 0 0 2px rgba(62, 229, 34, 0.15);
}

.application-form small {
  color: #667085;
  margin-top: 6px;
}

/* Zgoda RODO – skopiowane z globalnego */
.fjo-consent {
  margin: 10px 0 20px 0;
  background: #fff;
  overflow: hidden;
}

.fjo-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
}

.fjo-consent-label input[type="checkbox"] {
  margin-top: 3px;
}

.fjo-consent .fjo-consent-label {
  border: 1px solid #e1e5e9;
  border-radius: 0;
  background: #fff;
}

.fjo-consent .fjo-consent-label .fjo-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.fjo-consent .fjo-consent-label:has(.fjo-checkbox:hover) {
  background: #f8f9fa;
}

.fjo-consent .fjo-consent-label:has(.fjo-checkbox:checked) {
  background: #edfff0;
  border-color: #3ee522;
}

.fjo-consent .fjo-consent-label:has(.fjo-checkbox:focus) {
  background: #f0fff8;
  border-color: #3ee522;
}

.fjo-consent .fjo-consent-label .fjo-checkbox:checked {
  background: #51e938;
  border-color: #51e938;
}

.fjo-consent .fjo-consent-label .fjo-checkbox:checked::after {
  content: "\2713";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.fjo-consent-text {
  font-size: 13px;
  color: #333;
  line-height: 1.45;
}

.fjo-consent.required-error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

/* Przycisk wysyłki – jak .fjo-submit-btn */
.application-form .submit-application {
  background: #51e938;
  color: #000000;
  border: none;
  padding: 16px 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-width: 200px;
}

.application-form .submit-application:hover,
.application-form .submit-application:focus,
.application-form .submit-application:active {
  background: #ffffff;
  color: #000000;
}

/* Clipped-corner variant for buttons */
.application-form .submit-application.clipped-corner {
  position: relative;
  z-index: 1;
  border: unset;
  --fjo-cta-corner: 1em;
  --fjo-cta-notch: 0.5em;
  --fjo-cta-border: 2px;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--fjo-cta-corner)),
    calc(100% - var(--fjo-cta-notch)) calc(100% - var(--fjo-cta-notch)),
    calc(100% - var(--fjo-cta-corner)) 100%,
    0 100%
  );
}

.application-form .submit-application.clipped-corner:hover::before {
  border: unset;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--celuk-primary, #3ee622);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 1em),
    calc(100% - 0.5em) calc(100% - 0.5em),
    calc(100% - 1em) 100%,
    0 100%,
    0 0,
    2px 2px,
    2px calc(100% - 2px),
    calc(100% - 1em - 1px) calc(100% - 2px),
    calc(100% - 0.5em - 2px) calc(100% - 0.5em - 1px),
    calc(100% - 2px) calc(100% - 1em - 1px),
    calc(100% - 2px) 2px,
    2px 2px
  );
}

/* Responsywność */
@media (max-width: 768px) {
  .application-form .form-row {
    grid-template-columns: 1fr;
  }

  .job-application-form {
    padding: 0;
  }

  .application-form .submit-application {
    width: 100%;
    min-width: auto;
  }
}
