html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f8fd !important;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
  padding-top: 90px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: url("/static/customs_bg.png") no-repeat left bottom;
  background-size: 540px auto;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* === HEADER si LOGO === */
header {
  background: transparent;
  box-shadow: 0 5px 50px #2b5fda33;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  min-height: 68px;
}

.logo-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 16px;
  min-width: 200px;
  height: 136px;
}
.logo-left img,
.responsive-logo {
  max-width: 180px;
  max-height: 120px;
  width: 100%;
  height: auto;
  display: block;
}

.logo-bar {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-slogan {
  color: #3498db;
  font-size: 1.5em;
  font-weight: 500;
  margin-left: 0;
  white-space: nowrap;
}

/* Sticky navbar */
.sticky-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #3e4e731a;
  z-index: 1002;
  padding: 10px 36px;
  display: flex;
  gap: 32px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid #e5e7ec;
}
.topbar-link {
  color: #2980d9;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.12em;
  transition: color 0.15s;
  cursor: pointer;
  padding: 4px 0;
}
.topbar-link:hover,
.topbar-link.active {
  color: #1c5bbf;
  text-decoration: underline;
  border-bottom: 2px solid #2980d9;
}

/* Info-section & main */
.info-section {
  max-width: 650px;
  margin: 38px auto 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #3e4e7320;
  padding: 32px 24px;
  font-size: 1.13em;
  scroll-margin-top: 110px;
}
nav {
  margin-left: 48px;
}
nav a {
  color: #2a5cff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
}
main {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 32px;
  margin-top: 32px;
  min-height: 80vh;
  position: relative;
  z-index: 1;
  padding-right: 6vw;
}

.info {
  flex: 0 0 340px;
  max-width: 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #3e4e7320;
  padding: 32px 24px;
  margin-right: 0;
}
.info h1 {
  font-size: 1.4em;
  color: #2980d9;
}
.info ul {
  padding-left: 20px;
}
.badge {
  margin-top: 18px;
  background: #eaf6fb;
  color: #087ac3;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 1em;
  font-weight: 600;
  display: inline-block;
}

/* Recenzii */
.reviews-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 32px #48609014;
  margin: 40px auto;
  max-width: 900px;
  padding: 32px 24px;
}
.reviews-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 32px;
  color: #20446d;
  letter-spacing: 1px;
}
.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.review {
  background: #f7fafd;
  border-radius: 16px;
  padding: 22px 18px 16px 18px;
  box-shadow: 0 2px 12px #34518110;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s;
}
.review:hover {
  box-shadow: 0 4px 24px #34518122;
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 6px;
}
.review-name {
  color: #2e4c76;
  font-size: 1.02em;
}
.review-stars {
  color: #f1b50c;
  font-size: 1.3em;
  letter-spacing: 1.5px;
  font-family: "Segoe UI", Arial, sans-serif;
}
.half-star {
  color: #f1b50c;
  font-size: 1em;
  vertical-align: super;
  margin-left: -4px;
  font-weight: bold;
}
.linie-orizontala {
  width: 94%;
  max-width: 980px;
  margin: 48px auto 20px auto;
  border-top: 2.5px solid #e0e7ef;
  border-radius: 2px;
  opacity: 0.85;
}

/* Footer bar cu linkuri & imagini */
.footer-bar-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 980px;
  margin: 0 auto 14px auto;
  padding: 0 3vw 0 3vw;
}
.footer-links {
  display: flex;
  gap: 32px;
}
.footer-links a {
  color: #295dbe;
  text-decoration: none;
  font-size: 1.14em;
  font-weight: 500;
  transition: color 0.14s;
  position: relative;
  padding: 3px 8px;
}
.footer-links a:hover {
  color: #103b80;
  text-decoration: underline;
  background: #e6f0ff;
  border-radius: 6px;
}
.footer-images-bar {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  margin: 0;
  max-width: none;
  padding-right: 0;
}
.footer-images-bar img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 2px 8px #2d488b13;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
  background: #fff;
}
.footer-images-bar img:hover {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 6px 24px #2562d815;
}

/* Form, tabs etc. */
.form-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px #3e4e7310;
  padding: 32px 28px 16px 28px;
  min-width: 320px;
  max-width: 380px;
}
.tabs {
  display: flex;
  margin-bottom: 18px;
}
.tabs button {
  flex: 1;
  background: #f3f6fd;
  border: none;
  border-radius: 10px 10px 0 0;
  padding: 12px 0;
  font-size: 1em;
  font-weight: 700;
  color: #2980d9;
  cursor: pointer;
  outline: none;
  margin-right: 2px;
  transition: background 0.2s;
}
.tabs button.active {
  background: #fff;
  border-bottom: 2px solid #2980d9;
  color: #222;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
form label {
  font-weight: 500;
  margin-bottom: 2px;
  margin-top: 12px;
  display: block;
  color: #333;
}
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="file"] {
  width: 100%;
  padding: 12px 10px;
  margin-bottom: 14px;
  border: 1px solid #ccd5e1;
  border-radius: 7px;
  font-size: 1em;
  box-sizing: border-box;
  background: #fafcff;
  transition: border-color 0.2s;
}
form input[type="submit"] {
  background: #2980d9;
  color: #fff;
  font-size: 1.09em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 16px 0;
  margin-top: 6px;
  margin-bottom: 6px;
  transition: background 0.18s;
  cursor: pointer;
}
form input[type="submit"]:hover {
  background: #2567be;
}
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus {
  border-color: #2980d9;
  outline: none;
}

