/* ---
  Title: Refined & Responsive Merged Stylesheet
  Description: Consolidated styles from plan.html, sucessstories.html, and others,
               optimized for responsiveness, readability, and modern standards.
--- */

/* ==========================================================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ========================================================================== */

:root {
  /* Brand Colors */
  --jd-green: #039d55;
  --jd-red-tag: #E41E26;
  --jd-orange-cta: #ff7722;

  /* Primary & Secondary Colors */
  --primary-color: #039d55;
  --primary-dark: #028347;
  --primary-light: #e6f2ef;
  --secondary-color: #a67c52;

  /* Text Colors */
  --text-dark: #212529;
  --text-color: #2d3748;
  --text-light: #718096;
  --text-on-dark: #adb5bd;
  --text-on-dark-light: #dee2e6;

  /* Background & Border Colors */
  --white-color: #fff;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;

  /* Status Colors */
  --success-color: #0d9c6d;
  --warning-color: #e53e3e;

  /* Misc */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);

  

  /* Font Families */
  --font-primary: 'Inter', system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-secondary: 'Volkhov', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px; /* Base font size for rem units */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--white-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
}

/* ==========================================================================
   2. REUSABLE COMPONENTS (Buttons, Cards, Forms)
   ========================================================================== */

.btn-primary-custom {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white-color) !important;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary-custom:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  /* Fluid typography for smooth scaling */
  font-size: clamp(2rem, 5vw, 2.5rem);
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
}

.logo-just {
  color: #006400; /* Keeping specific brand color */
}

.logo-dial {
  color: var(--primary-dark);
}

.nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: var(--jd-green) !important;
}

.nav-link i {
  margin-right: 6px;
}

.btn-login {
  background-color: var(--jd-green) !important;
  border-color: var(--jd-green) !important;
  color: var(--white-color) !important;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.btn-login:hover {
  background-color: var(--primary-dark) !important;
}

/* Off-canvas Mobile Menu */
.offcanvas-custom-width {
  width: 75% !important;
  max-width: 300px;
}

.offcanvas-header {
  border-bottom: 1px solid var(--border-color);
}

.offcanvas-body .nav-link,
.offcanvas-body .btn {
  font-size: 1.1rem;
  padding: 0.8rem 1rem;
  text-align: left;
  width: 100%;
  margin-bottom: 0.5rem;
  justify-content: flex-start;
}


/* ==========================================================================
   4. HERO SECTION (from successstories.html)
   ========================================================================== */

.hero-section {
  padding: 4rem 0;
  overflow: hidden;
}

.left-column h1 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  font-size: clamp(2.5rem, 6vw, 3rem); /* Fluid sizing */
}

.left-column .sub-heading {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-top: 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.form-section .form-label {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.input-group.hero-input {
  max-width: 480px;
  height: 55px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--white-color);
  box-shadow: var(--shadow-sm);
}

.input-group.hero-input .form-control {
  border: none;
  box-shadow: none;
  height: 100%;
  font-size: 1rem;
  padding: 0.7rem 1rem;
}

.input-group.hero-input .btn-success {
  font-weight: 500;
  font-size: 1rem;
}

.benefits-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}

