/* ==================================================
   Core / Bootstrap overrides & base styles
   ================================================== */

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #28a745;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8f9fa;
  color: #000000;
}

/* Form floating placeholder tweaks */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.hero-heading {
  font-family: sans-serif;
  font-size: clamp(2.2rem, 1.9rem + 0.9vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
}

.navbar {
  min-height: 80px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Optional: Make "My Messages" stand out a bit */
.navbar-nav .nav-link[href*="BusinessMessages"] {
  font-weight: 500;
}

/* ==================================================
   Main Section Container (Modern Light Panel)
   ================================================== */

.bg-custom-light {
  background-color: #e9ecef;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 400px;
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 16px;
}

@media (min-width: 992px) {
  .bg-custom-light {
    width: 175%;
    margin-left: -37.5%;
  }
}

/* ==================================================
   Card / Square Box Styles (Modern Card Look)
   ================================================== */

.square-box {
  width: 390px;
  min-width: 390px;
  aspect-ratio: 4 / 4.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 16px;
  font-weight: bold;
  color: #000000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  background-color: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  text-align: center;
}

  .square-box.centered {
    justify-content: center;
  }

  .square-box:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  }

.box-text {
  display: block;
  width: 120%;
  text-align: center;
  align-self: center;
}

/* text over the image */
.square-box > .box-text:first-child {
  font-size: 1.35rem;
  font-weight: 500;
}

/* text under the image */
.boxIndex-subtext {
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 500;
}

.image-wrapper {
  position: relative;
  width: 125%;
  max-width: 125%;
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.box-image {
  width: 35%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.image-caption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  color: #000000;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  pointer-events: none;
}

.boxes-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  width: fit-content;
  max-width: none;
  margin: 0 auto;
  gap: 3rem;
}

.heading-wrapper {
  margin-bottom: 1.5rem;
}

/* ==================================================
   Lightbox Styling
   ================================================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95vh;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 0 6px #000;
}

  .close:hover {
    color: #ddd;
  }

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30,30,30,0.6);
  color: #fff;
  font-size: 48px;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 50%;
  transition: background 0.2s;
}

  .nav:hover {
    background: rgba(60,60,60,0.9);
  }

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

/* ==================================================
   Buttons Styling
   ================================================== */

.btn-primary {
  background-color: #ff0332;
  border-color: #860221;
}

  .btn-primary:hover,
  .btn-primary:focus,
  .btn-primary:active {
    background-color: #ff4c4c;
    border-color: #e63946;
  }

.btn-outline-secondary {
  background-color: #0085e2;
  border-color: #0085e2;
  color: white;
}

  .btn-outline-secondary:hover,
  .btn-outline-secondary:focus,
  .btn-outline-secondary:active {
    background-color: #0049a0;
    border-color: #0049a0;
    color: white;
  }

.btn-primary, .btn-outline-secondary {
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

/* ==================================================
   Responsive Adjustments
   ================================================== */

@media (max-width: 768px) {
  .square-box {
    width: 168px;
    min-width: 168px;
  }

  .nav {
    font-size: 36px;
    padding: 10px 16px;
  }

  .boxes-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }
}

/* Responsive adjustments for large desktop */
@media (min-width: 1400px) {
  .resend-card-body {
    padding: 3.5rem 4rem;
  }
}

/* ==================================================
   Auth Links
   ================================================== */

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.25rem;
}

.auth-link {
  color: #555555;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.25s ease;
  width: 100%;
  text-align: center;
}

  .auth-link:hover {
    color: #000000;
    background-color: #f1f3f5;
    transform: translateY(-1px);
  }

  .auth-link:active {
    background-color: #e9ecef;
  }

  .auth-link.forgot {
    color: #0066cc;
    font-weight: 500;
  }

    .auth-link.forgot:hover {
      color: #004499;
      background-color: #e7f0ff;
    }

/* ==================================================
   Misc fixes
   ================================================== */
.business-qr-frame {
  display: inline-block;
  border: 4px solid #0085e2;
  border-radius: 1rem;
  padding: 10px;
}

/* universal misc */
.form-text-blue {
  color: #0085e2;
}

/* Complete and Edit profile pages */
.validation-summary-validProfile {
  display: none;
}

.validation-summary-errors.validation-summary-validProfile {
  display: block;
}

.scale-135 {
  transform: scale(1.35);
}

.business-example-inline {
  display: inline-block;
}

.business-example-image {
  max-width: 220px;
  cursor: zoom-in;
  transition: transform .25s ease;
}

  .business-example-image:hover {
    transform: scale(1.05);
  }


/* Forgot Password */
.forgot-card-body {
  padding: 2.5rem;
}

/* Resend Email Confirmation */
.resend-email-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.resend-container {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.resend-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: none;
}

.resend-card-body {
  padding: 3rem 3.5rem;
}

.resend-title {
  font-size: 1.85rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.resend-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin: 0;
}

.resend-input {
  padding: 1.1rem 1.25rem;
  font-size: 1.1rem;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  transition: all 0.2s ease;
}

  .resend-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    outline: none;
  }

