/* =========================================================
   MITCHPATH LOGISTIC LLC
   CONTRACT CARRIER APPLICATION STYLE
========================================================= */

* {
  box-sizing: border-box;
}

body.contract-app-page {
  margin: 0;
  padding: 0;
  background-color: #f6effa;
  color: #24151f;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* BACKGROUND FULL PAGE */
body.contract-app-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/assets/mitchpath-contract-bg.png") no-repeat center center;
  background-size: cover;
  opacity: 0.28;
  z-index: -1;
  pointer-events: none;
}

body.contract-app-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.14);
  z-index: -1;
  pointer-events: none;
}

/* HEADER */
body.contract-app-page .site-header {
  display: block;
  width: 100%;
  padding: 18px 0;
  background: transparent;
}

.header-wrap {
  width: 90%;
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.brand-block h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #24151f;
}

.brand-block p {
  margin: 4px 0 18px;
  font-size: 13px;
  color: #5d4a66;
  text-align: center;
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  color: #24151f;
  font-weight: 700;
  font-size: 16px;
}

/* MAIN */
.contract-main {
  width: 90%;
  max-width: 950px;
  margin: 0 auto;
  padding: 70px 0 70px;
}

.contract-shell,
.contract-content {
  width: 100%;
}

.contract-sidebar {
  display: none;
}

.contract-header-inner {
  width: 90%;
  max-width: 1280px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contract-header-inner h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.contract-app-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.contract-app-nav a {
  color: #24151f;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

/* FORM STEPS */
.form-step {
  display: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 30px;
}

.form-step.active {
  display: block;
}

/* TITLES */
.form-step h2,
.contract-content h2 {
  text-align: center;
  margin: 0 0 12px;
  color: #5b2478;
  font-size: 42px;
  font-weight: 800;
}

.step-note {
  text-align: center;
  margin: 0 0 38px;
  font-size: 17px;
  color: #5d4a66;
  line-height: 1.5;
}

/* FORM LAYOUT */
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 28px;
}

.form-grid label {
  width: calc(50% - 14px);
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: #24151f;
}

.full-width {
  width: 100% !important;
}

/* INPUTS */
input,
select,
textarea {
  width: 100%;
  margin-top: 10px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(91, 36, 120, 0.22);
  background: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  color: #24151f;
  outline: none;
  transition: 0.2s ease;
}

input,
select {
  height: 54px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(91, 36, 120, 0.45);
  box-shadow: 0 0 0 3px rgba(91, 36, 120, 0.08);
}

/* CHECKBOXES */
.checkbox-line,
.agreement-box label {
  width: 100% !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 18px 0 !important;
  line-height: 1.5;
  font-weight: 700;
}

.checkbox-line input[type="checkbox"],
.agreement-box input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-top: 3px !important;
  flex-shrink: 0 !important;
}

.checkbox-line span {
  flex: 1;
}

/* BUTTON SECTION */
.form-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 38px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.form-actions .app-btn:first-child,
.form-actions button:first-child {
  margin-right: auto;
}

.form-actions .app-btn:last-child,
.form-actions button:last-child {
  margin-left: auto;
}

/* BUTTONS */
.app-btn,
button {
  min-width: 170px;
  height: 54px;
  padding: 0 28px;
  border-radius: 18px;
  border: 1px solid rgba(92,64,51,.28);
  background: rgba(255,255,255,.72);
  color: #3d2b22;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.app-btn:hover,
button:hover {
  background: rgba(255,255,255,.88);
  color: #24151f;
  transform: translateY(-1px);
}

/* HIDE BACK BUTTON ON FIRST PAGE ONLY */
#prevBtn.hidden,
#backBtn.hidden,
.hidden {
  display: none !important;
}

/* SUCCESS MESSAGE */
.success-message {
  max-width: 850px;
  margin: 40px auto;
  padding: 40px;
  text-align: center;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(104,58,130,.12);
  box-shadow: 0 12px 30px rgba(65,37,83,.08);
}

.success-message h2 {
  color: #5b2478;
  font-size: 34px;
  margin-bottom: 14px;
}

/* FOOTER */
body.contract-app-page .site-footer {
  width: 100%;
  margin-top: 30px;
  text-align: center;
  padding: 22px 0;
  background: transparent;
  color: #5b2478;
}

body.contract-app-page .site-footer p {
  margin: 0;
  font-weight: 600;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9999;
  background: transparent;
}

.cookie-banner p {
  margin: 0 0 12px;
}

.cookie-banner button {
  min-width: 170px;
  height: 54px;
}

/* MOBILE */
@media (max-width: 900px) {
  .contract-main {
    width: 92%;
    padding-top: 40px;
  }

  .form-step h2,
  .contract-content h2 {
    font-size: 34px;
  }

  .form-grid {
    flex-direction: column;
    gap: 20px;
  }

  .form-grid label,
  .full-width {
    width: 100% !important;
  }

  .form-actions {
    flex-direction: row;
    gap: 14px;
    align-items: center;
  }

  .app-btn,
  button {
    width: auto;
  }

  .header-wrap {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}