/* ==========================================================================
   Woof+ return flow — visual reskin to match the "Woof+ Return Request" design.
   Add this file's contents to site/assets/css/styles.css (or link it after
   that file). No HTML/blade markup is changed — every rule below targets
   ids/classes/structure that already exist in return/index.blade.php and
   auth/index.blade.php (they share the same layout markup + stylesheet).
   ========================================================================== */

/* ---- Fonts (copy the 4 otf files to site/assets/fonts/test-sohne-font/,
   or delete this block to keep the site's current font) ---- */
@font-face {
  font-family: 'Test Söhne';
  src: url('../fonts/test-sohne-font/TestSöhne-Buch.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Test Söhne';
  src: url('../fonts/test-sohne-font/TestSöhne-Halbfett.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Test Söhne';
  src: url('../fonts/test-sohne-font/TestSöhne-Dreiviertelfett.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Test Söhne';
  src: url('../fonts/test-sohne-font/TestSöhne-Fett.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Page shell ---- */
body.bg-white {
  background: rgb(235, 232, 228) !important;
  font-family: 'Test Söhne' !important;
}
body.bg-white a {
  color: rgb(140, 15, 20);
}
body.bg-white a:hover {
  color: rgb(110, 10, 15);
}

body.bg-white > div.min-h-screen {
  /* max-width: 1400px; */
  /* margin: 0 auto; */
  background-color: rgb(252, 250, 248) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
@media (min-width: 1024px) {
  body.bg-white {
    /* padding: 24px 0; */
  }
  body.bg-white > div.min-h-screen {
    /* border-radius: 24px; */
    overflow: hidden;
  }
}

/* ---- Left photo panel ---- */
body.bg-white > div.min-h-screen > div:first-child {
  position: relative;
  display: flex !important;
  flex-direction: column;
  gap: 30px;
}
/* dark overlay -> left-to-right gradient like the design */
body.bg-white > div.min-h-screen > div:first-child > div:first-child {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) -6.57%, rgba(0, 0, 0, 0) 100%) !important;
}
/* logo */
body.bg-white > div.min-h-screen > div:first-child img {
  max-height: 60px;
  width: auto !important;
}
/* steps block vertically centered like the design's .steps */
body.bg-white > div.min-h-screen > div:first-child > div:nth-child(3) {
  margin: auto 0 !important;
  display: flex;
  flex-direction: column;
}

/* giant watermark, bottom-left */
body.bg-white > div.min-h-screen > div:first-child::after {
  content: "WOOF+";
  position: absolute;
  left: -14px;
  bottom: -30px;
  font-weight: 600;
  font-size: 160px;
  line-height: 130px;
  letter-spacing: 2px;
  color: rgb(244, 242, 238);
  opacity: 0.1;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* ---- Step cards (step1-indicator / step2-indicator / step3-indicator) ----
   The number badges sit OUTSIDE the card, in their own column to the left,
   joined by a dashed line. The markup has no element for them, so the badge is
   the card's ::before, pulled out of the card with a negative offset — the
   card's margin-left reserves exactly that much room. Widening the steps
   container (Tailwind's max-w-[500px]) keeps the cards as wide as before once
   that margin is taken out. */
.max-w-\[500px\].px-\[60px\] {
  max-width: 640px !important;
}

.step-indicator {
      display: block;
    position: relative;
    margin-left: 104px !important;
    background-color: #00000024 !important;
    border: 1px solid #ffffff2b !important;
    border-radius: 4px !important;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.2);
    padding: 27px 22px 27px 22px !important;
}
.step-indicator:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* the gap the dashed connector runs through */
.step-indicator + .step-indicator {
  margin-top: 48px !important;
}

/* number badge, generated via ::before so no markup changes are needed */
.step-indicator::before {
    position: absolute;
    left: -104px;
    top: 50%;
    transform: translateY(-50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: #FFFFFF14;
    color: #FFFFFF78;
    font-weight: 400;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid #FFFFFF63;
}
#step1-indicator::before {
  content: "1";
}
#step2-indicator::before {
  content: "2";
}
#step3-indicator::before {
  content: "3";
}

/* the badge follows the current step: sidebar.js already puts .active on the
   card it moves to, so the highlight travels 1 -> 2 -> 3 with no JS change */
.step-indicator.active::before {
      background-color: rgb(140, 15, 20) !important;
    color: rgb(255, 255, 255) !important;
    border-color: rgb(140, 15, 20) !important;
}

/* dashed connector, running down the middle of the badge column from one badge
   to the next. It overshoots the gap at both ends so it reaches the circles;
   the badges are opaque and sit above it (z-index 2 vs 1), so it never shows
   through them. */
.step-indicator + .step-indicator::after {
      content: "";
    position: absolute;
    left: -70px;
    top: calc(50% - 135px);
    height: 80px;
    border-left: 1px dashed rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* accent bar (existing #step{n}-bar element, JS still controls its opacity) */
[id$="-bar"] {
      background-color: rgb(140, 15, 20) !important;
    width: 9px !important;
    top: 26px !important;
    bottom: 26px !important;
    border-radius: 0 6px 6px 0 !important;
}

.step-indicator h3 {
  font-size: 26px !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  color: rgb(255, 255, 255) !important;
  margin: 0 0 6px !important;
  position: relative;
  z-index: 2;
}
.step-indicator p {
  font-size: 16px !important;
  line-height: 22px !important;
  color: rgb(255, 255, 255) !important;
  margin: 0 !important;
  position: relative;
  z-index: 2;
}

/* ---- Right content panel ---- */
body.bg-white > div.min-h-screen > div:last-child {
  background-color: rgb(252, 250, 248) !important;
  color: rgb(0, 0, 0);
}

/* language / logout pill buttons */
div.flex.justify-end.mb-4 > a,
.logoutBtn {
  background-color: rgb(255, 230, 231) !important;
  color: rgb(0, 0, 0) !important;
  font-weight: 400 !important;
}
div.flex.justify-end.mb-4 > a:hover,
.logoutBtn:hover {
  background-color: rgb(252, 219, 221) !important;
}

/* step headings */
.step-content h1 {
  font-weight: 400 !important;
  font-size: 28px !important;
  line-height: 36px !important;
  color: rgb(0, 0, 0) !important;
}
.step-content h2 {
  font-weight: 700 !important;
  font-size: 48px !important;
  line-height: 1.1 !important;
  color: #000000 !important;
  margin-top: 8px;
}
.step-content p.text-gray-600 {
  font-weight: 400 !important;
  font-size: 20px !important;
  line-height: 26px !important;
  color: rgb(128, 128, 128) !important;
}
#step2 p.text-sm.text-right {
  color: rgb(128, 128, 128) !important;
}

/* text inputs (order number, postcode, product name rows) */
.step-content input[type="text"] {
      height: 54px !important;
    border-radius: 0px !important;
    background-color: #fff !important;
    border: 1px solid #F9E8E4 !important;
    padding: 16px 24px !important;
    font-size: 20px !important;
    color: rgb(0, 0, 0) !important;
    box-shadow: none !important;
    background: #fff;
    font-weight: normal;
}
.step-content input::placeholder {
  color: #B3B3B3 !important;
}
/* Focus state for every field on the page (order number, postcode, password,
   product rows, quantity / reason / address selects).
   Three yellows have to be neutralised for the red border to be the only focus
   cue: Tailwind's focus:ring-yellow-300 (a box-shadow), its
   focus:border-transparent, and the global ":focus { outline: 2px solid #f7bf23 }"
   in styles.css. Checkboxes/radios are left alone. */
.step-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.step-content select:focus,
.step-content textarea:focus {
  border-color: #8c0f14 !important;
  box-shadow: none !important;
  outline: none !important;
  --tw-ring-shadow: 0 0 #0000 !important;
  --tw-ring-offset-shadow: 0 0 #0000 !important;
  --tw-ring-color: transparent !important;
}

/* selects (quantity, reason, return address) */
.step-content select {
  height: 60px !important;
  border-radius: 17px !important;
  background-color: rgb(252, 250, 248) !important;
  border: 1px solid rgb(204, 204, 204) !important;
  font-size: 18px !important;
  color: rgb(0, 0, 0) !important;
  box-shadow: none !important;
}
/* primary CTA buttons: login / next / generate label / download label.
   #login still carries Tailwind's bg-[#ffe173] + hover:bg-yellow-400 in the
   markup; the id beats both. */
#login,
button[name="form1_submit"],
#generateLabel,
#download-label {
      background-color: rgb(140, 15, 20) !important;
    color: rgb(255, 255, 255) !important;
    border-radius: 2.74px !important;
    font-weight: 600 !important;
    border: none !important;
    font-family: Test Söhne;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
}
#login:hover,
button[name="form1_submit"]:hover,
#generateLabel:hover,
#download-label:hover {
  background-color: rgb(120, 12, 17) !important;
}

/* secondary "previous step" link inside step2 */
#step2 a {
  background-color: rgb(244, 242, 238) !important;
  color: rgb(0, 0, 0) !important;
}
#step2 a:hover {
  background-color: rgb(235, 232, 228) !important;
}

