/* ===== Global reset (ported from original index.html inline styles) ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  min-height: 100vh;
  overflow-y: scroll;
  font-family: serif;
  background-color: #f5fbff;
}

/* ===== Navigation / header (ported from app-root) ===== */
nav {
  top: 0;
  z-index: 99;
  position: sticky;
  padding: 8px 20px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background-color: #ffffff80;
}
#notice {
  padding: 4px;
  margin: -8px -20px 8px;
  text-align: center;
  background-color: #fff;
}
.flex {
  gap: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
}
#logo { width: 160px; }
#navLinks { display: flex; gap: 40px; }
#navLinks a { color: #000; text-decoration: none; }
#navLinks a:hover { text-decoration: underline; }

/* Mobile hamburger dropdown */
.dropbtn { background-color: transparent; color: #fff; border: none; cursor: pointer; }
.dropbtn img { vertical-align: middle; width: 40px; }
.dropdown { float: right; position: relative; display: none; }
.dropdown-content {
  right: 0;
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0 8px 16px #0003;
  z-index: 1;
}
.dropdown-content a {
  color: #000;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover { background-color: #ddd; }
.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content { display: block; }

/* ===== Footer (ported from app-root) ===== */
footer { padding-top: 40px; }
footer #disclaimers { padding: 40px; background-color: #fff; }
footer p { margin-bottom: 16px; }
footer #signature {
  padding: 4px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  background-color: #000;
}

/* ===== Home page (ported from HomeComponent) ===== */
section { margin-bottom: 40px !important; }

#banner { position: relative; background-color: #9bd4e4; }
#banner > div {
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  align-items: center;
}
#banner > div > div { flex: 1; }
#bannerMsg { padding: 20px; }
#bannerMsg h1 { font-size: 40px; margin-bottom: 16px; }
#bannerMsg p { font-size: 20px; }
#bannerImg { display: block; margin: 0 auto; width: 80%; max-width: 500px; }

#program {
  border-radius: 8px;
  padding: 40px;
  border: 2px solid gold;
  margin: 0 auto;
  max-width: 600px;
  background-color: #fffc;
}
#program h3 { text-align: center; font-size: 28px; margin-bottom: 20px; }
#program p {
  color: green;
  font-size: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
#program p img { width: 24px; }

#form {
  padding: 40px 0;
  background-color: #ffffffb3;
  background-position: center center;
  background-size: cover;
  background-image: url("../assets/form-bg.jpg");
}
#form #preFormTxt {
  padding: 16px;
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
  border-radius: 8px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: #fff6;
}
#form h3 { font-size: 28px; margin-bottom: 20px; }
#form em { font-size: 20px; }

form {
  margin: 40px auto;
  max-width: 600px;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #eee;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background-color: #fffc;
}
form button {
  display: block;
  text-align: center;
  outline: 0;
  padding: 12px;
  border: none;
  margin: 20px auto 0;
  width: 80%;
  max-width: 300px;
  border-radius: 8px;
  font-weight: 600;
}
form button:enabled { background-color: #9bd4e4; cursor: pointer; }
form button:enabled:hover { background-color: #6bbbd1; }
form button:disabled { opacity: .6; cursor: not-allowed; }

.tcpa_disclosure { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.tcpa_disclosure label { font-size: 13px; }
.tcpa_disclosure input[type="checkbox"] { margin-top: 4px; }

/* Floating-label inputs (shared by home form + opt-out form) */
.inputs-ctr { gap: 20px; display: flex; flex-wrap: wrap; margin-bottom: 32px; }
.inp { flex: 1; flex-basis: 200px; position: relative; border-radius: 4px; overflow: hidden; }
.inp .label {
  position: absolute;
  top: 16px;
  left: 12px;
  font-size: 16px;
  color: #000c;
  font-weight: 500;
  transform-origin: 0 0;
  transform: translateZ(0);
  transition: all .2s ease;
  pointer-events: none;
}
.inp .focus-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0000000d;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
}
.inp input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border: 0;
  font-family: inherit;
  padding: 16px 12px 0;
  height: 56px;
  font-size: 16px;
  font-weight: 400;
  background: #00000005;
  box-shadow: inset 0 -1px #0000004d;
  color: #000;
  transition: all .15s ease;
}
.inp input:hover { background: #0000000a; box-shadow: inset 0 -1px #00000080; }
.inp input:not(:placeholder-shown) + .label { color: #00000080; transform: translate3d(0,-12px,0) scale(.75); }
.inp input:focus { background: #0000000d; outline: none; box-shadow: inset 0 -2px #008b8b; }
.inp input:focus + .label { color: #008b8b; transform: translate3d(0,-12px,0) scale(.75); }
.inp input:focus + .label + .focus-bg { transform: scaleX(1); transition: all .1s ease; }

/* Carriers */
.carriers-ctr { text-align: center; }
.carriers-ctr h1 { font-size: 40px; margin-bottom: 48px; }
.carriers-ctr .carriers {
  font-size: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.carriers-ctr .carriers div { border-radius: 20px; padding: 20px 60px; background-color: #9bd4e5; }
.carriers-ctr .carriers sup { font-size: 32px; }

/* ===== Legal / content pages (ported from privacy/terms/etc.) ===== */
.main-wrapper { padding: 0 40px 40px; }
.main-wrapper main {
  margin: 60px auto 0;
  padding: 40px;
  border-radius: 8px;
  max-width: 1280px;
  background-color: #ffffffe6;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  word-wrap: break-word;
}
.main-wrapper h3 { margin-top: 44px; margin-bottom: 4px; }
.main-wrapper p { margin-bottom: 16px; }
.main-wrapper li { list-style-position: inside; }
.main-wrapper a { color: #008b8b; }

/* Opt-out form page */
.form-wrapper { padding: 0 40px; }
.form-wrapper form {
  text-align: center;
  margin: 5vh auto 0;
  border: 1px solid #ccc;
  border-radius: 40px;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  background-color: #fffc;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.form-wrapper h1 { margin-bottom: 32px; }

/* ===== Responsive ===== */
@media only screen and (max-width: 900px) {
  #navLinks { display: none; }
  .dropdown { display: inline-block; }
  #bannerMsg {
    bottom: 0;
    position: absolute;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background-color: #fffc;
  }
  #bannerMsg h1 { font-size: 24px; }
  #bannerMsg p { font-size: 16px; }
}
