:root {
  --green: #16c560;
  --green-dark: #12a850;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e8e8e8;
  --max-width: 800px;
  --header-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--white);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---- Header ---- */

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green);
  padding: 0.55rem 1.1rem;
  white-space: nowrap;
}

.powered-by__label {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
}

.powered-by__logo {
  height: 22px;
  width: auto;
  display: block;
}

.widget-header__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--green);
  font-weight: 600;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.75rem;
  background: var(--green);
  border: 2px solid var(--green);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-login:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* ---- Main ---- */

.widget-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.widget-page-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.widget-page-intro__title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.widget-page-intro__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.widget-disclaimer {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.875rem;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.widget-container {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.widget-container iframe {
  display: block;
  border: none;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--white);
  color: var(--text);
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer__brand {
  flex-shrink: 0;
}

.site-footer__logo {
  width: 170px;
  height: auto;
}

.site-footer__contact {
  flex: 0 1 auto;
  min-width: 0;
}

.site-footer__heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.site-footer__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.site-footer__role {
  font-size: 0.85rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 0.6rem;
}

.site-footer__divider {
  border: none;
  border-top: 2px solid var(--green);
  margin: 0 0 0.6rem;
}

.site-footer__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.site-footer__detail {
  font-size: 0.85rem;
  color: #333;
  white-space: nowrap;
}

.site-footer__label {
  color: var(--green);
  font-weight: 600;
}

.site-footer__detail a {
  color: #333;
  text-decoration: none;
}

.site-footer__link {
  text-decoration: underline !important;
}

.site-footer__detail a:hover {
  color: var(--green);
}

.site-footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #333 !important;
  text-decoration: underline;
  white-space: nowrap;
}

.site-footer__linkedin svg {
  color: #0077b5;
  flex-shrink: 0;
}

.site-footer__linkedin:hover {
  color: var(--green) !important;
}

/* ---- Warning ---- */

.file-protocol-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.5rem;
  background: #c0392b;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}

.file-protocol-warning a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .widget-header {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .widget-header__actions {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .widget-main {
    padding: 1.5rem 1rem 3rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .site-footer__contact {
    max-width: 100%;
  }

  .site-footer__details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
