html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #f8f7f6;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  color: #222;
  /* Make html and body both flex containers for sticky footer */
  display: flex;
  flex-direction: column;
}

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

body {
  flex: 1 0 auto;          /* Allow body to grow/shrink as needed */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 60px;       /* header height */
}

.header, .footer {
  width: 100%;
  box-sizing: border-box;
  padding-left: 360px;
  padding-right: 360px;
  flex: 0 0 auto;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #efefef;
  box-shadow: 0 2px 10px rgba(60,64,67,0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: #eaeaea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1.5px solid #b0b0b0;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand {
  font-size: 2.2em;
  font-weight: 600;
  letter-spacing: 0px;
  color: #222;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  transition: font-size 0.15s;
}
.brand a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  outline: none;
}
.brand a:hover, .brand a:focus, .brand a:active {
  color: inherit;
  text-decoration: none;
}
.header-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4em;
  color: #464d5b;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  margin-left: 20px;
  z-index: 200;
  transition: color 0.18s;
}
.header-menu-toggle:focus { outline: 2px solid #0077cc; }
.header-nav {
  display: flex;
  gap: 30px;
  align-items: center;
  transition: all 0.2s;
}
.header-nav a {
  text-decoration: none;
  color: #464d5b;
  font-weight: bold;
  font-size: 1.06em;
  padding: 5px 2px;
  transition: color 0.18s;
}
.header-nav a:hover {
  color: #0077cc;
}

/* Container (for content pages like Guide) */
.container {
  box-sizing: border-box;
  padding-left: 360px;
  padding-right: 360px;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  flex: 1 0 auto; 
  display: block;
}

/* Section Rows (if present; optional for Guide) */
.section-row {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 0;
  margin-bottom: 0;
  background: transparent;
}
.section-row:nth-of-type(odd) { background: #f8f7f6; }
.section-row:nth-of-type(even) { background: #fff; }
.section-inner {
  display: flex;
  padding-left: 360px;
  padding-right: 360px;
  margin: 0 auto;
  max-width: none;
  align-items: flex-start;
  gap: 70px;
}
.section-title {
  flex-basis: 33.3333%;
  max-width: 33.3333%;
  min-width: 0;
  font-size: 1.8em;
  font-weight: 500;
  color: #000;
  line-height: 1.2;
  padding: 32px 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.section-content {
  flex-basis: 66.6666%;
  max-width: 66.6666%;
  min-width: 0;
  font-size: 1.13em;
  line-height: 1.7;
  padding: 32px 0;
  background: transparent;
}
.gray-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .8em;
  padding: 0px 10px;
  background: #d6d5d2;
  color: #111;
  font-weight: normal;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(60,60,60,0.08);
  transition: background 0.15s, box-shadow 0.12s, font-size 0.18s;
  letter-spacing: 0.03em;
  width: 100%;
  max-width: 170px;
  height: 40px;
  max-height: 40px;
  text-align: center;
  margin: 0;
  margin-top: 10px;
}
.gray-btn:hover,
.gray-btn:focus {
  background: #cacaca;
  color: #111;
  box-shadow: 0 4px 16px rgba(60, 60, 60, 0.16);
}
.section-content .gray-btn {
  margin-left: 0; /* Centering in section*/
  margin-right: auto;
}

/* Stacked Section Images */
.section-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 32px;
  padding-left: 360px;
  padding-right: 360px;
  width: 100%;
  box-sizing: border-box;
}

.section-images img {
  width: 100%;
  max-width: none; /* remove unnecessary limitation */
  border-radius: 13px;
  box-shadow: 0 4px 18px rgba(60,64,67,0.13);
  display: block;
}

/* Footer always at the bottom, but does not overlay content */
.footer {
  background: #f8f7f6;
  color: #a6a5a2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: .85em;
  height: 60px;
  margin-top: 0; /* <-- Remove any explicit margin-top that pushes it away */
  flex-shrink: 0; /* <-- Prevent shrinking */
}
.footer-left { font-weight: 200; }
.footer-right {
  color: #a6a5a2;
  text-decoration: none;
  margin-left: 50px;
  font-weight: 200;
}
.footer-right:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  align-items: center;
}

.form-wrapper {
  position: relative;
  width: 100%;           /* Full width of parent container */
  padding-bottom: 100%;  /* Aspect ratio for form height (approximate) */
  height: 0;
  overflow: hidden;
}

.form-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Responsive adjustments */
@media (max-width: 1600px) {
  .header, .footer, .container, .section-inner, .section-images {
    padding-left: 180px;
    padding-right: 180px;
  }
}
@media (max-width: 1300px) {
  .header, .footer, .container, .section-inner, .section-images {
    padding-left: 100px;
    padding-right: 100px;
  }
}
@media (max-width: 1100px) {
  .header, .footer, .container, .section-inner, .section-images {
    padding-left: 70px;
    padding-right: 70px;
  }
}
@media (max-width: 900px) {
  .header, .footer, .container, .section-inner, .section-images {
    padding-left: 20px;
    padding-right: 20px;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .header {
    height: 60px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .header-left { gap: 12px; }
  .logo {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .brand {
    font-size: 1.4em;
    letter-spacing: 1px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-menu-toggle { display: flex; }
  .header-nav {
    position: fixed;
    top: 54px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100vw;
    padding: 0 0 14px 0;
    box-shadow: 0 8px 23px 5px rgba(60,64,67,0.04);
    border-bottom: 1px solid #e3e9f2;
    z-index: 1002;
    display: none;
    transition: all 0.25s;
  }
  .header-nav.open {
    display: flex;
    animation: menuIn 0.24s cubic-bezier(.4,0,.2,1);
  }
  @keyframes menuIn {
    0% { opacity: 0; transform: translateY(-10px);}
    100% { opacity: 1; transform: translateY(0);}
  }
  .header-nav a {
    width: 100%;
    display: block;
    padding: 16px 26px 10px 26px;
    font-size: 1.15em;
    border: none;
    background: none;
    text-align: left;
    color: #222;
    font-weight: bold;
    border-bottom: 1px solid #f0f2f9;
  }
  .header-nav a:last-child {
    border-bottom: none;
  }
  .section-row {
    margin-left: 0;
    margin-right: 0;
    width: 100vw;
    max-width: 100vw;
  }
  .section-inner, .section-images {
    flex-direction: column;
    gap: 20px;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .section-title, .section-content {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding-left: 0;
    padding-right: 0;
  }
  .section-title {
    font-size: 1.4em;
    padding-top: 16px;
    padding-bottom: 0;
    display: block;
    align-items: flex-start;
  }
  .section-content {
    padding-top: 0;
    padding-bottom: 16px;
    display: block;
  }
  .section-images {
    margin-top: 24px;
    gap: 24px;
  }
  .section-images img {
    max-width: 100vw;
  }
  .section-content .gray-btn {
  margin-left: auto; /* Centering in section*/
  margin-right: auto;
  }
  .gray-btn {
    font-size: .7em;
    padding: 14px 0;
    max-width: 170px;
    width: 100%;
    border-radius: 16px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}

/* Guide content heading */
.container h1 {
  font-size: 1.8em;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 28px;
  color: #222;
}
.container h2 {
  font-size: 1.4em;
  font-weight: 600;
  margin-top: 34px;
  margin-bottom: 12px;
  color: #232222;
}
.container ul {
  margin: 0 0 16px 0;
  padding-left: 1.8em;
}
.container p {
  margin-bottom: 16px;
  margin-top: 8px;
}
