/* =========================================================
   KÁRPÁTIA STÚDIÓ – LISTMONK PUBLIC PAGES
   Feliratkozás / leiratkozás / preferenciák
   ========================================================= */


/* ---------- ALAPSZÍNEK ---------- */

:root {
  --karpatia-bg: #f4f1eb;
  --karpatia-surface: #ffffff;
  --karpatia-text: #171717;
  --karpatia-muted: #6f6a63;
  --karpatia-border: #ded9d0;
  --karpatia-dark: #171717;
  --karpatia-dark-hover: #34312d;
  --karpatia-warm: #9b7a50;
  --karpatia-soft: #eee9e1;
}


/* ---------- ALAP OLDAL ---------- */

html,
body {
  background: var(--karpatia-bg) !important;
  color: var(--karpatia-text) !important;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
}


/* ---------- FŐ OLDALKERET ---------- */

body > main,
main,
.container {
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ---------- FŐ FEHÉR PANEL ---------- */

main > section,
.container > section,
section {
  background: var(--karpatia-surface);
}


/* ---------- FEJLÉC ---------- */

header {
  border-bottom: 1px solid var(--karpatia-border) !important;
  padding-bottom: 24px !important;
  margin-bottom: 28px !important;
  color: var(--karpatia-text) !important;
}


/* ---------- KÁRPÁTIA STÚDIÓ LOGÓ ---------- */

header img {
  display: block !important;
  width: auto !important;
  max-width: 260px !important;
  max-height: 95px !important;
  object-fit: contain !important;
  margin: 0 0 22px 0 !important;
}

/* Ha maradna listmonk SVG logó, azt rejtsük el */
header svg {
  display: none !important;
}


/* ---------- CÍMSOROK ---------- */

h1,
h2,
h3,
h4 {
  color: var(--karpatia-text) !important;
  font-family:
    Georgia,
    "Times New Roman",
    serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em;
  line-height: 1.18 !important;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem) !important;
}

h3 {
  font-size: 1.35rem !important;
}


/* ---------- SZÖVEGEK ---------- */

p,
label,
.help,
.content {
  color: var(--karpatia-text) !important;
}

small,
.help,
.has-text-grey,
.has-text-grey-light {
  color: var(--karpatia-muted) !important;
}


/* ---------- FORM MEZŐK ---------- */

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: #ffffff !important;
  color: var(--karpatia-text) !important;
  border: 1px solid #cbc5ba !important;
  border-radius: 3px !important;
  min-height: 48px;
  padding: 10px 13px !important;
  font-size: 16px !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease !important;
}

input::placeholder,
textarea::placeholder {
  color: #99938b !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--karpatia-warm) !important;
  box-shadow: 0 0 0 3px rgba(155, 122, 80, 0.12) !important;
}


/* ---------- FORM ELEMEK KÖZTI TÁVOLSÁG ---------- */

.field,
.form-group {
  margin-bottom: 1.3rem !important;
}

label {
  font-weight: 500 !important;
  margin-bottom: 6px !important;
}


/* ---------- CHECKBOX / RADIO ---------- */

input[type="checkbox"] {
  accent-color: var(--karpatia-dark);
}

.checkbox,
.radio {
  color: var(--karpatia-text) !important;
  line-height: 1.5;
}


/* ---------- GOMBOK ---------- */

button,
.button,
.btn,
input[type="submit"] {
  min-height: 48px;
  border-radius: 2px !important;
  padding: 0 26px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease !important;
}

