/* Reset and base styles */
:root {
    --primary-color: #696969;
    --secondary-color: #A9A9A9;
    --background-color: #f0f0f0;
    --text-color: #333333;
    --link-color: #0056b3;
    --link-hover-color: #004080;
    --white: #FFFFFF;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: var(--font-family);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Typography */
  h1, h2, h3 {
    margin-bottom: 20px;
  }
  
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
  
  p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
  }
  
  /* Updated Header styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(105, 105, 105, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

header .container {
  display: flex;
  color: var(--white);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 60px;
  width: auto;
}

.site-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 10px;
  white-space: nowrap;
}

.countdown-container {
  display: flex;
  align-items: center;
  background-color: #007BFF;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 60px;
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--white);
  margin-right: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.countdown {
  font-size: 1rem;
  font-weight: 700;
  color: #FFD700;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  header {
    height: auto;
    padding: 10px 0;
    flex-direction: column;
  }

  header .container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 15px;
  }

  .logo img {
    height: 40px;
  }

  .site-name {
    font-size: 1rem;
  }

  .countdown-container {
    width: 100%;
    justify-content: center;
    height: 40px;
    padding: 5px 15px;
    margin-top: 10px;
  }

  .countdown-label, .countdown {
    font-size: 0.8rem;
  }
}

/* Small mobile devices */
@media screen and (max-width: 375px) {
  .site-name {
    font-size: 0.9rem;
  }

  .countdown-container {
    flex-direction: column;
    height: auto;
    padding: 5px 10px;
  }

  .countdown-label, .countdown {
    font-size: 0.7rem;
  }
}
  
  /* Button styles */
  .btn {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
  }
  
  .btn-primary {
    color: var(--white);
    background-color: var(--primary-color);
    border: none;
  }
  
  .btn-primary:hover {
    background-color: #505050;
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
      45deg,
      #FFFFFF 0%,
      #FFFFFF 20%,
      #0000FF 20%,
      #0000FF 40%,
      #800080 40%,
      #800080 60%,
      #8B4513 60%,
      #8B4513 80%,
      #000000 80%,
      #000000 100%
    );
    border-radius: 52px;
    z-index: -1;
    animation: rotateBeltColors 10s linear infinite;
  }
  
  .btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: var(--secondary-color);
    border-radius: 48px;
    z-index: -1;
  }
  
  @keyframes rotateBeltColors {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.5);
  }
  
  /* Hero section styles */
  .hero {
    background-image: url('/bjj/Images/Hero1.png');
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .hero h1, .hero h2, .hero p {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  }
  
  .hero .container {
    position: relative;
    z-index: 1;
  }
  
  /* Benefits Section Styles */
.benefits {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 36px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.benefit-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.benefit-item i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #007BFF;
}

.benefit-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.benefit-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

#final-submission-form input[type="text"],
#final-submission-form input[type="email"],
#final-submission-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: rgba(128, 128, 128, 0.1);
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
    border-radius: 5px;
    font-size: 16px;
}

#final-submission-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

#final-submission-form button[type="submit"] {
    margin-top: 20px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for icons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.benefit-item:hover i {
    animation: pulse 1s infinite;
}
  
  #cta-button {
    display: block;
    margin: 0 auto;
    font-size: 18px;
    padding: 15px 30px;
  }
  
/* Blog post styles */
.blog-post {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.blog-post h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.blog-post h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.blog-post h3 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.blog-post p {
  margin-bottom: 20px;
}

.blog-post .author-info {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.blog-post .author-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
}

.blog-post .cta-section {
  background-color: var(--background-color);
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
  text-align: center;
}

.blog-post .cta-section p {
  font-size: 20px;
  margin-bottom: 20px;
}

  /* About creator section styles */
  .about-creator {
    padding: 100px 0;
    background-color: #f9f9f9;
    text-align: center;
  }
  
  .creator-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 3px solid var(--secondary-color);
  }
  
  blockquote {
    font-style: italic;
    font-size: 20px;
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    background-color: var(--background-color);
  }
  
  /* Why choose section styles */
  .why-choose {
    background-color: #D3D3D3;
    padding: 100px 0;
  }
  
  .usp-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
  }
  
  .usp {
    flex-basis: calc(33.333% - 30px);
    background-color: rgba(128, 128, 128, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
  }
  
  .usp:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  /* CTA section styles */
  .cta-section {
    padding: 100px 0;
    text-align: center;
  }
  
  .creator-profile {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
  }
  
  /* Footer styles */
  footer {
    background-color: var(--secondary-color);
    padding: 30px 0;
    text-align: center;
  }
  
  footer nav {
    margin-top: 20px;
  }
  
  footer a {
    color: var(--link-color);
    text-decoration: underline;
    margin: 0 15px;
    transition: color 0.3s ease;
  }
  
  footer a:hover {
    color: var(--link-hover-color);
    text-decoration: none;
  }
  
  /* Modal styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .modal-content {
    background-color: #D3D3D3;
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
  }
  
  .close {
    color: var(--primary-color);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close:hover {
    color: var(--text-color);
  }
  
  /* Quiz styles */
  .progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    border-radius: 3px;
    overflow: hidden;
  }
  
  .progress {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    animation: progressPulse 2s infinite;
  }
  
  @keyframes progressPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
  }
  
  #quiz-container h3 {
    margin-bottom: 20px;
  }
  
  #quiz-container .radio-option {
    margin-bottom: 15px;
  }
  
  #quiz-container .radio-option label {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background-color: rgba(128, 128, 128, 0.1);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  #quiz-container .radio-option label:hover {
    background-color: rgba(128, 128, 128, 0.3);
    transform: translateY(-2px);
  }
  
  #quiz-container .radio-option input[type="radio"] {
    display: none;
  }
  
  #quiz-container .radio-option input[type="radio"]:checked + label {
    background-color: var(--secondary-color);
    color: var(--white);
  }
  
  #quiz-container select,
  #quiz-container input[type="number"],
  #quiz-container textarea,
  #quiz-container input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: rgba(128, 128, 128, 0.1);
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
    border-radius: 5px;
    font-size: 16px;
  }
  
  #quiz-container select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
  }
  
  #quiz-container select option {
    background-color: #D3D3D3;
    color: var(--text-color);
  }
  
  #quiz-container select:focus,
  #quiz-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  #quiz-container button[type="submit"] {
    margin-top: 20px;
  }
  
  .quiz-progress {
    font-size: 18px;
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
  }
  
  .char-count {
    font-size: 12px;
    color: #C0C0C0;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 15px;
  }
  
  #quiz-container textarea {
    resize: none;
    min-height: 100px;
  }
  
  #quiz-container textarea::placeholder {
    color: rgba(51, 51, 51, 0.5);
  }
  
