/* VietCALL: the site footer (templates/core/footer.html) and the Contact page (templates/core/core/contact.html),
   on every page. Colours and fonts from the VietCALL brand kit: navy #323e69, red #bb0400, cream #f7f6f3,
   Playfair Display for the name and headings, Plus Jakarta Sans for text. */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

/* Indico's footer box (and the event theme's) only frames ours: no padding, border or colours of its own. */
.footer:has(> .vc-footer) {
  margin-top: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 4px solid #bb0400 !important;
  background: #323e69 !important;
  color: #fff !important;
  box-shadow: none !important;
}
.vc-footer {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #d6d9e4;
  text-align: left;
}
/* Indico's own CSS gives every footer element a 40px line height (.footer *), and the event theme
   colours every h2 with !important: undo both here. Rules setting their own line height below use
   .vc-footer in front, to outrank this one. */
.footer .vc-footer * { line-height: inherit; }
.vc-footer a { color: #fff !important; text-decoration: none !important; }
.vc-footer a:hover { color: #ffd9d6 !important; text-decoration: underline !important; }
.vc-footer ul { margin: 0; padding: 0; list-style: none; }
.vc-footer li { margin: 0; padding: 0; border: 0; background: none; }
.vc-footer li::before, .vc-footer li::after { content: none !important; }
.vc-footer svg { flex: none; width: 16px; height: 16px; }

.vc-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 32px 56px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  box-sizing: border-box;
}
.vc-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.vc-footer-logo { display: block; width: 170px; height: auto; }
.vc-footer .vc-footer-name {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}
.vc-footer-about { max-width: 460px; margin: 0; }
.vc-footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px !important; }
.vc-footer .vc-footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.vc-footer-social a:hover { border-color: rgba(255, 255, 255, 0.6); text-decoration: none !important; }

