:root {
  --brand: #027f0f;
  --brand-soft: rgba(0, 107, 11, 0.07);
  --text: #1f2933;
  --muted: #414040;
  --surface: #ffffff;
  --bg: #f4f6f8;
  --radius-lg: 1.2rem;
  --shadow-sm: 0 8px 30px rgba(15, 118, 110, 0.08);
  --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.05);
}
/*global font color--muted: #6b7280;*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; /* Default font size for desktop */
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
    max-width: auto;
    max-height: 300px;
}

/* Header */
.app-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  height: 70px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 99;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none; /* Remove underline on hover */
}

.brand-logo {
  height: 85px;
  width: auto;
  margin-right: 50px;
}

.second-logo {
  height: 70px; /* Adjust based on your logo size */
  width: auto;
}
/* 
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.brand-name-square {
  color: red; 
}

.brand-name-pharma {
  color: green;
}

.brand-sub {
  font-size: 0.7rem;
  color: #6b7280;
} 
 */


/* Page wrapper */
.page-wrapper {
  padding: 3.5rem 0 3rem;
}

.hero-copy {
  margin-bottom: 2rem;
}

.small-badge {
  display: inline-block;
  background: rgba(0, 107, 11, 0.12);
  color: #064e09;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-title {
  font-size: 2.15rem;
  font-weight: 700;
  margin-top: 1.1rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 0.98rem;
  max-width: 520px;
  color: var(--muted);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #374151;
}

.hero-points i {
  color: var(--brand);
  background: rgba(0, 107, 11, 0.12);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Verify card */
.verify-card {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.85rem 1.85rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.verify-card .card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.verify-card .card-hint {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.verify-form .form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.verify-form .form-control {
  height: 52px;
  border-radius: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 1rem;
}

.verify-form .form-control:focus {
  outline: none;
  border-color: rgba(0, 107, 11, .4);
  box-shadow: 0 0 0 3px rgba(0,107,11,0.08);
}

.verify-btn {
  height: 50px;
  border-radius: 0.7rem;
  font-weight: 600;
  margin-top: 0.8rem;
  background: var(--brand);
  border: 1px solid var(--brand);
}

.verify-btn:hover {
  background: #05901a;
  border-color: #05901a;
}

.form-footnote {
  font-size: 0.88rem;
  margin-top: 1rem;
  color: var(--muted);
}

.form-footnote a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.support-box {
  background: rgba(0, 107, 11, 0.07);
  border: 1px solid rgba(0, 107, 11, 0.06);
  border-radius: 1rem;
  padding: 0.8rem 1rem;
  font-size: 0.80rem;
  margin-top: 0.8rem;
  color: #064e09;
}

/* Sections */
.section-block {
  margin-top: 1.75rem;
}

.section-title {
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 1.35rem;
}

.step-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.4rem 1.35rem 1.4rem 1.35rem;
  box-shadow: var(--shadow-card);
  position: relative;
  min-height: 190px;
}

.step-card .step-count {
  position: absolute;
  top: -18px;
  right: 16px;
  background: rgba(0, 107, 11, 0.08);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-card h3 {
  font-size: 1.03rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.93rem;
  color: var(--muted);
}

/* Lang cards */
.lang-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.3rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.02);
  height: 100%;
}

.lang-card h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .5rem;
}

.lang-card p {
  font-size: 0.82rem;
  color: #4b5563;
}

/* Warning */
.section-warning .warning-box {
  background: #fff0e5;
  border: 1px solid rgba(191, 73, 13, 0.25);
  border-radius: 1rem;
  padding: 1.3rem 1.3rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 10px 20px rgba(196, 65, 8, 0.05);
}

.warning-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #ffb89a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f2401;
  font-size: 1.25rem;
}

.warning-text h3 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.warning-text p {
  font-size: 0.79rem;
  line-height: 1.45;
  color: #713b12;
}

/* Footer */
.app-footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.03);
  padding: 1.4rem 0 1.4rem;
  margin-top: 0rem;
}

.footer-links a {
  margin-left: 1rem;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.82rem;
}

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

