:root {
  --brand: #2d4a8a;
  --brand-dark: #1e3262;
  --accent: #fda02b;
  --ink: #1e2637;
  --muted: #68758a;
  --line: #dfe5ee;
  --soft: #f4f7fb;
}

body {
  background: var(--soft);
  color: var(--ink);
}

.order-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 15px rgba(30, 38, 55, .06);
}

.order-header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.order-logo img {
  max-height: 62px;
  max-width: 230px;
}

.back-link {
  font-weight: 600;
  color: var(--brand);
}

.order-page {
  padding: 65px 0 75px;
}

.order-title {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 38px;
}

.eyebrow {
  display: inline-block;
  color: #2d4a8a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  margin-bottom: 8px;
}

.order-title h1 {
  font-size: 40px;
  color: var(--brand);
  margin-bottom: 12px;
}

.order-title p {
  color: var(--muted);
  text-align: center;
  font-size: 17px;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(32, 46, 60, .07);
}

.form-card.full-width {
  grid-column: 1 / -1;
}

.form-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  font-size: 21px;
  margin: 0 0 24px;
}

.form-card h2 span {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 18px;
}

.package-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.package-summary > div {
  padding: 13px 15px;
  background: var(--soft);
  border-radius: 6px;
}

.package-summary small {
  display: block;
  color: var(--muted);
  margin-bottom: 3px;
}

.package-summary strong {
  display: block;
  color: var(--ink);
}

.package-summary .summary-total {
  grid-column: 1 / -1;
  background: var(--brand);
  color: #fff;
}

.package-summary .summary-total small,
.package-summary .summary-total strong {
  color: #fff;
}

.package-warning {
  margin: 15px 0 0;
  padding: 12px;
  background: #fff4e5;
  border-left: 4px solid var(--accent);
  color: #7c4d08;
}

.type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.type-switch input {
  position: absolute;
  opacity: 0;
}

.type-switch span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px 12px;
  border: 2px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
}

.type-switch input:checked + span {
  border-color: var(--brand);
  background: #eef3ff;
  color: var(--brand);
}

.fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 19px 22px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #354258;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cfd7e4;
  border-radius: 5px;
  background: #fff;
  padding: 12px 14px;
  color: #263247;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 74, 138, .12);
  outline: 0;
}

.was-validated :invalid {
  border-color: #c73b3b !important;
}

.company-only[hidden] {
  display: none;
}

.terms-box {
  max-height: 280px;
  overflow: auto;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 21px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.terms-box h3 {
  font-size: 18px;
  color: var(--brand);
}

.terms-box p {
  font-size: 14px;
  color: #4f5d72;
  text-align: left;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 13px 0;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--brand);
}

.check-row span {
  line-height: 1.45;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
}

.submit-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  padding: 25px 29px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(32, 46, 60, .07);
}

.submit-area p {
  margin: 0;
  color: var(--muted);
  text-align: left;
}

.submit-order {
  border: 0;
  border-radius: 5px;
  padding: 15px 25px;
  background: #2d4a8a;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
 
}


.order-footer {
  padding: 24px 0;
  text-align: center;
  background: #1e2637;
  color: #d8deea;
}

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--soft);
}

.status-card {
  max-width: 660px;
  background: #fff;
  padding: 45px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(30, 38, 55, .12);
}

.status-icon {
  font-size: 54px;
  color: #29965a;
}

.status-card h1 {
  color: var(--brand);
}

.status-card p {
  text-align: center;
}

.status-card a {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  border-radius: 5px;
}

@media (max-width: 767px) {
  .order-page {
    padding: 40px 0;
  }

  .order-title h1 {
    font-size: 30px;
  }

  .order-grid {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 21px;
  }

  .package-summary,
  .type-switch,
  .fields-grid {
    grid-template-columns: 1fr;
  }

  .field-wide,
  .package-summary .summary-total {
    grid-column: auto;
  }

  .submit-area {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-area p {
    text-align: center;
  }

  .order-header-inner {
    min-height: 75px;
  }

  .order-logo img {
    max-height: 48px;
  }

  .back-link {
    font-size: 13px;
  }
}

/* Adatvédelmi tájékoztató felugró ablak */

.privacy-open-link {
  padding: 0;
  border: 0;
  background: none;
  color: #1268d3;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-open-link:hover,
.privacy-open-link:focus {
  text-decoration-thickness: 2px;
}

.privacy-modal[hidden] {
  display: none !important;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, .72);
  backdrop-filter: blur(3px);
}

.privacy-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(860px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.privacy-modal-header,
.privacy-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
}

.privacy-modal-header {
  border-bottom: 1px solid #e6eaf0;
}

.privacy-modal-footer {
  border-top: 1px solid #e6eaf0;
}

.privacy-modal-header h2 {
  margin: 2px 0 0;
}

.privacy-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #eef2f7;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.privacy-scroll {
  overflow-y: auto;
  padding: 22px;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.privacy-document h5 {
  margin: 24px 0 10px;
}

.privacy-document h5:first-child {
  margin-top: 0;
}

.privacy-document p,
.privacy-document li {
  line-height: 1.65;
}

.privacy-end-marker {
  margin-top: 24px;
  padding: 14px;
  border-radius: 10px;
  background: #eaf8ef;
  color: #20733b;
  font-weight: 700;
  text-align: center;
}

.privacy-modal-footer p {
  margin: 0;
}

.privacy-confirm {
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  padding: 12px 18px;
  background: #1268d3;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.privacy-confirm:disabled {
  background: #aeb8c5;
  cursor: not-allowed;
  opacity: .75;
}

.privacy-modal-open {
  overflow: hidden;
}

.privacy-status-success {
  color: #20733b;
  font-weight: 700;
}

.privacy-check-row input:disabled {
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .privacy-modal {
    padding: 0;
  }

  .privacy-modal-dialog {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .privacy-modal-header,
  .privacy-modal-footer {
    padding: 14px 16px;
  }

  .privacy-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .privacy-confirm {
    width: 100%;
  }

  .privacy-scroll {
    padding: 18px 16px;
  }
}