/* =====================================================
   TRUSTLINE COURIER
   MERCHANT PAGE
   Official Business Typography
===================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: #f7f5fb;
  color: #171222;
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.nav {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #ebe7f0;
}

.nav-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand img {
  width: 170px;
  height: auto;
}

.links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.links a {
  color: #30283a;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}

.links a:hover {
  color: #5b2c91;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-btn,
.btn {
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.whatsapp-btn {
  color: #25743c;
  border: 1px solid #d7e9dc;
  background: #f6fbf7;
}

.btn {
  color: #ffffff;
  background: #35156e;
}

.btn:hover {
  background: #24104f;
}

.menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #24104f;
  transition: .25s ease;
}

.mobile-nav {
  display: none;
}


/* =====================================================
   HERO
===================================================== */

.merchant-page {
  min-height: 100vh;
}

.merchant-hero {
  min-height: calc(100vh - 78px);
  padding: 80px 20px;
  display: flex;
  align-items: center;

  background:
    radial-gradient(
      circle at top right,
      rgba(91, 44, 145, .24),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      #24104f 0%,
      #35156e 50%,
      #170b35 100%
    );
}

.merchant-container {
  width: min(1180px, 100%);
  margin: 0 auto;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(400px, 540px);

  gap: 70px;
  align-items: center;
}


/* =====================================================
   HERO CONTENT
===================================================== */