.footer-links i {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 991px) {
  .page-title {
    font-size: 1.7rem;
  }
  .verify-card {
    margin-top: 2rem;
  }
  .hero-points {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .app-header {
    height: auto;
    padding: 0.75rem 0;
  }
  .page-wrapper {
    padding-top: 1.5rem;
  }

  .section-warning .warning-box {
    flex-direction: column;
  }
  .footer-links {
    width: 100%;
    margin-top: .5rem;
  }
}

@media (max-width: 480px) {
  .hero-copy{
    margin-bottom: -2rem;
  }
  .page-title {
    margin-top: 0.1rem;
    margin-bottom: 0.5rem;
  }
  .hero-points {
      margin-top: 0;
  }
}

/* Scratch Example Section */
.scratch-example .section-title {
  margin-bottom: 2rem;
}

.scratch-img.single {
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  max-width: 600px;
  text-align: center;
}

.scratch-img.single:hover {
  transform: scale(1.02);
}

.scratch-img.single p.section-lead {
  color: var(--muted);
  font-size: clamp(0.9rem, 1vw + 0.4rem, 1rem);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.scratch-img.single img {
  width: 100%;
  height: auto;
  border-radius: 0.8rem;
  display: block;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .scratch-img.single {
    padding: 1rem;
  }
  .scratch-img.single img {
    max-height: 300px
  }
}


/* Hover effect for step cards and language cards */
.step-card,
.lang-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover,
.lang-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

.step-card:hover,
.lang-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 107, 11, 0.15);
  border-color: rgba(0, 107, 11, 0.15);
}



/* Loader Style */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--brand);
  font-size: 0.95rem;
}

/*spinner style */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-top-color: var(--brand);
  border-radius: 50%;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
}

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


/*  Result Style */
#resultSection .scratch-img {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

#resultSection table {
  border-radius: 10px;
  overflow: hidden;
}

#resultSection th {
  background: #f8f9fa;
  font-weight: 600;
}


.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-sm-6 {
    flex: 0 0 50%; /* Adjust columns to be 50% on medium screens */
    max-width: 50%;
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column; /* Stack header items */
    }
    .brand-logo {
        height: 65px; /* Smaller logo */
    }
    .second-logo {
        height: 65px; 
    }
    body {
        font-size: 14px; /* Adjust for tablets */
    }
}

@media (max-width: 480px) {
  .brand-logo {
        height: 55px; /* Smaller logo */
    }
    .second-logo {
        height: 55px; 
    }  
  body {
        font-size: 13px; /* Smaller font size for mobile */
    }
    .col {
        flex: 0 0 100%; /* Columns take full width on small screens */
        max-width: 100%;
    }
}

/* Back to Top Button Style */
.back-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--brand); /* Green background */
  color: white;
  border: none;
  border-radius: 50%; /* Make the button rounded */
  padding: 0px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: none; /* Hide button by default */
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s, background-color 0.3s; /* Transition for opacity and background-color */
  width: 60px; /* Set fixed width */
  height: 60px; /* Set fixed height to make it circular */
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top-btn:hover {
  background-color: #05901a; /* Darker green on hover */
  transition-delay: 0.1s; /* Delay the hover effect by 0.1 seconds */
}

@media (max-width: 768px) {
.back-to-top-btn {
    bottom: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
  }
.step-card-link{
  margin-top : 1.5rem;
}  

}
@media (max-width: 480px) {
.back-to-top-btn {
    bottom: 5px;
    right: 5px;
    width: 50px;
    height: 50px;
  }
}

/*end of Back-To-Top button Style*/

.enter-code-btn {
  height: 35px;
  border-radius: 0.7rem;
  font-weight: 500;
  color : white;
  margin-top: 0.8rem;
  background: var(--brand);
  border: 1px solid var(--brand);
}

.enter-code-btn:hover {
  background: #05901a;
  border-color: #05901a;
}

.step-card-link{
  color: green; 
  text-decoration: none; 
  font-size: 13px; 
  margin-top: 0.1rem; 
  display: inline-block;

}


/*White Space Responsive Adjustments for mobile and tablets */
@media (max-width: 768px) {
  .page-wrapper {
      padding: 1.5rem 1.5rem;
  }

  .scratch-example .section-title {
      margin-bottom: 1rem;
  }
  .section-title {
      margin-bottom: 1rem;
}
}

@media (max-width: 480px) {
  .page-wrapper {
      padding: 1.5rem 1rem;
  }

  .scratch-example .section-title {
      margin-bottom: 1rem;
  }
  .section-title {
      margin-bottom: 1rem;
  }
}

/* Form input text weight*/
#scratch_code {
  font-weight: 500;
  
}
#scratch_code::placeholder {
  color: #d1caca;
}

