/* styles.css */

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #272727;
  color: #e4dddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

::selection {
  background-color: #1c8454;
  color: #fff;
}

::-moz-selection {
  background-color: #1c8454;
  color: #fff;
}

.container {
  position: relative;
  width: 90%;
  max-width: 1600px;
  height: calc(90vh - 120px);
  background: #1a1919;
  border-radius: 10px;
  box-shadow: 0 12px 18px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1600px;
  padding: 20px 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-bottom: 0;
}

.lang-select-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select-label {
  font-size: 14px;
  color: #e4dddd;
  white-space: nowrap;
}

.lang-select {
  padding: 8px 12px;
  font-size: 14px;
  background-color: #1a1919;
  color: #e4dddd;
  border: 1px solid rgba(228, 221, 221, 0.4);
  border-radius: 6px;
  cursor: pointer;
  min-width: 120px;
}

.lang-select:hover,
.lang-select:focus {
  border-color: #1c8454;
  outline: none;
}

.logo-container a {
  text-decoration: none;
  display: inline-block;
}

.logo {
  max-height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
  transition: opacity 0.3s;
}

.logo-container a:hover .logo {
  opacity: 0.8;
}

.content {
  height: 95%;
  width: 80%;
  margin: 0 auto;
  overflow-y: auto;
  padding: 20px;
}

.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: #1a1919;
}

.content::-webkit-scrollbar-thumb {
  background: #272727;
  border-radius: 50px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.content h2 {
  text-align: center;
}

.content h3 {
  font-size: 22px;
}

.content p {
  margin-top: 45px;
}

.content a {
  color: #e4dddd;
  text-decoration: none;
}

.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: border 0.3s;
}

.content img:hover {
  border: 1px solid #e4dddd;
}

.zoomable {
  cursor: zoom-in;
}

.img-with-caption {
  margin: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.img-caption-ocr {
  font-size: 0.85rem;
  color: #b0b0b0;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #1c8454;
  border-radius: 4px;
  line-height: 1.5;
  max-width: 480px;
}

.img-caption-ocr br {
  display: block;
  content: "";
  margin-top: 4px;
}

.img-with-caption .zoomable {
  margin: 0;
}

.zoomed {
  cursor: zoom-out;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.8);
}

.navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.navigation button {
  pointer-events: all;
}

#prev-button {
  transform: translateX(-10px);
}

#next-button {
  transform: translateX(10px);
}

button {
  padding: 6px 15px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  background-color: #1c8454;
  color: #e4dddd;
  transition: background-color 0.3s, border 0.3s;
}

button:hover {
  background-color: #166e45;
  border: 1px solid #e4dddd;
}

button:disabled {
  background-color: #272727;
  color: #555;
  cursor: not-allowed;
}

.progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: #e4dddd;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

#progress {
  width: 0;
  height: 100%;
  background: #1c8454;
  transition: width 0.3s;
}

#terms-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 50px auto 0 auto;
}

.input-container {
  position: relative;
  width: 80%;
  margin-bottom: 20px;
}

.input-container input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e4dddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: #1a1919;
  color: #e4dddd;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-container label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #e4dddd;
  pointer-events: none;
  transition: 0.3s ease all;
  padding: 0 5px;
  background-color: #1a1919;
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: #e4dddd;
  transform: translateY(-50%) scale(0.9);
}

.input-container input:focus,
.input-container input:not(:placeholder-shown) {
  border-color: #e4dddd;
  outline: none;
  box-shadow: 0 0 0 1px #272727;
}

.input-container input:focus,
.input-container input:not(:placeholder-shown):hover {
  border-color: #e4dddd;
  outline: none;
  box-shadow: 0 0 0 1px #e4dddd;
}

.checkbox-group {
  display: flex;
  width: 80%;
  align-self: center;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #272727;
  margin: auto;
  padding: 20px;
}

#close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
}

/* Blok pobierania umowy – w przepływie, pod formularzem Tally */
.contract-download-block {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(228, 221, 221, 0.3);
  border-radius: 8px;
  background: rgba(39, 39, 39, 0.6);
}

.contract-download-text {
  margin: 0 0 16px 0 !important;
  font-size: 1rem;
  color: #e4dddd;
}

.contract-download-text .contract-download-email {
  color: #1c8454;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.contract-download-text .contract-download-email:hover {
  color: #3fa86a;
}

.btn-download-contract {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #1c8454;
  color: #e4dddd;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-download-contract:hover {
  background-color: #166e45;
}

/* Modal umowy */
.contract-modal {
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.contract-modal.modal-open {
  display: flex;
}

.contract-modal-content {
  position: relative;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.contract-modal-content h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.contract-form-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(228, 221, 221, 0.2);
}

.contract-form-hint {
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #b0a8a8;
}

.contract-data-form .input-row {
  margin-bottom: 14px;
}

.contract-data-form .input-row label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #e4dddd;
}

.contract-data-form .input-row .required {
  color: #e74c3c;
}

.contract-data-form .input-row input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid rgba(228, 221, 221, 0.4);
  border-radius: 6px;
  background-color: #1a1919;
  color: #e4dddd;
  box-sizing: border-box;
}

.contract-data-form .input-row input:focus {
  outline: none;
  border-color: #1c8454;
}

.btn-download-submit {
  margin-top: 20px;
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  background-color: #1c8454;
  color: #e4dddd;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.2s;
}

.btn-download-submit:hover {
  background-color: #166e45;
  border-color: #e4dddd;
}

#close-contract-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  font-size: 22px;
  color: #e4dddd;
}