button[type="submit"],
input[type="submit"],
.button.is-primary,
.btn-primary {
  color: #ffffff !important;
  background: var(--karpatia-dark) !important;
  border: 1px solid var(--karpatia-dark) !important;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.button.is-primary:hover,
.btn-primary:hover {
  background: var(--karpatia-dark-hover) !important;
  border-color: var(--karpatia-dark-hover) !important;
}

button[type="submit"]:active,
input[type="submit"]:active,
.button.is-primary:active,
.btn-primary:active {
  transform: translateY(1px);
}


/* ---------- LINKEK ---------- */

a {
  color: var(--karpatia-text) !important;
  text-decoration-color: #9c958b !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #000000 !important;
  text-decoration-color: var(--karpatia-warm) !important;
}


/* ---------- ÉRTESÍTÉSEK / VISSZAJELZÉSEK ---------- */

.notification,
.message,
.alert {
  border-radius: 3px !important;
  border: 1px solid var(--karpatia-border) !important;
  box-shadow: none !important;
}


/* ---------- KÁRTYÁK / PANELEK ---------- */

.box,
.card {
  border: 1px solid var(--karpatia-border) !important;
  border-radius: 2px !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    0 12px 35px rgba(33, 27, 20, 0.035) !important;
}


/* ---------- ELVÁLASZTÓK ---------- */

hr {
  background-color: var(--karpatia-border) !important;
  height: 1px !important;
}


/* ---------- FOOTER ---------- */

footer {
  opacity: 0.55;
  font-size: 12px !important;
}

footer a {
  color: var(--karpatia-muted) !important;
}


/* ---------- MOBIL ---------- */

@media (max-width: 768px) {

  html,
  body {
    background: var(--karpatia-surface) !important;
  }

  body {
    padding: 0 !important;
  }

  main,
  .container {
    max-width: 100% !important;
    margin: 0 !important;
  }

  .box,
  .card,
  section {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  header img {
    max-width: 220px !important;
    max-height: 80px !important;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.65rem !important;
  }

  input,
  select,
  textarea,
  button,
  .button {
    font-size: 16px !important;
  }

  button,
  input[type="submit"],
  .button,
  .btn {
    width: 100%;
    min-height: 50px;
  }
}

footer {
  display: none !important;
}

/* Feliratkozás gomb – tiltott állapot */
button[type="submit"]:disabled,
.button:disabled {
  background: #c9c6c0 !important;
  border-color: #c9c6c0 !important;
  color: #77736d !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Aktív gomb */
button[type="submit"]:not(:disabled),
.button:not(:disabled) {
  background: #171717 !important;
  border-color: #171717 !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

/* ---------- VALIDÁCIÓ ---------- */

.field-invalid {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.10) !important;
}

.field-valid {
  border-color: #6f7f63 !important;
}

.validation-error {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-size: 13px;
  line-height: 1.4;
}


/* ---------- FELIRATKOZÁS GOMB ---------- */

button[type="submit"]:disabled,
.button:disabled {
  background: #c9c6c0 !important;
  border-color: #c9c6c0 !important;
  color: #77736d !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
  transform: none !important;
}

button[type="submit"]:not(:disabled),
.button:not(:disabled) {
  background: #171717 !important;
  border-color: #171717 !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

/* Hibás e-mail mező */
#email.field-invalid {
  border: 2px solid #c62828 !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.10) !important;
  background-color: #fffafa !important;
}

/* Érvényes e-mail mező */
#email.field-valid {
  border-color: #6f7f63 !important;
}

/* E-mail hibaüzenet */
#email-error.validation-error {
  display: none;
  margin-top: 6px;
  color: #c62828 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* Tiltott Feliratkozás gomb */
#subscribe-button:disabled {
  background: #c9c6c0 !important;
  border-color: #c9c6c0 !important;
  color: #77736d !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

/* Aktív Feliratkozás gomb */
#subscribe-button:not(:disabled) {
  background: #171717 !important;
  border-color: #171717 !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

/* =========================================================
   SIKERES FELIRATKOZÁS – KÁRPÁTIA CTA
   ========================================================= */

.subscription-success-cta {
  margin-top: 28px;
}

.karpatia-success-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 12px 24px;

  background: #171717 !important;
  border: 1px solid #171717 !important;
  border-radius: 3px !important;

  color: #ffffff !important;
  text-decoration: none !important;

  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.karpatia-success-button:hover {
  background: #34312d !important;
  border-color: #34312d !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.karpatia-success-button:active {
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .karpatia-success-button {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

/* =========================================================
   KÁRPÁTIA STÚDIÓ – PUBLIKUS KEZDŐOLDAL
   ========================================================= */

.karpatia-home {
    max-width: 680px;
    margin: 0 auto;
    padding: 34px 20px 18px;
    text-align: center;
    box-sizing: border-box;
}

.karpatia-home-content {
    padding: 0 20px;
}

/* Főcím */

.karpatia-home h1 {
    margin: 0 0 20px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;

    font-weight: 500;
    letter-spacing: -0.02em;

    color: #191817;
}

/* Bevezető */

.karpatia-home-lead {
    max-width: 550px;
    margin: 0 auto 32px;

    font-size: 17px;
    line-height: 1.7;

    color: #625d57;
}

/* Fő CTA */

.karpatia-primary-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 13px 30px;

    background: #171717 !important;
    border: 1px solid #171717 !important;
    border-radius: 3px;

    color: #ffffff !important;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;

    text-decoration: none !important;

    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.12s ease;
}

.karpatia-primary-button:hover {
    background: #34312d !important;
    border-color: #34312d !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.karpatia-primary-button:active {
    transform: translateY(1px);
}

/* Korábbi hírlevelek */

.karpatia-home-secondary {
    margin-top: 22px;
}

.karpatia-home-secondary a {
    color: #5f5a54 !important;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.karpatia-home-secondary a:hover {
    color: #171717 !important;
}

/* Alsó navigáció */

.karpatia-home-bottom {
    margin-top: 46px;
    padding-top: 20px;

    border-top: 1px solid #e2ddd5;

    font-size: 12px;
    color: #99928a;
}

.karpatia-home-bottom a {
    color: #77716a !important;
    text-decoration: none !important;
}

.karpatia-home-bottom a:hover {
    color: #171717 !important;
    text-decoration: underline !important;
}

.karpatia-home-separator {
    margin: 0 10px;
}

/* A fejléc logója legyen nagyobb és középre igazítva */

.header .logo {
    text-align: center !important;
}

.header .logo img {
    width: 270px !important;
    max-width: 80% !important;
    height: auto !important;
}

/* Mobil */

@media (max-width: 768px) {

    .karpatia-home {
        padding: 28px 8px 12px;
    }

    .karpatia-home-content {
        padding: 0 10px;
    }

    .karpatia-home h1 {
        font-size: 30px;
    }

    .karpatia-home-lead {
        font-size: 16px;
        line-height: 1.65;
    }

    .karpatia-primary-button {
        width: 100%;
        box-sizing: border-box;
    }

    .header .logo img {
        width: 230px !important;
    }

}