/*
 * Visual language lifted from egov.bg (HCL DX "egovtheme", snapshot via web.archive.org):
 *  - Fira Sans (Cyrillic), body 300, headings 500
 *  - primary blues #01497c (links/titles) / #014f86 (buttons) / #013a63 (hover)
 *  - accent line #89c2d9, page background #ededed, footer #ddd, error red #ed5656
 *  - inputs: 1px solid #333, no radius; buttons: 40px, uppercase, radius 7px
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: scroll; }

body#content {
  background-color: #ededed;
  color: #222222;
  font: 100% 'Fira Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  min-height: 100vh;
}

a { color: #01497c; text-decoration: none; }
a:hover { color: #01497c; text-decoration: underline; }

h1 { font-size: 31px; font-weight: 500; color: #000; line-height: 37px; }
h2 { font-size: 25px; font-weight: 500; color: #000; line-height: 30px; }
h3 { font-size: 20px; font-weight: 500; color: #333; line-height: 28px; }
p  { font-size: 16px; font-weight: 400; color: #333; line-height: 24px; }
p.info { font-size: 14px; font-weight: 400; color: #666; line-height: 20px; font-style: italic; }
.bold { font-weight: 700; }

input, select, button { font-family: 'Fira Sans', sans-serif; border-radius: 0; }
input[type=text] { -webkit-appearance: none; }

/* ---------- frame ---------- */

.wpthemeFrame {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */

.wpthemeHeaderWrapper {
  background-color: #fff;
  position: relative;
  min-height: 150px;
  padding: 30px 40px 20px;
}

.wpthemeDesktopHeader { display: inline-block; font-size: 1rem; }

.wpthemeLogo { display: block; color: inherit; }
.wpthemeLogo:hover { text-decoration: none; }

.wpthemeLogoImage { width: 110px; float: left; margin-right: -110px; }
.wpthemeLogoImage img { display: block; width: 90px; height: 90px; }

.wpthemeLogoMainText { margin-left: 110px; }
.logo-text { padding-top: 22px; }
.logo-text h1 {
  font-size: 24px;
  line-height: 30px;
  text-transform: uppercase;
  color: #01497c;
  letter-spacing: 0.01em;
}

/* ---------- content ---------- */

.wpthemeContainer-white { background-color: #fff; flex: 1; }

.main-section-title { padding: 50px 50px 0 50px; clear: both; }

.section-decoration-line {
  margin: 20px 0 0 50px;
  height: 4px;
  width: 120px;
  background-color: #89c2d9;
}

.band-section-wrapper { padding: 40px 50px 60px 50px; clear: both; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  border-top: 4px solid #01497c;
  background: #fff;
  padding: 28px 30px 30px;
}
.service-card h3 { color: #01497c; margin-bottom: 14px; }
.service-card p + p { margin-top: 10px; }

/* placeholders for the not-yet-built ARF functions */
.service-card.is-placeholder {
  border-top-color: #95a5b9;
  background: #f8f8f8;
}
.service-card.is-placeholder h3 { color: #585858; }
.service-card.is-placeholder p { color: #666; }
.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #01497c;
  background: #e4edf5;
  padding: 0 8px;
}
.service-links {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.service-links li {
  font-size: 16px;
  line-height: 24px;
  padding: 6px 0;
  border-bottom: 1px solid #e0e0e0;
}
.service-links li:last-child { border-bottom: 0; }
.link-disabled { color: #919191; cursor: not-allowed; }

.blank-button {
  font-family: 'Fira Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #014f86;
  background-color: #fff;
  height: 40px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  border: 2px solid #014f86;
  border-radius: 7px;
  padding: 0 20px;
  -webkit-appearance: none;
}
.blank-button:disabled { color: #919191; border-color: #c0c0c0; background: #f0f0f0; cursor: not-allowed; }

/* ---------- form ---------- */

/* forms fill the card so the action row sits at the bottom of every card */
.revocation-form { margin-top: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card > .form-actions,
.revocation-form > .form-actions { margin-top: auto; padding-top: 24px; }
.service-links { flex: 1; }

.revocation-form label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 24px;
  margin-bottom: 8px;
}

.form-input-my-space {
  width: 100%;
  height: 44px;
  border: 1px solid #333;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #222;
  background: #fff;
}
.form-input-my-space::placeholder { color: #999; letter-spacing: 0.03em; text-transform: none; }
.form-input-my-space:focus { outline: 2px solid #014f86; outline-offset: 0; }
.form-input-my-space.is-error { border: 2px solid #ed5656; }
.form-input-my-space:disabled { background: #f0f0f0; color: #666; }

.hint { font-size: 13px; font-weight: 400; color: #666; line-height: 18px; margin-top: 6px; }

.form-actions { margin-top: 24px; }
.result { flex: none; }

.blue-primary-button {
  font-family: 'Fira Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  background-color: #014f86;
  height: 40px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  border: 1px solid #014f86;
  border-radius: 7px;
  padding: 0 20px;
  -webkit-appearance: none;
}
.blue-primary-button:hover { background-color: #013a63; border-color: #013a63; }
.blue-primary-button:focus-visible { outline: 2px solid #013a63; outline-offset: 2px; }
.blue-primary-button:disabled { background-color: #95a5b9; border-color: #95a5b9; cursor: default; }

/* ---------- result ---------- */

.result {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid #95a5b9;
  background: #f8f8f8;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #333;
}
.result strong { font-weight: 500; }
.result small { display: block; font-size: 13px; color: #666; margin-top: 4px; }
.result.is-success { border-left-color: #2e7d32; background: #edf7ee; }
.result.is-error   { border-left-color: #ed5656; background: #fdecec; }
.result.is-pending { border-left-color: #89c2d9; background: #e4edf5; }

/* ---------- footer ---------- */

.wpthemeFooter {
  width: 100%;
  background-color: #ddd;
  padding: 18px 50px;
}
p.footer-text {
  font-size: 13px;
  font-weight: 400;
  color: #454545;
  line-height: 17px;
  font-style: italic;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .wpthemeHeaderWrapper { padding: 20px 16px 16px; min-height: 0; }
  .wpthemeLogoImage { width: 70px; margin-right: -70px; }
  .wpthemeLogoImage img { width: 56px; height: 56px; }
  .wpthemeLogoMainText { margin-left: 70px; }
  .logo-text { padding-top: 4px; }
  .logo-text h1 { font-size: 17px; line-height: 22px; }
  .main-section-title { padding: 30px 16px 0 16px; }
  .section-decoration-line { margin-left: 16px; }
  .band-section-wrapper { padding: 24px 16px 40px 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 20px 16px 24px; }
  .service-card.is-placeholder h3 { padding-right: 80px; }
  .form-input-my-space { font-size: 16px; }
  .blue-primary-button { width: 100%; }
  .wpthemeFooter { padding: 16px; }
}
