.oplex-complaint-form {
  max-width: 900px;
  margin: 0 auto;
}

.oplex-complaint-box {
  position: relative;
  background: #f3f4f6;
  padding: 26px 30px;
  border-radius: 12px;
}

.oplex-complaint-box::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd45a, #ffb81c, #f5a800);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.oplex-form-table {
  width: 100%;
  border-collapse: collapse;
}

.oplex-form-table th {
  padding: 14px 0 6px;
  text-transform: uppercase;
  font-size: 13px;
}

.oplex-form-table td {
  padding: 6px 0;
}

.oplex-form-table input,
.oplex-form-table textarea,
.oplex-form-table select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

/* WALIDACJA */
.oplex-form-table input.oplex-valid,
.oplex-form-table textarea.oplex-valid,
.oplex-form-table select.oplex-valid {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
}

.oplex-form-table input.oplex-invalid,
.oplex-form-table textarea.oplex-invalid,
.oplex-form-table select.oplex-invalid {
  background: #fef2f2 !important;
  border-color: #dc2626 !important;
}

/* PODPOWIEDZI */
.oplex-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.oplex-vin-counter {
  font-size: 12px;
  color: #6b7280;
}

/* PLACEHOLDERY */
.oplex-complaint-form input::placeholder,
.oplex-complaint-form textarea::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

/* ZAŁĄCZNIKI */
.oplex-file-input {
  padding: 10px !important;
  border: 2px dashed #cbd5e1 !important;
  background: #f9fafb !important;
  cursor: pointer;
}

.oplex-file-input:hover {
  border-color: #ffb81c !important;
  background: #fffbf0 !important;
}

.oplex-file-info {
  margin-top: 8px;
  font-size: 13px;
}

/* RESET TŁA CMS */
body.cms-id-65.page-cms #main .page-content {
  background: #ffffff !important;
  box-shadow: none !important;
  border: none !important;
  padding: initial !important;
}

/* =========================================================
   PRZYCISKI - JEDNOLITY STYL (GÓRNA BELKA)
   ========================================================= */

/* Przycisk "Przejdź do reklamacji" (CMS 64) */
body.cms-id-64 a.btn-primary,
body.cms-id-64 a.btn.btn-primary,
.oplex-submit .btn,
.oplex-submit button[type="submit"] {
  background: linear-gradient(180deg, #ffd45a 0%, #ffb81c 55%, #f5a800 100%) !important;
  border: 2px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  color: #000 !important;
  font-weight: 600 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  letter-spacing: 0.7px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 10px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

body.cms-id-64 a.btn-primary:hover,
body.cms-id-64 a.btn.btn-primary:hover,
.oplex-submit .btn:hover,
.oplex-submit button[type="submit"]:hover {
  background: linear-gradient(180deg, #ffe680 0%, #ffc947 55%, #ffb81c 100%) !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 12px 30px rgba(0, 0, 0, 0.18) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
  text-decoration: none !important;
}

body.cms-id-64 a.btn-primary:active,
body.cms-id-64 a.btn.btn-primary:active,
.oplex-submit .btn:active,
.oplex-submit button[type="submit"]:active {
  transform: translateY(0) !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  color: #fff !important;
}

.oplex-submit .btn:disabled,
.oplex-submit button[type="submit"]:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}






/* =========================================================
   CHECKBOX RODO - NAPRAWA LAYOUTU
   ========================================================= */
.oplex-form-table input[type="checkbox"] {
  width: auto !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin-right: 8px !important;
  cursor: pointer !important;
}

.oplex-form-table label[for="consent"] {
  display: inline !important;
  vertical-align: middle !important;
  cursor: pointer !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.oplex-form-table td:has(input[type="checkbox"]) {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}