.merchant-content {
  color: #ffffff;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;

  color: #d9c8ff;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.merchant-content h1 {
  max-width: 680px;
  margin: 0;

  font-family: "Source Serif 4", Georgia, serif;

  font-size: clamp(48px, 6vw, 78px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
}

.merchant-content h1 span {
  display: block;
  color: #c7a7ff;
}

.hero-text {
  max-width: 610px;
  margin: 30px 0 36px;

  color: #e9e3f5;

  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
}

.benefits {
  display: grid;
  gap: 16px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;

  color: #ffffff;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.check {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #ffffff;
  color: #24104f;

  font-size: 14px;
  font-weight: 900;
}


/* =====================================================
   FORM CARD
===================================================== */

.merchant-form-card {
  padding: 38px;

  background: #ffffff;

  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;

  box-shadow:
    0 30px 80px rgba(0,0,0,.25);
}

.form-header {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  margin-bottom: 8px;

  color: #6d4ca2;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.form-header h2 {
  margin: 0 0 8px;

  font-family: "Source Serif 4", Georgia, serif;

  color: #211432;

  font-size: 31px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.form-header p {
  margin: 0;

  color: #6d6576;

  font-size: 13px;
  line-height: 1.6;
}


/* =====================================================
   FORM
===================================================== */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;

  color: #2a2035;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.form-group label span {
  color: #8c8494;
  font-weight: 400;
}

.form-group label strong {
  color: #b32929;
}

.form-group input,
.form-group select {
  width: 100%;
  min-height: 50px;

  padding: 12px 14px;

  border: 1px solid #ddd7e5;
  border-radius: 8px;

  outline: none;

  background: #ffffff;
  color: #251c30;

  font-size: 14px;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.form-group input::placeholder {
  color: #aaa3ae;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #6940a5;

  box-shadow:
    0 0 0 3px rgba(105,64,165,.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}


/* =====================================================
   REQUIRED NOTE
===================================================== */

.required-note {
  margin: 3px 0 20px;

  color: #77707d;

  font-size: 11px;
  line-height: 1.55;
}

.required-note strong {
  color: #b32929;
}


/* =====================================================
   SUBMIT BUTTON
===================================================== */

.submit-btn {
  width: 100%;
  min-height: 53px;

  border: 0;
  border-radius: 8px;

  background: #24104f;
  color: #ffffff;

  cursor: pointer;

  font-size: 14px;
  font-weight: 700;

  transition:
    transform .2s ease,
    background .2s ease,
    opacity .2s ease;
}

.submit-btn:hover {
  background: #35156e;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}


/* =====================================================
   LOADER
===================================================== */

.submit-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submit-loader::after {
  content: "";

  width: 14px;
  height: 14px;

  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #ffffff;

  border-radius: 50%;

  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* =====================================================
   FORM MESSAGE
===================================================== */

.form-message {
  display: none;

  margin-top: 16px;
  padding: 13px 15px;

  border-radius: 8px;

  font-size: 13px;
  line-height: 1.5;
}

.form-message.success {
  display: block;

  background: #eaf8ef;
  color: #176735;

  border: 1px solid #bde6ca;
}

.form-message.error {
  display: block;

  background: #fff0f0;
  color: #9b2727;

  border: 1px solid #f0c1c1;
}


/* =====================================================
   HONEYPOT
===================================================== */

.hp-field {
  position: absolute;
  left: -9999px;

  width: 1px;
  height: 1px;

  overflow: hidden;
}


/* =====================================================
   FLOATING WHATSAPP
===================================================== */

.whatsapp {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 900;

  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #25d366;
  color: #ffffff;

  font-size: 27px;

  box-shadow:
    0 10px 30px rgba(0,0,0,.2);
}

.whatsapp:hover {
  transform: translateY(-2px);
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
  background: #130a29;
  color: #ffffff;
}

.footer-grid {
  padding-top: 65px;
  padding-bottom: 55px;

  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 45px;
}

.footer-brand p {
  margin: 18px 0;

  color: #cfc7dc;

  font-size: 13px;
}

.footer-logo {
  width: 170px;
}

.footer h3 {
  margin: 0 0 18px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 10px;

  color: #bcb3ca;

  font-size: 13px;
}

.footer li a {
  color: #bcb3ca;
  transition: color .2s ease;
}

.footer li a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-links a {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255,255,255,.08);
  color: #ffffff;

  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom-row {
  min-height: 65px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;

  color: #948ba2;

  font-size: 11px;
}

.designer-credit {
  text-align: right;
}


/* =====================================================
   MOBILE BOTTOM NAV
===================================================== */

.footer-tabs {
  display: none;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

  .links {
    gap: 18px;
  }

  .nav-cta {
    display: none;
  }

  .menu {
    display: block;
  }

  .merchant-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .merchant-content h1 {
    max-width: 700px;
  }

  .merchant-form-card {
    width: min(600px, 100%);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

  .container {
    width: min(100% - 30px, 1180px);
  }

  .nav-row {
    min-height: 68px;
  }

  .brand img {
    width: 145px;
  }

  .links {
    display: none;
  }

  .mobile-nav {
    display: flex;

    max-height: 0;
    overflow: hidden;

    flex-direction: column;

    background: #ffffff;

    border-top: 1px solid transparent;

    transition:
      max-height .3s ease,
      border-color .3s ease;
  }

  .mobile-nav.open {
    max-height: 500px;

    border-top-color: #ebe7f0;
  }

  .mobile-nav a {
    padding: 15px 20px;

    border-bottom: 1px solid #f0edf3;

    color: #30283a;

    font-size: 14px;
    font-weight: 600;
  }

  .mobile-whatsapp {
    color: #25743c !important;
  }


  .merchant-hero {
    min-height: auto;
    padding: 55px 15px 70px;
  }

  .merchant-container {
    gap: 40px;
  }

  .eyebrow {
    margin-bottom: 16px;

    font-size: 10px;
    letter-spacing: .13em;
  }

  .merchant-content h1 {
    font-size: clamp(43px, 14vw, 62px);
    line-height: 1;
  }

  .hero-text {
    margin: 23px 0 30px;

    font-size: 15px;
    line-height: 1.7;
  }

  .benefit {
    align-items: flex-start;
    font-size: 13px;
  }

  .check {
    margin-top: 1px;
  }

  .merchant-form-card {
    padding: 25px 19px;

    border-radius: 16px;
  }

  .form-header h2 {
    font-size: 27px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group input,
  .form-group select {
    min-height: 49px;
  }


  .footer {
    padding-bottom: 70px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 25px;

    padding-top: 45px;
    padding-bottom: 35px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-logo {
    width: 150px;
  }

  .footer-bottom-row {
    min-height: auto;

    padding-top: 18px;
    padding-bottom: 18px;

    flex-direction: column;
    align-items: flex-start;

    gap: 7px;
  }

  .designer-credit {
    text-align: left;
  }


  .whatsapp {
    right: 16px;
    bottom: 78px;

    width: 50px;
    height: 50px;

    font-size: 24px;
  }


  .footer-tabs {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 1000;

    height: 64px;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    background: #ffffff;

    border-top: 1px solid #e7e2ec;

    box-shadow: 0 -8px 25px rgba(0,0,0,.08);
  }

  .footer-tabs a {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    color: #665d70;

    font-size: 10px;
    font-weight: 600;
  }

  .footer-tabs i {
    font-size: 16px;
  }

  .footer-tabs .whatsapp-tab {
    color: #1f9d49;
  }

}


/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 380px) {

  .merchant-content h1 {
    font-size: 42px;
  }

  .merchant-form-card {
    padding: 22px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

}


/* WhatsApp Ripple / Wave Effect */
.whatsapp {
  position: fixed;
  z-index: 9999;
  isolation: isolate;
}

.whatsapp::before,
.whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  animation: whatsappWave 2s infinite;
}

.whatsapp::after {
  animation-delay: 1s;
}

@keyframes whatsappWave {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.8);
    opacity: 0;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}


.whatsapp i {
  animation: whatsappBounce 2s ease-in-out infinite;
}

@keyframes whatsappBounce {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}