/* Same layout chrome styles as lzy-main templates/core/base.html */

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

:root {
  --blue: #1565c0;
  --blue-light: #1e88e5;
  --blue-pale: #e3f0fc;
  --green: #2e7d32;
  --green-light: #43a047;
  --green-pale: #e8f5e9;
  --orange: #e65100;
  --orange-light: #ef6c00;
  --orange-pale: #fff3e0;
  --teal: #00695c;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, .12), 0 12px 32px rgba(0, 0, 0, .08);
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  margin: 0;
  background: #fff;
  color: var(--gray-800);
  line-height: 1.6;
  font-size: 15px;
  font-family: 'Inter', system-ui, sans-serif;
}

a {
  text-decoration: none;
}

/* Contact Bar */
.contact-bar {
  background: var(--gray-900);
  color: #cbd5e1;
  font-size: 12px;
  padding: 7px 0;
}

.contact-item {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.contact-divider {
  color: #475569;
}

.contact-cta {
  background: var(--blue-light);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  transition: background .2s;
  white-space: nowrap;
}

.contact-cta:hover {
  background: var(--blue);
  color: #fff;
}

.contact-link {
  color: inherit;
  text-decoration: none;
}

.contact-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Navbar */
.site-navbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
  z-index: 1000;
}

.navbar-toggler {
  border: none;
  padding: 4px;
  color: var(--gray-800);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-image {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand-sub {
  font-size: 10px;
  color: var(--gray-600);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1;
}

.brand-accent {
  color: var(--blue-light);
}

.nav-link-custom {
  color: var(--gray-600) !important;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 12px !important;
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.nav-link-custom:hover {
  background: var(--gray-100);
  color: var(--gray-900) !important;
}

.btn-nav-login {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 20px;
  border: 1.5px solid var(--blue-light);
  color: var(--blue-light);
  border-radius: 8px;
  transition: all .2s;
}

.btn-nav-login:hover {
  background: var(--blue-light);
  color: #fff;
}

.btn-nav-signup {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 20px;
  background: var(--blue-light);
  color: #fff;
  border-radius: 8px;
  transition: background .2s;
}

.btn-nav-signup:hover {
  background: var(--blue);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 48px 0 24px;
}

.footer-brand-logo {
  display: inline-flex;
  text-decoration: none;
}

.footer-brand-text {
  color: #ffffff !important;
  font-weight: 700;
}

.footer-brand-text .brand-accent,
.site-footer .brand-accent {
  color: #38bdf8;
}

.footer-brand-sub {
  color: #94a3b8;
}

.footer-desc {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.footer-heading {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 13px;
  transition: color .18s;
}

.footer-links a:hover {
  color: #fff;
}

.social-icons a {
  color: #64748b;
  font-size: 20px;
  transition: color .18s;
}

.social-icons a:hover {
  color: #fff;
}

.footer-hr {
  border-color: #1e293b;
  margin: 32px 0 16px;
}

.footer-copy {
  color: #475569;
  font-size: 12px;
  margin: 0;
}

.site-footer a {
  color: #cbd5f5;
}

.site-footer a:hover {
  color: #38bdf8;
}

/* Field validation */
#contactForm .form-control.is-invalid,
#contactForm .form-select.is-invalid {
  border-color: #dc3545;
}

#contactForm .invalid-feedback {
  display: none;
  font-size: 0.875em;
}

#contactForm .form-control.is-invalid ~ .invalid-feedback,
#contactForm .form-select.is-invalid ~ .invalid-feedback {
  display: block;
}

#contactForm .form-control.is-invalid ~ .field-hint {
  display: none;
}

/* Centered success overlay */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.success-overlay[hidden] {
  display: none !important;
}

.success-dialog {
  width: min(100%, 380px);
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  animation: successPop 0.25s ease-out;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.success-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.success-text {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
