html {
  scroll-behavior: smooth;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.px-4 {
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}

@media (min-width: 992px) {
  .px-lg-5 {
    padding-right: 3rem !important;
    padding-left: 3rem !important;
  }
}

/* Sections */
section {
  width: 100%;
}

.faq {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.py-5 {
  padding: 3rem 0 !important;
}

.py-4 {
  padding: 2.5rem 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.py-2 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

@media (min-width: 992px) {
  .p-lg-4 {
    padding: 1.5rem !important;
  }

  .mb-lg-3 {
    margin-bottom: 1rem !important;
  }

  .mb-lg-5 {
    margin-bottom: 3rem !important;
  }
}

.text-center {
  text-align: center;
}

/* FAQ Section */
.faq-heading {
  font-weight: 700;
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 40px;
  color: #161618;
}

/* Background colors */
.bg-dark {
  background-color: #212529 !important;
  color: #ffffff;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.bg-primary {
  background-color: linear-gradient(135deg, #0077b6, #00b4d8) !important;
}


/* TASK 2: ACCORDION STYLES */
.task-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
}

.task-section:last-child {
    border-bottom: none;
}

.task-title {
    font-size: 1.8rem;
    color: linear-gradient(135deg, #0077b6, #00b4d8);
    margin-bottom: 30px;
    font-weight: 700;
}

.accordion {
    width: 100%;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    background-color: #f9f9f9;
    padding: 0;
    border-bottom: none;
}

.accordion-button {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: linear-gradient(135deg, #0077b6, #00b4d8);
    background-color: #f9f9f9;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.accordion-button:hover {
    background-color: #f0f0f0;
    color:linear-gradient(135deg, #0077b6, #00b4d8);
}

.accordion-button::after {
    content: '▼';
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: linear-gradient(135deg, #0077b6, #00b4d8);
}

.accordion-button.collapsed::after {
    transform: rotate(-90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: #ffffff;
}

.accordion-content.show {
    max-height: 500px;
    padding: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.accordion-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #46464A;
}

/* TASK 3: POPUP FORM STYLES */
.buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-popup {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe {
    background-color: #fff;
    color:#161618;
    border: 2px solid linear-gradient(135deg, #0077b6, #00b4d8);
}

.btn-subscribe:hover {
    background-color: #00b4d8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #0077b6;
}

.btn-contact {
    background-color: #fff;
    color:#161618;
    border: 2px solid linear-gradient(135deg, #0077b6, #00b4d8);
}

.btn-contact:hover {
    background-color: #00b4d8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px #0077b6;
}

/* Modal/Popup Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.modal-content {
    background-color: #ffffff;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 10px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #161618;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color:linear-gradient(135deg, #0077b6, #00b4d8)
;
    box-shadow: 0 0 0 3px rgba(52, 71, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    padding: 0 30px 30px 30px;
    display: flex;
    gap: 10px;
}

.btn-modal {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    background-color: #00b4d8;
    color: white;
}

.btn-submit:hover {
    background-color: linear-gradient(135deg, #0077b6, #00b4d8)
;
    transform: translateY(-2px);
}

.btn-cancel {
    background-color: #f0f0f0;
    color: #161618;
    border: 1px solid #e0e0e0;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

/* Success message */
.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.success-message.show {
    display: block;
    animation: slideUp 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .task-title {
        font-size: 1.4rem;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .modal-content {
        width: 95%;
    }

    .modal-body {
        padding: 20px;
    }
}

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-12,
.col-sm-6,
.col-md-4,
.col-md-6,
.col-lg-4,
.col-lg-6 {
  flex: 0 0 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 1rem;
}

@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 50%;
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
  }

  .col-md-6 {
    flex: 0 0 50%;
  }

  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 992px) {
  .col-lg-4 {
    flex: 0 0 33.333333%;
  }

  .col-lg-6 {
    flex: 0 0 50%;
  }

  .mb-lg-5 {
    margin-bottom: 3rem !important;
  }
}

/* Card styling */
.border {
  border: 1px solid #e0e0e0 !important;
}

.rounded {
  border-radius: 0.25rem;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.h-100 {
  height: 100%;
}

/* Typography */
.h4,
.h5,
.h6 {
  font-weight: 600;
}

.h4 {
  font-size: 1.5rem;
}

.h5 {
  font-size: 1.25rem;
}

.h6 {
  font-size: 1rem;
}

.small {
  font-size: 0.875rem;
}

/* Color system */
.text-primary {
  color: #3447F6 !important;
}

.bg-primary {
  background-color: #3447F6 !important;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
  cursor: pointer;
}

.btn-outline-primary {
  color:linear-gradient(135deg, #0077b6, #00b4d8)
 !important;
  border: 1px solid linear-gradient(135deg, #0077b6, #00b4d8)
 !important;
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color:linear-gradient(135deg, #0077b6, #00b4d8)
 !important;
  border-color:linear-gradient(135deg, #0077b6, #00b4d8)
 !important;
  color: #ffffff !important;
}

/* Footer */
footer {
  flex-shrink: 0;
  background-color: linear-gradient(135deg, #0077b6, #00b4d8);
  margin-top: 3rem;
}

main {
  flex: 1;
}

/* Display helpers */
.d-inline-block {
  display: inline-block;
}

.d-block {
  display: block;
}

.d-none {
  display: none !important;
}

.d-md-block {
  display: none !important;
}

@media (min-width: 769px) {
  .d-none.d-md-block {
    display: block !important;
  }

  .d-md-block {
    display: block !important;
  }
}

/* Multi-Step Form Wrapper */
.form-wrapper {
  max-width: 650px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.4s ease;
  border: 3px solid #e9ecef;
}

.progress-step.active .step-circle {
  background: #00b4d8;
  color: white;
  border-color: #00b4d8;
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.step-label {
  margin-top: 8px;
  font-size: 13px;
  color: #6c757d;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.progress-step.active .step-label {
  color: #00b4d8;
  font-weight: 600;
}

.progress-line {
  flex: 1;
  height: 3px;
  background: #e9ecef;
  margin: 0 10px;
  position: relative;
  top: -15px;
  transition: all 0.4s ease;
}

.progress-line.active {
  background: #00b4d8;
}

/* Form Steps */
.multi-step-form-content {
  margin-top: 30px;
}

#form-steps-container {
  min-height: 300px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Navigation */
.form-navigation {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e9ecef;
}

/* Responsive for Multi-Step Form */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 20px;
    margin: 20px;
  }
  
  .progress-bar {
    margin-bottom: 25px;
  }
  
  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .step-label {
    font-size: 11px;
  }
  
  .progress-line {
    margin: 0 5px;
  }
  
  .form-navigation {
    flex-direction: column;
  }
  
  .btn-modal {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .step-label {
    display: none;
  }
  
  .progress-line {
    top: 0;
  }
}


/* _________________________________ */
/* ==================== DARK MODE ==================== */
/* Global containers */
.dark-theme body,
.dark-theme section,
.dark-theme .container,
.dark-theme .faq {
  background-color: #121212;
  color: #eaeaea;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Headings */
.dark-theme .faq-heading,
.dark-theme .task-title,
.dark-theme .modal-title {
  color: #ffffff;
}

/* Accordion styles */
.dark-theme .accordion-item {
  background-color: #1e1e1e;
  border: 1px solid #333;
}

.dark-theme .accordion-header {
  background-color: #1b1b1b;
}

.dark-theme .accordion-button {
  background-color: #1b1b1b;
  color: #00b4d8;
}

.dark-theme .accordion-button:hover {
  background-color: #222;
  color: #90e0ef;
}

.dark-theme .accordion-content {
  background-color: #1e1e1e;
  color: #cccccc;
  border-top: 1px solid #333;
}

.dark-theme .accordion-body {
  color: #d1d1d1;
}

/* Popup buttons */
.dark-theme .btn-popup {
  background-color: #1e1e1e;
  color: #f1f1f1;
  border: 2px solid #00b4d8;
}

.dark-theme .btn-popup:hover {
  background-color: #00b4d8;
  color: #ffffff;
}

/* Modal */
.dark-theme .modal-content {
  background-color: #1a1a1a;
  color: #f1f1f1;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.05);
}

.dark-theme .modal-header {
  background: linear-gradient(135deg, #00324e, #005f73);
}

.dark-theme .modal-close {
  color: #caf0f8;
}

.dark-theme .modal-body label {
  color: #e0e0e0;
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
  background-color: #262626;
  border: 1px solid #333;
  color: #f1f1f1;
}

.dark-theme .form-group input:focus,
.dark-theme .form-group textarea:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

/* Modal buttons */
.dark-theme .btn-submit {
  background-color: #00b4d8;
  color: #fff;
}

.dark-theme .btn-submit:hover {
  background-color: #0077b6;
}

.dark-theme .btn-cancel {
  background-color: #262626;
  color: #f1f1f1;
  border: 1px solid #444;
}

.dark-theme .btn-cancel:hover {
  background-color: #333;
}

/* Success message */
.dark-theme .success-message {
  background-color: #1b4332;
  color: #b7e4c7;
  border: 1px solid #2d6a4f;
}

/* Multi-step form */
.dark-theme .form-wrapper {
  background-color: #1e1e1e;
  color: #eaeaea;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.dark-theme .step-circle {
  background-color: #2b2b2b;
  color: #999;
  border: 3px solid #2b2b2b;
}

.dark-theme .progress-step.active .step-circle {
  background-color: #00b4d8;
  color: white;
  border-color: #00b4d8;
}

.dark-theme .step-label {
  color: #aaaaaa;
}

.dark-theme .progress-line {
  background: #2b2b2b;
}

.dark-theme .progress-line.active {
  background: #00b4d8;
}
/* ============================================
   TASK 6: LOADING SPINNER ON SUBMIT BUTTON
   ============================================ */

/* Submit button loading state */
.btn-submit {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  min-width: 140px;
}

.btn-submit.loading {
  background-color: #6c757d !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.8;
}

.btn-submit.loading .btn-text {
  opacity: 0;
  transform: translateY(-20px);
}

.btn-submit.loading .spinner-container {
  opacity: 1;
  transform: translateY(0);
}

/* Spinner container */
.spinner-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Spinner animation */
.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Loading text */
.loading-text {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Button text transition */
.btn-text {
  display: inline-block;
  transition: all 0.3s ease;
}

/* Success state animation */
.btn-submit.success {
  background-color: #28a745 !important;
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Error state animation */
.btn-submit.error {
  background-color: #dc3545 !important;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* Ripple effect on click */
.btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-submit:active::before {
  width: 300px;
  height: 300px;
}

/* Disabled button styling */
.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Progress dots animation (alternative loading indicator) */
.loading-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 5px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: loadingDots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loadingDots {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Form message enhancements */
.success-message {
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  animation: slideDown 0.4s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .btn-submit {
    min-width: 120px;
    padding: 10px 20px;
  }
  
  .spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }
  
  .loading-text {
    font-size: 0.85rem;
  }
}
/* === Scroll Progress Bar (under header) === */
#scrollProgress {
  position: fixed;
  top: 73px;
  left: 0;
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, #003366, #004c99, #0066cc);
  box-shadow: 0 0 12px rgba(0, 51, 102, 0.6);
  transition: width 0.25s ease-out;
  z-index: 9999;
}


.dark-theme #scrollProgress {
  background: linear-gradient(90deg, #66a6ff, #007cf0, #00dfd8);
  box-shadow: 0 0 10px rgba(0, 124, 240, 0.6);
}