@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --inpost-yellow: #FFCC00;
  --inpost-yellow-hover: #E6B800;
  --inpost-yellow-active: #E0B000;
  --inpost-yellow-light: #FFF8D6;
  --inpost-dark: #222222;
  --inpost-dark-card: #383838;
  --inpost-dark-card-inner: #2B2B2B;
  --inpost-text: #1E1E1E;
  --inpost-text-muted: #666666;
  --inpost-text-light: #999999;
  --inpost-border: #E5E7EB;
  --inpost-bg-light: #F7F7F8;
  --inpost-pink: #D81B60;
  --inpost-green: #2E7D32;
  --inpost-red: #D32F2F;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--inpost-text);
  background-color: #FFFFFF;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- HEADER --- */
.site-header {
  background: #FFFFFF;
  border-bottom: 2px solid var(--inpost-yellow);
  position: relative;
  z-index: 100;
}

.header-top-line {
  height: 3px;
  background: var(--inpost-yellow);
  width: 100%;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px 8px 20px;
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav li {
  position: relative;
}

.header-nav a {
  text-decoration: none;
  color: #222222;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.header-nav a:hover {
  color: #000000;
  font-weight: 600;
}

.nav-badge-nowosc {
  position: absolute;
  top: -14px;
  right: 0;
  background: var(--inpost-pink);
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Sub-bar below main nav */
.header-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-bottom: 4px;
}

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

.search-tool-btn,
.login-tool-btn {
  background: none;
  border: none;
  color: #222222;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
  transition: opacity 0.2s;
}

.search-tool-btn:hover,
.login-tool-btn:hover {
  opacity: 0.8;
}

.header-right-tools {
  display: flex;
  align-items: stretch;
}

.yellow-action-bar {
  display: flex;
  align-items: center;
  background: var(--inpost-yellow);
  border-radius: 2px;
  overflow: hidden;
}

.yellow-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #111111;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border-right: 1px solid rgba(0,0,0,0.08);
  transition: background 0.2s;
  white-space: nowrap;
}

.yellow-tab-btn:hover {
  background: var(--inpost-yellow-hover);
}

.yellow-tab-btn.active {
  background: var(--inpost-yellow-active);
  box-shadow: inset 0 -2px 0 #000000;
}

.yellow-tab-flags {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.flag-icon {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 1px;
  box-shadow: 0 0 1px rgba(0,0,0,0.3);
}

/* Mobile Header Hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #222222;
}

@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .yellow-tab-btn span {
    display: none;
  }
  .yellow-tab-btn {
    padding: 8px 10px;
  }
}

@media (max-width: 640px) {
  .header-left-tools {
    gap: 10px;
  }
  .header-sub-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* --- BREADCRUMBS --- */
.breadcrumbs-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 8px 20px;
  font-size: 13px;
  color: #555555;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs-bar a {
  color: #555555;
  text-decoration: none;
}

.breadcrumbs-bar a:hover {
  text-decoration: underline;
  color: #111111;
}

.breadcrumbs-bar .sep {
  font-size: 10px;
  color: #111111;
}

.breadcrumbs-bar .current {
  color: #111111;
  font-weight: 700;
}

.page-title {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 24px 20px;
  font-size: 34px;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -0.5px;
}