.resend-btn {
  margin-top: 1rem;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3); /* Matches Bootstrap primary */
  transition: all 0.2s ease;
}

  .resend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
  }

.btn-primary.resend-btn {
  border-radius: 12px; /* Keeps the modern rounded look */
}

.resend-alert {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
}

.back-to-login {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

  .back-to-login:hover {
    color: #3b82f6;
  }

/* Business message page qr code image */
.business-messages-qr {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* ==================================================
   Pricing Page
   ================================================== */

.pricing-page {
  max-width: 1320px;
}

.pricing-main-card,
.cancellation-card {
  border-radius: 20px;
  overflow: hidden;
}

.pricing-main-card {
  background-color: #ffffff;
}

.pricing-intro {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.monthly-pricing-wrapper {
  display: flex;
  justify-content: center;
}

.pricing-plan {
  background-color: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 18px;
  padding: 2.75rem 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.monthly-pricing-plan {
  width: 100%;
  max-width: 650px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

  .monthly-pricing-plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  }

.pricing-plan-label {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background-color: #f1f3f5;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}
.pricing-price {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.price-number {
  position: relative;
  display: inline-block;
}

.pricing-amount {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
}

.pricing-currency {
  position: absolute;
  left: -26px;
  top: 12px;
  font-size: 2rem;
  font-weight: 600;
}

.pricing-period {
  position: absolute;
  left: 100%;
  bottom: 12px;
  margin-left: 10px;
  white-space: nowrap;
  font-size: 1.3rem;
  font-weight: 500;
  color: #6c757d;
}

.pricing-divider {
  margin: 2rem 0;
  border-color: #dee2e6;
  opacity: 1;
}

.pricing-details {
  max-width: 470px;
  margin: 0 auto;
  font-size: 1.05rem;
}

  .pricing-details p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

.pricing-check {
  flex: 0 0 auto;
  color: #198754;
  font-size: 1.15rem;
  font-weight: 700;
}

.pricing-action-button {
  min-width: 230px;
  padding: 0.85rem 2rem;
  font-weight: 600;
}

.monthly-pricing-plan .alert {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cancellation-card .card-header {
  border-bottom: 1px solid #e9ecef;
}

.cancellation-card .card-body {
  font-size: 1.025rem;
  line-height: 1.7;
}

/* Keep the page usable on smaller screens */
@media (max-width: 767.98px) {
  .pricing-plan {
    padding: 2rem 1.25rem;
  }

  .pricing-amount {
    font-size: 4rem;
  }

  .pricing-period {
    font-size: 1rem;
  }

  .pricing-action-button {
    width: 100%;
    min-width: 0;
  }
}

/* Subscribe page */
.subscribe-page .pricing-plan,
.subscribe-plan {
  display: flex;
  flex-direction: column;
}

.subscribe-plan {
  min-height: 100%;
}

  .subscribe-plan h3 {
    min-height: 3.25rem;
  }

  .subscribe-plan .btn {
    margin-top: auto;
  }

/* ==================================================
   Printables Page
   ================================================== */

.printables-page {
  max-width: 1320px;
}

.printables-header {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.printables-eyebrow {
  display: inline-block;
  padding: 0.45rem 1rem;
  background-color: #e9ecef;
  border-radius: 999px;
  color: #495057;
  font-size: 0.95rem;
  font-weight: 600;
}

.printables-intro {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.printables-status-alert {
  max-width: 760px;
  border-radius: 14px;
}

.printable-card {
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

  .printable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 36px rgba(0, 0, 0, 0.11);
  }

.printable-preview-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  padding: 1.5rem;
  overflow: hidden;
  background-color: #e9ecef;
  border-bottom: 1px solid #dee2e6;
}

.printable-preview-image {
  display: block;
  width: 100%;
  max-width: 310px;
  height: 245px;
  object-fit: contain;
  border-radius: 10px;
}

.printable-card-body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.printable-title {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.printable-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.printable-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

  .printable-actions .btn {
    flex: 1 1 120px;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-weight: 600;
  }

.printable-unavailable {
  margin-top: auto;
  padding: 0.85rem 1rem;
  background-color: #f1f3f5;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  color: #6c757d;
  text-align: center;
  font-weight: 500;
}

.printables-note {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e2e6ea;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* Printables: tablet and phone adjustments */
@media (max-width: 767.98px) {
  .printables-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .printable-preview-wrapper {
    min-height: 245px;
  }

  .printable-preview-image {
    height: 210px;
  }
}

@media (max-width: 575.98px) {
  .printable-card-body {
    padding: 1.25rem;
  }

  .printable-preview-wrapper {
    min-height: 220px;
    padding: 1rem;
  }

  .printable-preview-image {
    height: 190px;
  }

  .printable-actions {
    flex-direction: column;
  }

    .printable-actions .btn {
      width: 100%;
      flex-basis: auto;
    }
}

.eula-last-updated {
  margin-bottom: 4rem;
}