.vc-footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.vc-footer .vc-footer-col h2 {
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #ffb4ae !important;
}
.vc-footer-col p { margin: 0; }
.vc-footer-col ul { display: flex; flex-direction: column; gap: 6px; }
.vc-footer-mail { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.vc-footer-button {
  margin-top: 4px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #bb0400;
  font-weight: 700;
}
.vc-footer-button:hover { background: #d62839; text-decoration: none !important; }
.vc-footer .vc-footer-button:hover { color: #fff !important; }
.vc-footer-site { font-weight: 700; }

.vc-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: #c3c8d8;
}
.vc-footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.vc-footer-bottom a,
.vc-footer-bottom span { color: #c3c8d8 !important; } /* Indico's .footer span is a grey unreadable on navy */
/* The rule above the bottom line spans the full width, not just the content column. */
.footer:has(> .vc-footer) .vc-footer-bottom { max-width: none; padding-left: max(24px, calc((100% - 1072px) / 2)); padding-right: max(24px, calc((100% - 1072px) / 2)); }

@media (max-width: 860px) {
  .vc-footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vc-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .vc-footer-main { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 28px 20px 12px; }
  .vc-footer-brand { padding-bottom: 20px; }
  .vc-footer-col { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .vc-footer-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  /* Touch targets at least 44px tall. */
  .vc-footer-col ul a { display: flex; align-items: center; min-height: 44px; }
  .vc-footer-social a,
  .vc-footer-mail,
  .vc-footer-bottom a { min-height: 44px; box-sizing: border-box; }
  .vc-footer-bottom a { display: inline-flex; align-items: center; }
  .vc-footer-button { padding: 12px 18px; }
  .footer:has(> .vc-footer) .vc-footer-bottom { flex-direction: column-reverse; align-items: flex-start; padding: 12px 20px 20px; }
}

/* Login page (templates/core/layout/auth_base.html, templates/core/auth/login_page.html): header band, the form in a
   card, and only the footer's bottom line, at the foot of the window. Indico pins its footer there with
   position: absolute, which only suits one line (the full footer covered the form), so this is a flex column instead. */
body:has(.login-page) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto !important;
  margin: 0;
  background: #f7f6f3 !important;
}
body:has(.login-page) > .wrapper,
body:has(.login-page) .main,
.login-page,
.login-page .middle,
.login-page .centered-column-wrapper {
  display: flex !important;
  flex: 1 0 auto;
  flex-direction: column;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
.vc-auth-header { flex: none; border-bottom: 4px solid #bb0400; background: #323e69; }
.vc-auth-header a {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  box-sizing: border-box;
  color: #fff;
  text-decoration: none;
}
.vc-auth-header a:hover span { text-decoration: underline; }
.vc-auth-header img { display: block; flex: none; width: 130px; height: auto; }
.vc-auth-header span { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-weight: 600; line-height: 1.3; }

.login-page .centered-column {
  display: flex !important;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 36px 16px !important;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #5f6368;
}
.login-page .login-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100% !important;
  max-width: 420px;
  margin: 0 !important;
  padding: 32px !important;
  box-sizing: border-box;
  border: 1px solid #e8e3dd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(50, 62, 105, 0.08);
}
.login-page .login-container .header-logo { display: none !important; }
.vc-login-title { order: -1; }
.login-page .login-reason-box {
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 8px;
  background: #eef0f6 !important;
  color: #323e69 !important;
  font-size: 13.5px;
  text-align: center;
}
.vc-login-title h1 {
  margin: 0 0 6px;
  padding: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  color: #323e69;
}
.vc-login-title p { margin: 0; font-size: 14px; line-height: 1.5; color: #5f6368; }
.login-page #login-form { margin: 4px 0 0 !important; }
.login-page #login-form input:not([type=hidden]):not([type=submit]) {
  display: block;
  width: 100% !important;
  height: 44px !important;
  margin: 0 0 10px !important;
  padding: 0 12px !important;
  box-sizing: border-box;
  border: 1px solid #cfd4de !important;
  border-radius: 8px !important;
  background: #fff !important;
  font: inherit;
  font-size: 15px !important;
  color: #2c2c2c;
}
.login-page #login-form input:not([type=hidden]):not([type=submit]):focus {
  border-color: #323e69 !important;
  outline: 2px solid rgba(50, 62, 105, 0.2);
}
.login-page .forgot-my-password { margin: 0 !important; text-align: right; font-size: 13px; }
.login-page .login-container a,
.login-page .register a,
.login-page .link a { color: #bb0400 !important; font-weight: 600; text-decoration: none; }
.login-page .login-container a:hover,
.login-page .register a:hover,
.login-page .link a:hover { color: #8f0300 !important; text-decoration: underline; }
.login-page .i-button.login-form-button {
  display: block;
  width: 100% !important;
  height: 46px !important;
  margin: 4px 0 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #bb0400 !important;
  box-shadow: none !important;
  color: #fff !important;
  font: inherit;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  cursor: pointer;
}
.login-page .i-button.login-form-button:hover,
.login-page .i-button.login-form-button:focus { background: #d62839 !important; }
.login-page .register { width: 100%; max-width: 420px; margin: 18px 0 0 !important; text-align: center; font-size: 14px; }
.login-page .link { width: 100%; max-width: 420px; margin: 10px 0 0 !important; text-align: center; font-size: 13px; }

.login-page .footer:has(> .vc-footer) {
  position: static !important;
  display: block !important;
  flex: none;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-top: 0 !important;
}
.login-page .vc-footer-main { display: none !important; }
.login-page .footer:has(> .vc-footer) .vc-footer-bottom { border-top: 0; }
@media (max-width: 560px) {
  .vc-auth-header a { gap: 12px; padding: 12px 16px; }
  .vc-auth-header img { width: 104px; }
  .vc-auth-header span { font-size: 13.5px; }
  .login-page .login-container { padding: 24px 20px !important; }
}

/* Contact page */
.vc-contact {
  max-width: 880px;
  margin: 8px auto 0;
  color: #2c2c2c;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
.vc-contact h1 {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  color: #323e69;
}
.vc-contact-lead { margin: 0 0 28px; font-size: 16px; color: #5f6368; }
.vc-contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.vc-contact-card,
.vc-contact-follow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px;
  border: 1px solid #e8e3dd;
  border-radius: 8px;
  background: #fff;
}
.vc-contact h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bb0400;
}
.vc-contact p { margin: 0; }
.vc-contact-card a { color: #bb0400; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.vc-contact-card a:hover { color: #8f0300; text-decoration: underline; }
.vc-contact-note { font-size: 13px; color: #5f6368; }
.vc-contact-follow {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  border: 0;
  background: #323e69;
  color: #d6d9e4;
}
.vc-contact-follow h2 { color: #ffb4ae; margin-bottom: 4px; }
.vc-contact-follow ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vc-contact-follow a {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.vc-contact-follow a:hover { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
@media (max-width: 860px) {
  /* Indico's standalone text pages are 800px wide: let ours fit smaller windows. */
  .fixed-width-standalone-text-page:has(.vc-contact),
  .fixed-width-standalone-text-page:has(.vc-contact) > .page-content { width: auto !important; max-width: 100% !important; }
  .fixed-width-standalone-text-page:has(.vc-contact) { padding: 0 16px !important; box-sizing: border-box; }
}
@media (max-width: 640px) {
  .vc-contact h1 { font-size: 30px; }
  .vc-contact-cards { grid-template-columns: minmax(0, 1fr); }
}