/* --- INPOST HERO TRACKING SECTION --- */
.tracking-hero-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.tracking-card-container {
  position: relative;
  background: var(--inpost-dark-card);
  border-radius: 4px;
  padding: 40px 30px 30px 30px;
  color: #FFFFFF;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* Mascot & Speech bubble */
.mascot-speech-container {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 0;
  z-index: 10;
}

.mascot-peeking {
  width: 54px;
  height: 36px;
  margin-bottom: -4px;
  margin-right: -12px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.speech-bubble {
  background: #FFFFFF;
  color: #1A1A1A;
  font-size: 14.5px;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  white-space: nowrap;
  border: 1px solid #E5E7EB;
  z-index: 3;
}

/* Tracking Form inside Card */
.tracking-form-row {
  display: flex;
  gap: 16px;
  max-width: 740px;
  margin: 0 auto;
}

.tracking-input-wrapper {
  flex: 1;
}

.tracking-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  border: none;
  border-radius: 2px;
  color: #222222;
  outline: none;
  background: #FFFFFF;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.tracking-input:focus {
  box-shadow: 0 0 0 2px var(--inpost-yellow);
}

.tracking-input::placeholder {
  color: #8E9297;
}

.tracking-find-btn {
  height: 48px;
  padding: 0 36px;
  background: var(--inpost-yellow);
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.tracking-find-btn:hover {
  background: var(--inpost-yellow-hover);
}

.tracking-find-btn:active {
  transform: scale(0.98);
}

.tracking-helper-text {
  max-width: 740px;
  margin: 8px auto 0 auto;
  font-size: 11.5px;
  color: #B5B9BD;
  font-weight: 400;
}

.tracking-add-another-wrapper {
  max-width: 740px;
  margin: 22px auto 0 auto;
}

.tracking-add-btn {
  background: transparent;
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  padding: 10px 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tracking-add-btn:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 640px) {
  .tracking-form-row {
    flex-direction: column;
  }
  .tracking-find-btn {
    width: 100%;
  }
  .speech-bubble {
    font-size: 12px;
    padding: 7px 16px;
  }
}

/* --- PROMO BANNER --- */
.promo-banner-section {
  max-width: 1240px;
  margin: 36px auto;
  padding: 0 20px;
}

.promo-banner-card {
  display: flex;
  background: var(--inpost-yellow);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.promo-banner-image-box {
  width: 45%;
  position: relative;
  background: #E8ECEF;
  min-height: 180px;
  overflow: hidden;
}

.promo-banner-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-watermark {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 9px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  font-weight: 500;
}

.promo-banner-content-box {
  width: 55%;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #111111;
}

.promo-banner-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.promo-banner-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.promo-banner-btn {
  align-self: flex-end;
  background: #111111;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 36px;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.1s;
  display: inline-block;
}

.promo-banner-btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .promo-banner-card {
    flex-direction: column;
  }
  .promo-banner-image-box,
  .promo-banner-content-box {
    width: 100%;
  }
  .promo-banner-btn {
    align-self: flex-start;
  }
}

/* --- TWO COLUMN INFO & HELP SECTION --- */
.info-help-section {
  max-width: 1240px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-col-title {
  font-size: 20px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 20px;
}

/* Left App Box */
.app-promo-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.phone-mockup-img {
  width: 72px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15));
}

.app-promo-text {
  font-size: 13.5px;
  color: #333333;
  line-height: 1.5;
  margin-bottom: 16px;
}

.app-store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge-btn {
  background: #111111;
  color: #FFFFFF;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.store-badge-btn:hover {
  opacity: 0.85;
}

.store-badge-btn i {
  font-size: 18px;
}

.store-badge-btn .store-text-sub {
  font-size: 8px;
  text-transform: uppercase;
  color: #AAAAAA;
  display: block;
  line-height: 1;
}

.store-badge-btn .store-text-main {
  font-size: 11px;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

/* Right FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-bottom: 1px solid #E5E7EB;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  color: #222222;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #000000;
  font-weight: 600;
}

.faq-chevron {
  font-size: 11px;
  color: #777777;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 14px 0;
  font-size: 13px;
  color: #666666;
  line-height: 1.5;
}

.faq-item.open .faq-answer {
  display: block;
}

@media (max-width: 768px) {
  .info-help-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --- FOOTER --- */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid #ECECEC;
  margin-top: 60px;
  position: relative;
}

.footer-top-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links-list a {
  text-decoration: none;
  color: #222222;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: #000000;
  text-decoration: underline;
}

.newsletter-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.newsletter-text {
  font-size: 13px;
  color: #222222;
  font-weight: 500;
}

.newsletter-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--inpost-yellow);
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  padding: 6px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.newsletter-btn:hover {
  background: var(--inpost-yellow);
}

.footer-bottom-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid #F0F0F0;
  position: relative;
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  color: #222222;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.social-link:hover {
  color: #000000;
}

.legal-links-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: #666666;
  flex-wrap: wrap;
}

.cookie-settings-btn {
  background: #FFFFFF;
  border: 1px solid #888888;
  color: #333333;
  font-size: 10px;
  font-family: inherit;
  padding: 2px 8px;
  border-radius: 2px;
  cursor: pointer;
}

.legal-links-row a {
  color: #666666;
  text-decoration: none;
}

.legal-links-row a:hover {
  text-decoration: underline;
}

.footer-mascot-corner {
  position: absolute;
  right: 20px;
  bottom: 0;
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .footer-top-container,
  .footer-bottom-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- FORM & CARD COMPONENTS (For checkout, verify, loading, app, error, success) --- */
.inpost-content-container {
  max-width: 660px;
  margin: 30px auto;
  padding: 0 20px;
}

.inpost-card {
  background: #FFFFFF;
  border: 1px solid #E8EAEF;
  border-top: 4px solid var(--inpost-yellow);
  border-radius: 4px;
  padding: 32px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

.inpost-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 8px;
}

.inpost-card-subtitle {
  font-size: 13.5px;
  color: #555555;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Summary Box */
.inpost-summary-box {
  background: #FAFBFD;
  border: 1px solid #E2E6EE;
  border-left: 4px solid var(--inpost-yellow);
  border-radius: 3px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.inpost-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  margin-bottom: 8px;
  color: #444444;
}

.inpost-summary-total {
  font-size: 18px;
  font-weight: 800;
  color: #111111;
  border-top: 1px solid #E2E6EE;
  padding-top: 10px;
  margin-top: 10px;
}

/* Forms */
.inpost-form-group {
  margin-bottom: 16px;
}

.inpost-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.inpost-field {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 14.5px;
  font-family: inherit;
  border: 1px solid #CBD5E1;
  border-radius: 3px;
  color: #1E1E1E;
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inpost-field:focus {
  border-color: var(--inpost-yellow-hover);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25);
}

.inpost-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Buttons */
.inpost-btn-primary {
  width: 100%;
  height: 50px;
  background: var(--inpost-yellow);
  color: #111111;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.inpost-btn-primary:hover {
  background: var(--inpost-yellow-hover);
}

.inpost-btn-primary:active {
  transform: scale(0.99);
}

.inpost-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.inpost-secure-badge {
  text-align: center;
  font-size: 12px;
  color: #666666;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Code Inputs for verify.html */
.code-input-group {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0;
}

.code-digit-input {
  width: 14%;
  height: 54px;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  border: 1.5px solid #CBD5E1;
  border-radius: 4px;
  font-family: inherit;
  outline: none;
  background: #FFFFFF;
  transition: all 0.2s;
}

.code-digit-input:focus {
  border-color: var(--inpost-yellow-hover);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.3);
}

/* Alerts */
.inpost-alert-error {
  background: #FFEBEE;
  color: var(--inpost-red);
  padding: 12px 16px;
  border-radius: 3px;
  font-size: 13.5px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--inpost-red);
}
