/* ============================================================
   HOXTON WINOBRANIE — Formularz rekrutacyjny
   Styl przeniesiony 1:1 z landing page (index.html)
   Ładowany PO user_index.css — świadomie nadpisuje globalne style
   ============================================================ */

:root {
  --black:      #0B0B0B;
  --offblack:   #141414;
  --cream:      #F4EFE3;
  --cream-dim:  #D9D0BC;
  --blue:       #1B2E72;
  --blue-mid:   #2A4499;
  --gold:       #C9A84C;
  --gold-light: #DBBF6E;
  --white:      #FDFAF5;
}

/* ─── TŁO STRONY (nadpisanie user_index.css) ─── */
body {
  background-color: var(--black) !important;
  font-family: 'Jost', sans-serif;
}

/* ─── WRAPPER / KARTA ─── */
.rk-wrapper {
  position: relative;
  min-height: 100vh;
  padding: 60px 20px 80px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  border-top: 2px solid var(--gold);
}
.rk-bg {
  position: absolute;
  inset: 0;
  background: url('../images/main_bg.jpg.webp') center/cover no-repeat;
  opacity: .22;
  pointer-events: none;
}
.rk-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(11,11,11,.85) 100%);
}
.rk-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  background: #161616;
  border: 1px solid rgba(201,168,76,.2);
  padding: 48px 56px 56px;
}

/* ─── NAGŁÓWEK ─── */
.rk-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}
.rk-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
  opacity: .8;
}
.rk-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--white);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.rk-title em {
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
}
.rk-lead {
  font-size: 13px;
  color: rgba(244,239,227,.78);
  line-height: 1.8;
  margin: 0 0 10px;
  max-width: 480px;
}
.rk-logo img {
  width: 92px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.4));
}

/* ─── KOMUNIKATY (sesyjne) ─── */
.rk-alert {
  margin: 22px 0 6px;
  padding: 14px 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--cream);
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.35);
  border-left: 3px solid var(--gold);
}

/* ─── TYTUŁY SEKCJI ─── */
.rk-section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 44px 0 24px;
}
.rk-section-title h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  white-space: nowrap;
}
.rk-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(244,239,227,.1);
}

/* ─── SIATKA PÓL ─── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.form-group { margin-bottom: 20px; }
.form-group--full { grid-column: 1 / -1; }

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244,239,227,.82);
  margin-bottom: 8px;
  line-height: 1.5;
}
.form-label .req { color: var(--gold); }
.form-hint {
  display: block;
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: none;
  color: rgba(244,239,227,.6);
  margin-top: 5px;
  line-height: 1.6;
}

/* ─── INPUTY / SELECT / TEXTAREA ─── */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #0F0F0F;
  border: 1px solid rgba(244,239,227,.12);
  border-radius: 0;
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: rgba(201,168,76,.5); }
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(244,239,227,.2); }

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(201,168,76,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-select option { background: #1A1A1A; color: var(--cream); }

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

/* ─── PLIKI (CV / list motywacyjny) ─── */
.form-file {
  width: 100%;
  background: #0F0F0F;
  border: 1px dashed rgba(244,239,227,.18);
  color: rgba(244,239,227,.6);
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s;
  box-sizing: border-box;
}
.form-file:hover,
.form-file:focus { border-color: rgba(201,168,76,.5); outline: none; }
.form-file::file-selector-button {
  background: var(--gold);
  color: var(--black);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 16px;
  margin-right: 14px;
  cursor: pointer;
  transition: background .2s;
}
.form-file::file-selector-button:hover { background: var(--gold-light); }

.file-error {
  display: none;
  font-size: 11px;
  color: #D96A5B;
  margin-top: 7px;
  letter-spacing: .02em;
}
.file-error.wrong_ext { display: block; }

/* opis „dlaczego CV" */
.rk-note {
  margin: 0 0 26px;
  padding: 16px 18px;
  border-left: 2px solid rgba(140,165,110,.45);
  font-size: 12px;
  color: rgba(184,205,158,.85);
  line-height: 1.75;
}
.rk-note h6 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 700;
  color: #C9DCA6;
  margin: 0 0 6px;
}
.rk-note p { margin: 0; color: rgba(184,205,158,.85); }

/* ─── RADIO (prawo jazdy) ─── */
.rk-radio-row { display: flex; gap: 28px; padding: 4px 0; }
.rk-radio {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(244,239,227,.88);
}
.rk-radio input[type=radio] {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  margin: 0;
}

/* ─── RODO ─── */
.form-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 6px;
  padding: 18px;
  border: 1px solid rgba(244,239,227,.08);
  background: rgba(244,239,227,.02);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-check input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.form-check-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--cream);
  line-height: 1.6;
  cursor: pointer;
}
.form-clause {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 2px solid rgba(201,168,76,.3);
  font-size: 11px;
  color: rgba(244,239,227,.7);
  line-height: 1.7;
}
.form-clause p { margin: 0; color: rgba(244,239,227,.7); }