/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* General adjustments */
    .container {
      padding: 0 15px;
    }
  
    /* Header adjustments */
    header {
      height: auto;
      padding: 10px 0;
      position: relative;
      background-color: rgba(105, 105, 105, 1);
    }
  
    header .container {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  
    .logo img {
      height: 40px;
    }
  
    .countdown-container {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      width: 100%;
      padding: 5px 15px;
      background-color: #007BFF;
      box-shadow: none;
      border-radius: 0;
    }
  
    .countdown-label, .countdown {
      font-size: 14px;
    }
  
    /* Hero section adjustments */
    .hero {
      padding: 80px 0 40px;
      margin-top: 30px; /* To account for the absolute positioned countdown */
    }
  
    .hero h1 {
      font-size: 28px;
      line-height: 1.2;
      margin-bottom: 15px;
    }
  
    .hero h2 {
      font-size: 20px;
      line-height: 1.3;
      margin-bottom: 20px;
    }
  
    .hero p {
      font-size: 16px;
      line-height: 1.4;
      margin-bottom: 25px;
    }
  
    .btn {
      padding: 12px 24px;
      font-size: 16px;
      width: auto;
      display: inline-block;
    }
  
    /* Benefits section adjustments */
    .benefits {
      padding: 40px 0;
    }
  
    .benefits h2 {
      font-size: 24px;
      margin-bottom: 30px;
    }
  
    .benefits-grid {
      gap: 20px;
    }
  
    .benefit-item {
      padding: 20px;
    }
  
    .benefit-item h3 {
      font-size: 20px;
    }
  
    /* Why choose section adjustments */
    .why-choose {
      padding: 40px 0;
    }
  
    .why-choose h2 {
      font-size: 24px;
      margin-bottom: 30px;
    }
  
    .usp-container {
      margin-top: 30px;
    }
  
    .usp {
      flex-basis: 100%;
      margin-bottom: 20px;
      padding: 20px;
    }
  
    .usp h3 {
      font-size: 20px;
      margin-bottom: 10px;
    }
  
    .usp p {
      font-size: 16px;
    }
  
    /* Other sections adjustments */
    .about-creator,
    .cta-section {
      padding: 40px 0;
    }
  
    .creator-photo,
    .creator-profile {
      width: 120px;
      height: 120px;
    }
  
    blockquote {
      font-size: 16px;
      padding: 15px;
      margin: 20px auto;
    }
  
      /* Quiz modal optimizations for mobile */
  .modal-content {
    width: 95%;
    padding: 15px;
    margin: 5% auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  #quiz-container h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  #quiz-container .radio-option label {
    padding: 12px 15px;
    font-size: 16px;
  }

  #quiz-container select,
  #quiz-container input[type="number"],
  #quiz-container textarea,
  #quiz-container input[type="email"] {
    font-size: 16px;
    padding: 12px;
    margin-bottom: 12px;
  }

  #quiz-container button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .quiz-progress {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .progress-bar {
    margin-bottom: 20px;
  }
}

/* iPhone SE, 6, 7, 8 */
@media screen and (max-width: 375px) {
  .modal-content {
    padding: 12px;
  }

  #quiz-container h3 {
    font-size: 16px;
  }

  #quiz-container .radio-option label {
    padding: 10px 12px;
    font-size: 14px;
  }

  #quiz-container select,
  #quiz-container input[type="number"],
  #quiz-container textarea,
  #quiz-container input[type="email"] {
    font-size: 14px;
    padding: 10px;
  }
}

/* iPhone X, XS, 11 Pro, 12 Mini */
@media screen and (max-width: 375px) and (min-height: 812px) {
  .modal-content {
    margin: 10% auto;
  }
}

/* iPhone 6+, 7+, 8+, XR, 11, 11 Pro Max */
@media screen and (min-width: 414px) and (max-width: 428px) {
  .modal-content {
    margin: 8% auto;
  }

  #quiz-container h3 {
    font-size: 20px;
  }

  #quiz-container .radio-option label {
    padding: 12px 15px;
    font-size: 16px;
  }
}

/* iPhone 12, 12 Pro, 13, 13 Pro, 14 */
@media screen and (min-width: 390px) and (max-width: 428px) and (min-height: 844px) {
  .modal-content {
    margin: 12% auto;
  }
}