
* {
  box-sizing: border-box;
}
.page {
    display: none;
}

.page.active {
    display: block;
}

:root {
  --primary: #EB6106;
  --ink: #172033;
  --muted: #64748b;
}

body {
  margin: 0;
  padding: 25px 15px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  background: #fff;
}

.form-wrap {
  max-width: 760px;
  margin: auto;
}

#registrationForm {
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
  overflow: hidden;
}

.page {
  display: none;
  padding: 32px;
}

.page.active {
  display: block;
}

.header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-size: 25px;
  font-weight: bold;
}

h1 {
  font-size: 25px;
  margin: 0 0 8px;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.progress {
  height: 5px;
  background: #eee;
  border-radius: 10px;
  margin-top: 22px;
  overflow: hidden;
}

.progress-fill {
  width: 50%;
  height: 100%;
  background: var(--primary);
  transition: width .2s;
}

h2 {
  font-size: 18px;
  margin: 0 0 20px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 14px;
  font-weight: 700;
}

input, select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #cfd8e6;
  border-radius: 40px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(235,97,6,.12);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

button {
  border: 0;
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #d95600;
}

.btn-secondary {
  background: #D95600;
  color:#fff;
  border: 1px solid #ffd2b5;
}

.btn-secondary:hover {
  background: #ffe3d1;
}

.step-label {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 0;
}

.message {
  color: #b42318;
  font-size: 13px;
  margin-top: 10px;
}

.jquery-error {
  color: red;
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
}

.app-download-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.app-download-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: appPopupIn 0.3s ease;
}

@keyframes appPopupIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.app-download-popup .popup-header {
  background: linear-gradient(135deg, #EB6106 0%, #d95600 100%);
  color: #fff;
  padding: 20px;
  text-align: center;
}

.app-download-popup .popup-header h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.app-download-popup .popup-body {
  padding: 24px;
  text-align: center;
}

.app-download-popup .popup-body p {
  color: #5a5c69;
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.app-download-popup .popup-footer {
  padding: 0 24px 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-download-popup .btn-download {
  background: #EB6106;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.app-download-popup .btn-download:hover {
  background: #d95600;
  color: #fff;
}

.app-download-popup .btn-later {
  background: #e2e3e5;
  color: #333;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
}

.app-download-popup .btn-later:hover {
  background: #d6d8db;
}

@media(max-width:600px) {
  body {
    padding: 12px 8px;
  }

  .page {
    padding: 22px 16px;
  }

  h1 {
    font-size: 21px;
  }

  .fields {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .field.full {
    grid-column: auto;
  }

  button {
    padding: 12px 14px;
    width:100%;
  }
}

@media print {
  body {
    padding: 0;
    background: #fff;
  }

  #registrationForm {
    border: 0;
    box-shadow: none;
  }

  .page, .page.active {
    display: block !important;
    padding: 15mm;
    page-break-after: always;
  }

  .page:last-of-type {
    page-break-after: auto;
  }

  .actions, .step-label, .message, .app-download-overlay {
    display: none !important;
  }
}