.benefits-list li {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.benefits-list .bi-check-circle-fill {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-right: 0.75rem;
}

.form-check-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.form-check-label a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.form-check-label a:hover {
  text-decoration: underline;
}

.right-column {
  position: relative;
  min-height: 450px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.celebrity-img {
  max-height: 500px;
  max-width: 100%;
  object-fit: contain;
  z-index: 1;
  opacity: 0;
  animation: slideInFromRight 0.8s ease-out forwards;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   5. STEPS SECTION
   ========================================================================== */
.steps-section {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.step-card {
  border: none;
  background-color: transparent;
  text-align: center;
}

.step-icon-box {
  height: 250px;
  width: 100%;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon-box img {
  max-height: 200px;
  width: auto;
}

.step-label {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 0.25rem;
}

.step-description {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
}

.step-arrow {
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0.4;
}

/* ==========================================================================
   6. PRICING TABLE SECTION (from plan.html)
   ========================================================================== */

.pricing-container {
  padding: 4rem 0;
}

.pricing-table-wrapper.d-none.d-lg-block {
    /* This wrapper is hidden on mobile, shown on desktop */
}

.pricing-table {
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.pricing-header,
.feature-cell {
  padding: 1.25rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.feature-name-col .feature-cell {
  text-align: left;
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--light-bg);
  font-size: 0.9rem;
}

.plan-col, .feature-name-col {
  padding: 0; /* Override Bootstrap padding */
}

.plan-col:last-child .pricing-header,
.plan-col:last-child .feature-cell {
  border-right: none;
}

.feature-row:last-child .feature-cell {
  border-bottom: none;
}

.plan-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.plan-price .currency {
  font-size: 1.25rem;
  vertical-align: super;
  margin-right: 2px;
}

.plan-price .period {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
}

.fa-check-circle {
  color: var(--success-color);
  font-size: 1.25rem;
}

.fa-times-circle {
  color: var(--warning-color);
  font-size: 1.25rem;
}

.recommended-plan {
  position: relative;
  transform: scale(1.03);
  z-index: 10;
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(166, 124, 82, 0.2);
}

.recommended-plan .pricing-header {
  background: linear-gradient(135deg, var(--secondary-color), #c39d78);
  color: var(--white-color);
}

.recommended-plan .plan-title,
.recommended-plan .plan-price,
.recommended-plan .plan-price .period {
  color: var(--white-color);
}

.recommended-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 5px 16px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile Pricing Cards */
.mobile-plan-card {
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  background-color: var(--white-color);
}

.mobile-plan-header {
  padding: 1.5rem;
  text-align: center;
}

.mobile-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-plan-feature {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.mobile-plan-feature:last-child {
  border-bottom: none;
}

.mobile-recommended {
  border: 2px solid var(--secondary-color);
  box-shadow: 0 8px 25px rgba(166, 124, 82, 0.2);
  position: relative; /* For badge */
}

.mobile-recommended .mobile-plan-header {
  background: linear-gradient(135deg, var(--secondary-color), #c39d78);
  color: var(--white-color);
}

.mobile-recommended .plan-title,
.mobile-recommended .plan-price,
.mobile-recommended .plan-price .period {
  color: var(--white-color);
}


/* ==========================================================================
   7. FAQ SECTION
   ========================================================================== */
.faq-container {
    padding: 4rem 0;
}

.accordion-item {
  background-color: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease-in-out;
}

.accordion-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.accordion-button {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--white-color);
  border-radius: 12px !important;
  padding: 1.25rem 1.5rem;
  text-align: left;
  border: none;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.accordion-button::after {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: auto;
  content: "+";
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  line-height: 1.5rem;
  background-image: none;
  transition: transform 0.3s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
  content: "−";
  transform: rotate(45deg);
}

.accordion-body {
  padding: 0.5rem 1.5rem 1.5rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ==========================================================================
   8. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
  padding: 4rem 0;
}

.profile-card {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: left;
  display: flex;
  flex-direction: column;
  background-color: var(--white-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.profile-card .card-img-top {
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.card-header-section {
  position: relative;
}

.play-btn {
  position: absolute;
  bottom: -30px;
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--white-color);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.play-btn:hover {
  transform: scale(1.1);
}

.play-btn .bi-play-fill {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-left: 4px;
}

.profile-card .card-body {
  padding: 45px 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.profile-card .card-title {
  font-weight: 700;
}

.profile-card .card-text {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.profile-card .customer-since {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.profile-card .visit-business-link {
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: auto;
  align-self: flex-start;
  color: var(--primary-color);
}
.visit-business-link:hover {
    color: var(--primary-dark);
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.modal-content {
  border: none;
  border-radius: 10px;
}

/* ==========================================================================
   9. SIGN-UP BANNER
   ========================================================================== */
.signup-banner {
  background: linear-gradient(to right, #eef7ff, var(--white-color));
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.signup-banner .main-heading {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
}

.create-account-btn {
  background-color: var(--jd-orange-cta);
  border-color: var(--jd-orange-cta);
  color: #fff;
  font-weight: 600;
  padding: 0 25px;
  transition: background-color 0.3s;
  font-size: 1rem;
}

.create-account-btn:hover {
  background-color: #e66a1e;
  border-color: #e66a1e;
}

.terms-text {
  font-size: 0.8rem;
  color: var(--text-light);
}

.terms-text a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
}

.terms-text a:hover {
  text-decoration: underline;
}

.form-check-input:checked {
  background-color: var(--jd-orange-cta);
  border-color: var(--jd-orange-cta);
}

.contact-img-card {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==========================================================================
   10. CONTACT / ENQUIRY PAGE
   ========================================================================== */
.contact-section {
  padding: 4rem 0;
}

.contact-section .section-header h2 {
  font-family: var(--font-secondary);
  font-weight: 700;
}

.contact-card {
  border: none;
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  overflow: hidden;
}

.contact-info {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  position: relative;
  overflow: hidden;
  padding: 3rem;
  color: var(--white-color);
}

.contact-info h5 {
  font-family: var(--font-secondary);
  font-size: 2.25rem;
}

.contact-info .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info .info-item:hover {
  color: var(--white-color);
}

.contact-info .info-item i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  width: 30px;
}

.contact-info .info-item:hover i {
  transform: scale(1.1);
}

.decorative-circle {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.contact-form {
  padding: 3rem;
}

.contact-form .form-label {
  font-weight: 500;
  color: var(--text-light);
}

.contact-form .form-control {
  border: none;
  border-bottom: 2px solid var(--border-color);
  border-radius: 0;
  padding-left: 0;
  box-shadow: none !important;
  transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
}

.btn-custom {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(3, 157, 85, 0.3);
}

.btn-custom:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(3, 157, 85, 0.4);
}


/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer-section {
  background-color: var(--text-dark);
  color: var(--text-on-dark);
  padding: 10px;
}

.footer-section h5 {
  color: var(--white-color);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section p,
.footer-section .footer-links a,
.footer-section .list-unstyled span {
  font-size: 0.9rem;
}

.footer-section .footer-links a {
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-section .footer-links a:hover {
  color: var(--white-color);
}

.footer-social a {
  color: var(--text-on-dark);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #495057;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.footer-social a:hover {
  background-color: var(--jd-red-tag);
  border-color: var(--jd-red-tag);
  color: var(--white-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #495057;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   12. RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
  }
  .left-column .sub-heading,
  .input-group.hero-input,
  .benefits-list {
    margin-left: auto;
    margin-right: auto;
  }
  .benefits-list {
    display: inline-block;
    text-align: left;
  }
  .right-column {
    min-height: auto;
    margin-top: 3rem;
  }
  .celebrity-img {
    height: 350px;
    animation: none;
    opacity: 1;
  }
  .recommended-plan {
    transform: scale(1); /* Reset transform on mobile */
  }
  .contact-info, .contact-form {
    padding: 2rem;
  }
  .footer-section .text-center {
      margin-bottom: 2rem;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .step-arrow-col {
    display: none;
  }
  .step-card {
    margin-bottom: 2rem;
  }
  .signup-banner {
      text-align: center;
  }
  .signup-banner .text-lg-end {
      text-align: center !important;
      margin-top: 2rem;
  }
  .contact-img-card {
      display: none; /* Hide image on smaller screens for cleaner banner */
  }
  .footer-section {
      text-align: center;
  }
  .footer-section .footer-links, .footer-social {
      justify-content: center;
  }
  .footer-bottom {
      flex-direction: column;
  }
  .footer-bottom .text-end {
      text-align: center !important;
      margin-top: 0.5rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  body {
    line-height: 1.5;
  }
  .hero-section, .steps-section, .pricing-container, .testimonials-section, .faq-container, .contact-section {
    padding: 3rem 0;
  }
  .left-column .sub-heading {
      font-size: 1rem;
  }
  .input-group.hero-input {
      flex-direction: column;
      height: auto;
      border: none;
      box-shadow: none;
      background: none;
  }
  .input-group.hero-input .form-control {
      border: 1px solid var(--border-color);
      border-radius: 8px !important;
      margin-bottom: 1rem;
      height: 50px;
  }
  .input-group.hero-input .btn {
      width: 100%;
      height: 50px;
  }

  .create-account-btn {
  background-color:var(--jd-orange-cta);
  border-color: var(--jd-orange-cta);
  color: #fff;
  font-weight: 600;
  padding: 5px 25px;
  transition: background-color 0.3s;
  font-size: 1rem;
  width: 100%;
}
}