/* ─── SUBMIT ─── */
.form-submit {
  width: 100%;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 18px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 28px;
  transition: background .2s, transform .15s, opacity .2s;
}
.form-submit:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-1px); }
.form-submit:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.form-note {
  font-size: 10px;
  color: rgba(244,239,227,.55);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

/* ─── FOCUS DLA KLAWIATURY ─── */
.form-check input:focus-visible,
.rk-radio input:focus-visible,
.form-submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .rk-wrapper { padding: 24px 12px 48px; }
  .rk-card { padding: 30px 22px 38px; }
  .rk-header { flex-direction: column-reverse; align-items: flex-start; gap: 18px; }
  .rk-title { font-size: 34px; }
  .rk-logo img { width: 76px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .rk-section-title { margin: 34px 0 20px; }
  .rk-section-title h4 { font-size: 21px; white-space: normal; }
}


/* ─── WERYFIKACJA ─── */
.rk-verify {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  background: #161616;
  border: 1px solid rgba(201,168,76,.2);
  padding: 52px 48px;
  text-align: center;
}
.rk-verify__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.rk-verify__icon--success {
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.5);
  color: var(--gold);
}
.rk-verify__icon--error {
  background: rgba(217,106,91,.1);
  border: 1px solid rgba(217,106,91,.45);
  color: #D96A5B;
}
.rk-verify__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.rk-verify__title em {
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
}
.rk-verify__text {
  font-size: 13px;
  color: rgba(244,239,227,.75);
  line-height: 1.85;
  margin: 0;
}
.rk-verify__text strong { color: var(--gold-light); font-weight: 600; }
.rk-verify__btn {
  display: inline-block;
  margin-top: 30px;
  background: var(--gold);
  color: var(--black);
  padding: 15px 40px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.rk-verify__btn:hover { background: var(--gold-light); transform: translateY(-1px); }

@media (max-width: 900px) {
  .rk-verify { padding: 38px 24px; }
  .rk-verify__title { font-size: 29px; }
}

/* ─── LOGOWANIE / ZMIANA HASŁA (panel pracownika) ─── */
.rk-login {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #161616;
  border: 1px solid rgba(201,168,76,.2);
  padding: 40px 38px 30px;
}
.rk-login__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}
.rk-login__logo img { width: 84px; height: auto; }
.rk-login__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.rk-login__title em { font-weight: 300; font-style: italic; color: var(--gold); }
.rk-login__sub {
  font-size: 12px;
  color: rgba(244,239,227,.6);
  text-align: center;
  line-height: 1.7;
  margin: 0 0 26px;
}
.rk-login form { display: flex; flex-direction: column; }
.rk-login .form-group { margin-bottom: 16px; }
.rk-login__forgot {
  font-size: 11px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,.3);
  align-self: flex-end;
  margin: -6px 0 16px;
  transition: opacity .2s;
}
.rk-login__forgot:hover { opacity: .75; }
.rk-btn-ghost {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(244,239,227,.18);
  color: rgba(244,239,227,.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.rk-btn-ghost:hover { border-color: rgba(201,168,76,.5); color: var(--cream); }
.rk-msg-error {
  margin-top: 16px;
  padding: 11px 14px;
  font-size: 12px;
  color: #E8988C;
  background: rgba(217,106,91,.08);
  border-left: 3px solid #D96A5B;
}
.rk-msg-success {
  margin-top: 16px;
  padding: 11px 14px;
  font-size: 12px;
  color: #C9DCA6;
  background: rgba(140,165,110,.08);
  border-left: 3px solid rgba(140,165,110,.7);
}
.rk-login__footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(244,239,227,.08);
  text-align: center;
  font-size: 10px;
  color: rgba(244,239,227,.3);
}
.rk-login__footer a {
  color: rgba(201,168,76,.7);
  text-decoration: none;
}
.rk-login__footer a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .rk-login { padding: 30px 22px 24px; }
  .rk-login__title { font-size: 27px; }
}
