/* Reset and base styles */
.prema-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.prema-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header styles */
.prema-header {
  text-align: left;
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.title-logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.prema-header h1 {
  color: #c01e66;
  font-size: 5rem;
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  flex-shrink: 1;
  max-width: 70%;
}

.header-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.prema-header p {
  color: #333;
  font-size: 1.125rem;
  font-weight: 400;
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
}

/* Language selector styles */
.language-selector {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid #c01e66;
  background: white;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #c01e66;
}

.lang-dropdown-btn:hover {
  background: #c01e66;
  color: white;
}

.globe-icon {
  font-size: 1.2em;
}

.dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.language-selector.active .dropdown-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  z-index: 1000;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.language-selector.active .lang-dropdown-content {
  display: block;
}

.lang-dropdown-content a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lang-dropdown-content a:hover {
  background: #f8f9fa;
}

.lang-dropdown-content a.active {
  background: #c01e66;
  color: white;
}

/* Content layout */
.prema-content {
  position: relative;
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding-bottom: 4rem;
}

.prema-questions {
  flex: 1;
}

/* Questions section */
.prema-questions h2 {
  color: #c01e66;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.question-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.question-item p {
  margin-bottom: 0.875rem;
  font-size: 1.0625rem;
  font-weight: 400;
  color: #2d3748;
  line-height: 1.5;
}

.question-options {
  display: flex;
  gap: 1.5rem;
}

.question-options label {
  display: inline-flex;
  align-items: center;
  margin-right: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.8rem;
  border-radius: 16px;
  transition: all 0.2s ease;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.question-options label:hover {
  background: #f0f0f0;
}

.question-options input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #757575;
  border-radius: 50%;
  margin-right: 6px;
  position: relative;
  transition: all 0.2s ease;
}

.question-options input[type="radio"]:checked {
  border-color: #4a5568;
  background: #4a5568;
}

.question-options input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Active state for labels */
.question-options input[type="radio"]:checked + span {
  color: #4a5568;
  font-weight: 500;
}

/* Hover effects */
.question-options label:hover input[type="radio"] {
  border-color: #4a5568;
}

/* Focus state for accessibility */
.question-options input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 85, 104, 0.2);
}

/* Submit button */
.submit-button {
  background-color: #e0e0e0;
  color: #9e9e9e;
  border: none;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: not-allowed;
  margin-top: 2rem;
  width: 100%;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submit-button-active {
  background-color: #c01e66;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(233, 30, 99, 0.2);
}

.submit-button-active:hover {
  background-color: #d81b60;
  transform: translateY(-1px);
  box-shadow: 0 6px 8px rgba(233, 30, 99, 0.25);
}

.submit-button:disabled {
  transform: none;
  box-shadow: none;
}

/* Tips section */
.prema-tips {
  width: 350px;
  background: #c01e66;
  color: white;
  padding: 1.5rem;
  border-radius: 6px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.prema-tips h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tips-icon {
  font-size: 1.25rem;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Add bullets to all items except the last one */
.tips-list li:not(:last-child)::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  top: 0;
}

/* Remove padding and make bold for last item */
.tips-list li:last-child {
  padding-left: 0;
  font-weight: 600;
}

/* Progress Tracker Styles */
.question-progress {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.question-progress h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.progress-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.progress-indicator {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.progress-indicator:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.progress-indicator.answered {
  background-color: #4caf50;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-indicator.answered:hover {
  background-color: #43a047;
  transform: scale(1.15);
}

/* Add highlight effect for questions */
@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(233, 30, 99, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
  }
}

.highlight-question {
  animation: highlight-pulse 1.5s ease-out;
  background-color: #ffeaef;
}

/* Results section */
.result-section {
  width: 100%;
  margin-top: 2rem;
}

.result-section h2 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.result-box {
  width: 100%;
  padding: 1.5rem;
  border-radius: 4px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.result-count {
  font-size: 1.25rem;
  font-weight: 600;
}

.result-icon {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.low-risk .result-icon {
  color: #4caf50; /* Green */
}

.medium-risk .result-icon {
  color: #ff9800; /* Orange */
}

.high-risk .result-icon {
  color: #f44336; /* Red */
}

.result-message {
  width: 100%;
}

/* Result box variations */
.low-risk {
  background-color: #c8e6c9;
  border-left: 4px solid #2e7d32;
}

.medium-risk {
  background-color: #ffe0b2;
  border-left: 4px solid #f57c00;
}

.high-risk {
  background-color: #ffcdd2;
  border-left: 4px solid #c62828;
}

/* Remove any max-width constraints */
.result-content {
  width: 100%;
}

.result-box p {
  width: 100%;
  margin: 0;
}

.logo-img {
  width: 1.2em;
  height: 1.2em;
  vertical-align: text-top;
  margin-left: 0.125em;
}

/* Responsive adjustments */
@media (max-width: 925px) {
    .prema-header h1 {
        font-size: 3rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .title-logo-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .prema-header h1 {
    font-size: 2.5rem;
    text-align: center;
  }

  .header-logo {
    width: 60px;
    height: 60px;
    align-self: center;
  }

  .language-selector {
    align-self: center;
  }

  .prema-content {
    flex-direction: column;
  }

  .prema-tips {
    width: 100%;
    position: static;
  }
}

@media (max-width: 480px) {
  .prema-header h1 {
    font-size: 2rem;
  }

  .header-logo {
    width: 50px;
    height: 50px;
  }

  .title-logo-container {
    gap: 0.75rem;
  }

  .prema-header p {
    font-size: 1rem;
  }

  .question-item p {
    font-size: 1rem;
  }
}
