:root {
  --header-bg: #23272f;
  --page-bg: #35588d;
  --panel-border: rgba(255, 255, 255, 0.25);
  --text: #ffffff;
  --input-bg: #f1f1f1;
  --input-text: #111111;
  --button-bg: #f5a623;
  --button-text: #111111;
  --status-success: #9be59b;
  --status-error: #ffb3b3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.page-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 170px 1fr;
}

.top-banner {
  background: var(--header-bg);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
}

.logo-area {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo {
  max-width: 230px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.banner-text {
  text-align: center;
  padding-right: 120px;
}

.banner-text h1 {
  margin: 0 0 20px 0;
  font-size: 2.2rem;
  font-weight: 700;
}

.banner-text p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.main-content {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 28px;
  align-items: stretch;
}

.panel {
  border: 1px dashed var(--panel-border);
  padding: 20px 18px;
  min-height: 0;
}

.form-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#visitorForm {
  width: 100%;
  max-width: 460px;
}

.form-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px 16px;
  align-items: center;
}

.form-grid label {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.form-grid input {
  width: 100%;
  height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 2px;
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 1rem;
  outline: none;
}

.form-grid input:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.checkbox-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  width: 14px;
  height: 14px;
}

.checkbox-row label {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.button-row {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.button-row button {
  min-width: 136px;
  height: 32px;
  border: 0;
  border-radius: 1px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.button-row button:hover:not(:disabled) {
  filter: brightness(1.03);
}

.button-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-message {
  min-height: 24px;
  margin-top: 18px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.status-message.success {
  color: var(--status-success);
}

.status-message.error {
  color: var(--status-error);
}

.rules-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.rules-panel h2 {
  margin: 0 0 18px 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

.rules-list {
  min-height: 0;
  overflow: hidden;
}

.rules-list p {
  margin: 0 0 22px 0;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-rows: 150px 1fr;
  }

  .top-banner {
    grid-template-columns: 220px 1fr;
  }

  .banner-text {
    padding-right: 40px;
  }

  .banner-text h1 {
    font-size: 1.9rem;
  }

  .main-content {
    gap: 16px;
    padding: 16px;
  }

  .rules-list p {
    margin-bottom: 16px;
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .form-grid label,
  .checkbox-row label {
    font-size: 0.88rem;
  }
}
