/* ======================================================
   BASE
====================================================== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f3f6fa;
  color: #0b1f33;
}

@font-face {
  font-family: "DIN Alternate";
  src: local("DIN Alternate"), local("DINAlternate-Bold");
  font-weight: 700;
  font-style: normal;
}

/* ======================================================
   LAYOUT
====================================================== */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  overflow-x: hidden;
}

/* FOOTER */
footer {
  margin-top: 80px;
  background: #fff;
  border-top: 1px solid #e6ebf1;
  padding: 40px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: #6b7b8a;
  line-height: 1.6;
}

/* ======================================================
   PAGE: INDEX — HERO
====================================================== */

.hero {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(15, 40, 80, 0.12);
}

.hero-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.hero-subtitle {
  color: #4a5a6a;
  margin-bottom: 32px;
  max-width: 700px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
}

/* FORM */
.hero form label {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}

.hero form input {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccd6e0;
  font-size: 14px;
}

.hero form input:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

.hero form button {
  width: 100%;
  margin-top: 22px;
  padding: 15px;
  border-radius: 14px;
  background: #1e88e5;
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

#form-error,
#form-status {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
}

#form-error {
  color: #b00020;
}

#form-status {
  color: #4a5a6a;
}

/* HERO RIGHT */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-trust {
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: #4a5a6a;
  text-align: right;
  margin-bottom: 20px;
}

.hero-trust div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.hero-trust span {
  color: #1e88e5;
  font-weight: 700;
}

.hero-illustration img {
  width: 100%;
  max-width: 620px;
}

/* ======================================================
   TRUST (shared cards, temporary location)
====================================================== */

.section-title {
  font-size: 28px;
  margin: 72px 0 8px;
}

.section-subtitle {
  color: #4a5a6a;
  max-width: 700px;
  margin-bottom: 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.trust-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 16px 40px rgba(15, 40, 80, 0.12);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trust-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.trust-card-title {
  font-size: 18px;
  font-weight: 600;
}

.trust-card-text {
  font-size: 15px;
  color: #4a5a6a;
  line-height: 1.5;
}

.trust-title {
  margin: 72px 0 24px;
  font-size: 22px;
  text-align: center;
}

.trust-companies {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(15, 40, 80, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
  color: #6b7b8a;
  font-size: 14px;
}

/* ======================================================
   DIALOGS
====================================================== */

#factorsDialog {
  box-sizing: border-box;
  width: min(720px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: none;
  border-radius: 20px;
  margin: auto;
}

#factorsDialog::backdrop {
  background: rgba(11, 31, 51, 0.55);
}

#factorsDialog .dialog-header {
  position: relative;
  padding: 24px 28px;
  border-bottom: 1px solid #e6ebf1;
}

#factorsDialog .dialog-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

#factorsDialog .dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: #1e88e5;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

#factorsDialog .dialog-body {
  padding: 28px;
  overflow-y: auto;
}

#factorsDialog .dialog-box {
  background: #eef3fb;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 24px;
  font-size: 15px;
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 900px) {
  .hero-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-right {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 700px) {
  #factorsDialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
}
