html {
  font-size: 14px;
}

@font-face {
  font-family: 'Tenaga';
  src: url('/fonts/Tenaga-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tenaga';
  src: url('/fonts/Tenaga-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tenaga';
  src: url('/fonts/Tenaga-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tenaga';
  src: url('/fonts/Tenaga-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Tenaga';
  src: url('/fonts/Tenaga-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Tenaga';
  src: url('/fonts/Tenaga-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Tenaga', system-ui, sans-serif;
}

/* Main content area grows so footer always sits below it (no overlap) */
body > .container {
  flex: 1 0 auto;
}

body > main.homepage-layout-main {
  flex: 1 0 auto;
}

/* Keep footer in document flow and at bottom of layout */
footer.footer,
.footer.border-top,
footer.border-top.footer.text-muted {
  position: static !important;
  flex-shrink: 0;
  width: 100%;
  padding: 1rem 0;
  line-height: 60px;
  white-space: nowrap;
}

.ua-radio-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.ua-radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
}

.ua-radio-input {
  margin: 0;
}

.ua-radio-label {
  font-weight: normal;
}

.ua-radio-error {
  font-size: small;
  color: #990033;
}

/* Login landing / homepage: let container use full viewport width instead of Bootstrap's 720px */
main.homepage-layout-main .container,
#login-landing-root .container {
  max-width: 100%;
}

/* Universal Delete button: red background, white text */
.btn-delete,
button.btn-delete,
input[type="submit"].btn-delete {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}
.btn-delete:hover,
button.btn-delete:hover,
input[type="submit"].btn-delete:hover {
  opacity: 0.95;
}

/* Document upload photo preview template overlay */
.photo-template-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.photo-overlay {
  position: absolute;
  top: 80px;
  left: 70px;
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  display: none;
}

.photo-template-wrapper .photo-overlay[src]:not([src=""]) {
  display: block;
}