/* FAQ section (extra responsive) */
.faq-section {
  max-width: 700px;
  margin: 38px auto 0 auto;
  background: #f8fbff;
  border-radius: 18px;
  box-shadow: 0 2px 18px #a5bde840;
  padding: 32px 24px;
  font-size: 1.15em;
  scroll-margin-top: 110px;
}
.faq-title {
  font-size: 1.34em;
  color: #2980d9;
  font-weight: 700;
  margin-bottom: 26px;
  letter-spacing: 1px;
}
.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.faq-item {
  margin-bottom: 12px;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 8px #8cbbe425;
  transition: box-shadow 0.18s;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f8ff;
  cursor: pointer;
  padding: 17px 18px;
  font-weight: 600;
  font-size: 1.06em;
  color: #2761b6;
  border: none;
  width: 100%;
  outline: none;
  transition: background 0.17s;
}
.faq-question:hover,
.faq-item.open .faq-question {
  background: #e6f0ff;
}
.faq-arrow {
  transition: transform 0.2s;
  margin-left: 16px;
}
.faq-item.open .faq-arrow {
  transform: rotate(90deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  color: #25324b;
  padding: 0 18px;
  font-weight: 400;
  font-size: 0.99em;
  transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1), padding 0.18s;
}
.faq-item.open .faq-answer {
  padding: 14px 18px 20px 18px;
  max-height: 500px;
}

/* === RESPONSIVE ZONE, MOBILE-FIRST IMPROVEMENTS === */
@media (max-width: 1100px) {
  .footer-bar-custom {
    max-width: 99vw;
    padding: 0 2vw;
  }
}
@media (max-width: 900px) {
  main {
    flex-direction: column;
    padding-right: 0;
    gap: 16px;
    min-height: unset;
  }
  .form-card, .info {
    margin: 0 auto 18px auto;
    max-width: 95vw;
    width: 95vw;
    min-width: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .sticky-topbar {
    flex-direction: column;
    gap: 10px;
    padding: 14px 6px;
    width: 97vw;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1em;
  }
  .info-section {
    margin: 94px 6px 0 6px;
    padding: 20px 6px;
    max-width: 98vw;
    font-size: 1em;
  }
  header {
    flex-direction: column;
    min-height: auto;
    gap: 0;
  }
  .logo-left {
    justify-content: center;
    padding-left: 0;
    margin-bottom: 10px;
    min-width: 0;
    height: auto;
  }
  .logo-left img,
  .responsive-logo {
    max-width: 65vw;
    max-height: 90px;
  }
  .logo-bar {
    justify-content: center;
  }
  .logo-slogan {
    font-size: 1.08em;
    text-align: center;
    white-space: normal;
  }
  .footer-bar-custom {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 0 2vw;
    max-width: 99vw;
  }
  .footer-links {
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
  }
  .footer-images-bar {
    justify-content: center;
  }
  .form-card {
    padding: 18px 2vw 14px 2vw;
    min-width: 0;
    width: 98vw;
    max-width: 98vw;
  }
  .info {
    padding: 18px 2vw;
    margin: 10px 0;
    min-width: 0;
    width: 98vw;
    max-width: 98vw;
  }
  .reviews-section {
    padding: 14px 2vw;
    max-width: 99vw;
  }
  main {
    padding-right: 0;
    margin-top: 12px;
    gap: 10px;
  }
  .tabs {
    flex-direction: column;
    gap: 8px;
  }
  .tabs button {
    margin-bottom: 6px;
    font-size: 1.13em;
    padding: 14px 0;
  }
  form input[type="text"],
  form input[type="email"],
  form input[type="tel"],
  form input[type="file"] {
    font-size: 1.14em;
    padding: 16px 12px;
  }
  form label {
    font-size: 1em;
  }
  form input[type="submit"] {
    font-size: 1.13em;
    padding: 16px 0;
  }
}

/* 1-column reviews on tiny screens */
@media (max-width: 480px) {
  .reviews-container {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
}

/* Tawk.to widget fix: sus dreapta pe toate rezoluțiile */
#tawkchat-container,
#tawkchat-widget-container,
.tawk-min-container,
.tawk-button {
  bottom: auto !important;
  top: 18px !important;
  right: 24px !important;
  left: auto !important;
}
.info-contact-footer {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 10px #34518120;
  font-size: 0.95em;
  color: #1f3b70;
  z-index: 1000;
  max-width: 90vw;
  line-height: 1.4;
}

.info-contact-footer a {
  color: #2a5cff;
  text-decoration: none;
  font-weight: 500;
}

.info-contact-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .info-contact-footer {
    font-size: 0.9em;
    padding: 8px 12px;
    left: 10px;
    bottom: 10px;
  }
}
.info-contact-footer {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 10px #34518120;
  font-size: 0.95em;
  color: #1f3b70;
  z-index: 1000;
  max-width: 90vw;
  line-height: 1.4;
}

.info-contact-footer a {
  color: #2a5cff;
  text-decoration: none;
  font-weight: 500;
}

.info-contact-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .info-contact-footer {
    font-size: 0.9em;
    padding: 8px 12px;
    left: 10px;
    bottom: 10px;
  }
}

