/* Installer page styles */
body.install-page .install-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.install-page .subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }
body.install-page .container { background: var(--card-bg); padding: 48px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 12px rgba(0,0,0,0.25); width: 100%; max-width: 600px; position: relative; z-index: 1; }
body.install-page .form-group { margin-bottom: 24px; }
body.install-page label { display:block; font-weight:500; margin-bottom: 8px; color: var(--text-primary); font-size: 0.95rem; }
body.install-page input[type="text"],
body.install-page input[type="email"],
body.install-page input[type="tel"] { width:100%; padding:14px 16px; background: var(--darker-bg); border: 1px solid rgba(255,255,255,0.1); border-radius:8px; color: var(--text-primary); font-size:1rem; transition: all 0.3s ease; }
body.install-page input[type="text"]:focus,
body.install-page input[type="email"]:focus,
body.install-page input[type="tel"]:focus { outline:none; border-color: var(--neon-blue); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
body.install-page .btn { width:100%; padding:16px; background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan)); color: var(--dark-bg); border:none; border-radius:8px; font-size:1rem; font-weight:600; cursor:pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: .5px; }
body.install-page .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,0.3); }
body.install-page .message { padding:16px 20px; border-radius:8px; margin-bottom:24px; text-align:center; border:1px solid; }
body.install-page .message.error { background: rgba(239,68,68,0.1); color: var(--danger); border-color: rgba(239,68,68,0.3); }
body.install-page .message.success { background: rgba(16,185,129,0.1); color: var(--success); border-color: rgba(16,185,129,0.3); }
body.install-page .message h2 { font-size: 1.3rem; margin-bottom:8px; }
body.install-page .consent-label { display:flex; align-items:flex-start; font-size: .9rem; font-weight: normal; color: var(--text-secondary); line-height:1.5; }
body.install-page .consent-label input[type="checkbox"] { width:18px; height:18px; margin-right:12px; margin-top:2px; cursor:pointer; flex-shrink:0; }
body.install-page .consent-label a { color: var(--neon-blue); text-decoration: none; }
body.install-page .consent-label a:hover { text-decoration: underline; }
body.install-page hr { margin:32px 0; border:0; border-top:1px solid rgba(255,255,255,0.08); }
body.install-page .info-box { background: rgba(0,212,255,0.05); border:1px solid rgba(0,212,255,0.2); border-radius:8px; padding:16px; margin-bottom:24px; text-align:center; color: var(--neon-blue); font-weight:500; }
body.install-page .footer { margin-top:32px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.08); text-align:center; color: var(--text-secondary); font-size:.9rem; }
body.install-page .footer a { color: var(--neon-blue); text-decoration:none; }
body.install-page .footer a:hover { text-decoration: underline; }
/* Usunięto ciemną wersję modalu — stosujemy jasną, czytelną wersję poniżej */
.hp-field { position: absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }
.container {
  max-width: 840px;
  margin: 0 auto;
  padding: 24px;
}
.install-title {
  font-size: 32px;
  line-height: 1.25;
  margin: 8px 0 8px;
}
.subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 24px;
}

.hero-slogan {
  font-size: 22px;
  line-height: 1.4;
  color: var(--neon-blue, #00d4ff);
  margin: 6px 0 12px;
  letter-spacing: 0.5px;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
}
.form-group input:focus { outline: 3px solid #93c5fd; border-color: #60a5fa; }
.input-hint { display: block; margin-top: 6px; font-size: 13px; color: #6b7280; }
.error-text { display:block; margin-top:6px; font-size:13px; color:#ef4444; }
.form-group input[aria-invalid="true"] { border-color:#ef4444; outline:3px solid rgba(239,68,68,0.25); }

.consent-label { display: flex; gap: 10px; align-items: flex-start; }
.consent-label input { margin-top: 3px; }
/* Helper layout for inline inputs */
.input-row { display: flex; gap: 8px; align-items: center; }
.flex-1 { flex: 1; }
/* Wyniki wyszukiwania branż */
.branch-results { margin-top: 8px; background: var(--card-bg); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; max-height: 220px; overflow-y: auto; display: none; }
.branch-item { padding: 10px 12px; color: var(--text-primary); cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.06); }
.branch-item:last-child { border-bottom: none; }
.branch-item:hover, .branch-item:focus { background: rgba(0,212,255,0.08); outline: none; }

.message { border-radius: 12px; padding: 12px 16px; }
.message.success { background: #ecfdf5; color: #065f46; }
.message.error { background: #fef2f2; color: #991b1b; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: none; cursor: pointer; }
.btn-primary { background: #111827; color: #fff; }
.btn-primary:focus { outline: 3px solid #93c5fd; }
.btn[disabled] { opacity: 0.7; cursor: not-allowed; }
.btn-spinner { display: none; width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.loading .btn-spinner { display: inline-block; }
.btn.loading .btn-label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

.footer { margin-top: 32px; text-align: center; color: #6b7280; }
.footer a { color: #111827; }

.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.85); z-index: 10000; }
.modal[aria-hidden="false"] { display: flex; }
.modal-content { background: var(--card-bg); color: var(--text-primary); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; max-width: 720px; width: calc(100% - 32px); padding: 24px; position: relative; z-index: 10001; max-height: 85vh; overflow-y: auto; }
.modal-content ul { padding-left: 18px; }
.modal-close { position: absolute; top: 12px; right: 12px; border: none; background: rgba(255,255,255,0.12); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,255,255,0.25); }

/* Mobile enhancements */
@media (max-width: 640px) {
  body.install-page { padding: 16px; }
  body.install-page .container { padding: 24px; max-width: 100%; }
  .install-title { font-size: 28px; }
  .subtitle { font-size: 16px; }
  .hero-slogan { font-size: 18px; }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"] { font-size: 16px; padding: 12px 14px; }
  .btn { padding: 12px 16px; font-size: 16px; }
  .modal-content { width: calc(100% - 24px); padding: 16px; border-radius: 14px; }
  .modal-close { top: 8px; right: 8px; width: 40px; height: 40px; font-size: 22px; }
  .consent-label { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .install-title { font-size: 24px; }
  .subtitle { font-size: 15px; }
  .hero-slogan { font-size: 17px; }
  .form-group label { font-size: 14px; }
  .input-hint, .error-text { font-size: 12px; }
  .modal-content { width: calc(100% - 16px); padding: 14px; }
  .modal-close { width: 44px; height: 44px; font-size: 24px; }
}
/* Wyśrodkowanie pionowe strony instalatora */
body.install-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Kontener formularza pozostaje w centrum */
body.install-page .container {
  margin: 0 auto;
}

/* Dla wiadomości sukcesu/błędu w centrum */
body.install-page .message {
  margin-left: auto;
  margin-right: auto;
  max-width: 600px;
}