/* qr code highlight badge */
.qr_code.bg-yellow-400 {
  background-color: rgb(255, 230, 231) !important;
  color: rgb(140, 15, 20) !important;
  padding: 2px 8px;
  border-radius: 6px;
}

/* product list scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgb(140, 15, 20);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgb(110, 10, 15);
}

.step-content {margin: auto 0;}

/* 12 Aug 2026 */
body.bg-white > div.min-h-screen > div:first-child {
    width: 55%;
    background-position: left;
}
body.bg-white > div.min-h-screen > div:first-child::after{
  font-size: 200px;
}
.step-content {
      text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.w-full {
  width: 100%;
}

body p, input, textarea{
  font-family: 'Test Söhne' !important;
}


.rounded-\[2\.74px\] {
    border-radius: 2.74px;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.gap-4 {
  gap: 1rem;
}


/* ---- Responsive ---- */
@media (max-width: 1023px){
  body.bg-white > div.min-h-screen > div:first-child{
    width: 100%;
    background-position: center;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  /* the badge column eats 62px, so give it back from the container padding */
  .max-w-\[500px\].px-\[60px\] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .step-indicator {
    margin-left: 62px !important;
    padding: 14px 14px 14px 20px !important;
  }
  .step-indicator::before {
    left: -62px;
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  .step-indicator + .step-indicator {
    margin-top: 32px !important;
  }
  .step-indicator + .step-indicator::after {
    left: -39px;             /* centre of the 46px badge at left: -62px */
    top: -52px;
    height: 66px;
  }
  [id$="-bar"] {
    top: 16px !important;
    bottom: 16px !important;
    width: 7px !important;
  }
  .step-indicator h3 {
    font-size: 18px !important;
  }
  .step-indicator p {
    font-size: 13px !important;
    line-height: 18px !important;
  }
  .step-content h1 {
    font-size: 20px !important;
    line-height: 28px !important;
  }
  .step-content h2 {
    font-size: 24px !important;
  }
  .step-content p.text-gray-600 {
    font-size: 15px !important;
    line-height: 22px !important;
  }
  body.bg-white > div.min-h-screen > div:first-child::after {
    display: none;
  }
  body.bg-white > div.min-h-screen > div:first-child img{
    max-height: 45px;
  }
  div.flex.justify-end.mb-4 > a, .logoutBtn{width: auto;}

  body.bg-white > div.min-h-screen > div:first-child .mt-\[107px\],body.bg-white > div.min-h-screen > div:first-child > div:nth-child(3) {
    margin-top: 100px !important;
}
}
