:root {
  --brand-primary: #1f6cff;
  --brand-primary-dark: #114cc0;
  --brand-ink: #162944;
  --brand-muted: #63748d;
  --brand-border: rgba(22, 41, 68, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.request-body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 0% 100%, rgba(31, 108, 255, 0.08), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(14, 169, 122, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
}

.compact-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.compact-card {
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(19, 45, 87, 0.12);
  padding: 24px 20px;
}

.top-brand {
  text-align: center;
  margin-bottom: 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 190px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 7px 12px;
  background: #ffffff;
}

.brand-logo img {
  max-height: 42px;
  max-width: 210px;
  width: auto;
  height: auto;
  display: block;
}

.brand-text {
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-ink);
}

.compact-title {
  margin: 10px 0 6px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.compact-subtitle {
  margin: 0 0 16px;
  text-align: center;
  color: var(--brand-muted);
  font-size: 13px;
  line-height: 1.6;
}

.request-alert {
  display: flex;
  gap: 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.request-alert .fa {
  margin-top: 2px;
}

.error-list {
  margin: 4px 0 0;
  padding-left: 16px;
}

.field-group {
  margin-bottom: 12px;
}

.field-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #203555;
}

.field-group label span {
  color: #cc2d5b;
}

.request-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--brand-border);
  border-radius: 11px;
  background: #fbfdff;
  font-size: 14px;
  color: var(--brand-ink);
  padding: 9px 11px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.request-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7890b0 50%), linear-gradient(135deg, #7890b0 50%, transparent 50%);
  background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.request-input:focus {
  border-color: rgba(31, 108, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(31, 108, 255, 0.1);
  background: #ffffff;
}

.field-error {
  display: block;
  margin-top: 4px;
  color: #c6284f;
  font-size: 11px;
  font-weight: 600;
}

.was-validated .request-input:invalid {
  border-color: #dc3f64;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.compact-actions {
  justify-content: space-between;
}

.btn-submit-request {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #2d8bff 100%);
  box-shadow: 0 12px 26px rgba(31, 108, 255, 0.24);
}

.btn-submit-request:hover,
.btn-submit-request:focus {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, #2477ea 100%);
}

.btn-cancel-request {
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid var(--brand-border);
  color: var(--brand-ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
}

.btn-cancel-request:hover,
.btn-cancel-request:focus {
  color: var(--brand-ink);
  background: #f3f7fc;
}

@media (max-width: 767px) {
  .compact-card {
    max-width: 100%;
    padding: 18px 14px;
  }

  .compact-title {
    font-size: 24px;
  }

  .compact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-submit-request,
  .btn-cancel-request {
    width: 100%;
  }
}
