/* Risk Assessment Page Styles */
.risk-banner {
  background: linear-gradient(135deg, #0a2463 0%, #3e92cc 100%);
  position: relative;
  overflow: hidden;
}

.risk-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../images/patterns/dots-pattern.svg");
  background-size: 200px;
  opacity: 0.1;
  z-index: 0;
}

/* Introduction Section */
.risk-intro-text p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.risk-intro-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.risk-intro-card {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 20px;
  max-width: 300px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.risk-intro-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.risk-intro-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.risk-intro-content p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Assessment Tool */
.assessment-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  overflow: hidden;
}

.assessment-progress .progress {
  height: 8px;
  border-radius: 4px;
  background-color: #f0f0f0;
}

.assessment-progress .progress-bar {
  background-color: var(--bs-primary);
  transition: width 0.3s ease;
}

.question-card {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.question-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.question-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.question-options {
  margin-bottom: 30px;
}

.question-option {
  margin-bottom: 15px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.3s;
}

.question-option:hover {
  background-color: #f8f9fa;
}

.question-option input:checked + label {
  font-weight: 600;
  color: var(--bs-primary);
}

.question-option:has(input:checked) {
  border-color: var(--bs-primary);
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.question-navigation {
  display: flex;
  justify-content: space-between;
}

.results-card {
  display: none;
}

.results-header {
  text-align: center;
  margin-bottom: 30px;
}

.results-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.profile-meter {
  margin-bottom: 30px;
}

.profile-meter-bar {
  height: 12px;
  background: linear-gradient(to right, #4caf50, #ffeb3b, #ff9800, #f44336, #9c27b0);
  border-radius: 6px;
  margin-bottom: 10px;
  position: relative;
}

.profile-meter-fill {
  position: absolute;
  top: -8px;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border: 3px solid var(--bs-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 1s ease;
}

.profile-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
}

.profile-result {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 12px;
  background-color: #f8f9fa;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.profile-description {
  color: #555;
  margin-bottom: 0;
}

.results-recommendations {
  margin-bottom: 30px;
}

.results-recommendations h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
  text-align: center;
}

.recommendation-content {
  padding: 20px;
  border-radius: 12px;
  background-color: rgba(var(--bs-primary-rgb), 0.05);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Risk Profiles */
.profile-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.profile-header {
  padding: 25px 20px;
  text-align: center;
  color: #fff;
}

.profile-header.conservative {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.profile-header.moderate {
  background: linear-gradient(135deg, #8bc34a, #558b2f);
}

.profile-header.balanced {
  background: linear-gradient(135deg, #ffeb3b, #fbc02d);
}

.profile-header.growth {
  background: linear-gradient(135deg, #ff9800, #e65100);
}

.profile-header.aggressive {
  background: linear-gradient(135deg, #f44336, #b71c1c);
}

.profile-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
}

.profile-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0;
}

.profile-body {
  padding: 25px 20px;
}

.profile-body p {
  color: #555;
  margin-bottom: 15px;
}

.profile-body ul {
  color: #555;
  padding-left: 20px;
  margin-bottom: 15px;
}

.profile-body ul li {
  margin-bottom: 8px;
}

.profile-note {
  background-color: #f8f9fa;
  text-align: center;
}

.profile-note-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
}

.profile-note h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.profile-note p,
.profile-note ul {
  color: #555;
}

/* Risk Factors */
.risk-factor-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.risk-factor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.risk-factor-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.risk-factor-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.risk-factor-content p {
  color: #555;
  margin-bottom: 10px;
  line-height: 1.6;
}

.risk-factor-content p:last-child {
  margin-bottom: 0;
}

/* Strategy Cards */
.strategy-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 25px;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.strategy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.strategy-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.strategy-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.strategy-card p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.strategy-tips h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.strategy-tips ul {
  color: #555;
  padding-left: 20px;
}

.strategy-tips ul li {
  margin-bottom: 8px;
}

/* Professional Management */
.professional-management-text p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.management-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.management-feature-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 15px;
}

.management-feature-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.management-feature-content p {
  color: #555;
  margin-bottom: 0;
  line-height: 1.6;
}

.professional-management-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.management-stats-card {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  width: 80%;
  backdrop-filter: blur(5px);
}

.management-stats-card .stats-item {
  text-align: center;
  padding: 0 15px;
  flex: 1;
}

.management-stats-card .stats-item h4 {
  font-size: 24px;
  font-weight: 800;
  color: var(--bs-primary);
  margin-bottom: 5px;
}

.management-stats-card .stats-item p {
  font-size: 14px;
  color: #555;
  margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .risk-intro-card {
    position: relative;
    bottom: auto;
    right: auto;
    max-width: 100%;
    margin-top: -50px;
    z-index: 1;
  }

  .management-stats-card {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-top: -50px;
    z-index: 1;
  }

  .question-navigation {
    flex-direction: column;
    gap: 10px;
  }

  .question-navigation button {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .assessment-container {
    padding: 20px;
  }

  .question-title {
    font-size: 18px;
  }

  .question-option {
    padding: 12px;
  }

  .risk-factor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .risk-factor-icon {
    margin-bottom: 15px;
  }

  .management-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .management-feature-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
}
