/* survey_style.css */

.survey-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #f8f0ee;
  border-radius: 10px;
  font-family: 'Arial', sans-serif;
  position: relative;
  overflow: hidden;
}

.survey-container::before,
.survey-container::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 150px;
  background-color: #f4b8a6;
  opacity: 0.5;
  z-index: 0;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.survey-container::before {
  top: -50px;
  left: -50px;
  transform: rotate(15deg);
}

.survey-container::after {
  bottom: -50px;
  right: -50px;
  transform: rotate(-15deg);
}

.survey-h2 {
  font-size: 2.5rem;
  color: #33348e;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.survey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.survey-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.survey-card:hover {
  transform: translateY(-5px);
}

.wide-card {
  grid-column: span 2;
}

.survey-card h3 {
  color: #33348e;
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #f4b8a6;
  padding-bottom: 8px;
}

.survey-card p {
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}

.icon-row {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-container img {
  width: 100%;
  height: auto;
}

/* Gauge Chart Styles */
.chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-chart {
  width: 150px;
  height: 75px;
  position: relative;
  margin: 0 auto 20px;
  background: linear-gradient(to right, #33348e 0%, #33348e 56%, #ddd 56%, #ddd 100%);
  border-radius: 75px 75px 0 0;
}

.gauge-chart::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 60px;
  background-color: white;
  top: 15px;
  left: 15px;
  border-radius: 60px 60px 0 0;
}

.gauge-value {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 80px;
  font-size: 24px;
  font-weight: bold;
  color: #33348e;
}

.chart-legend {
  margin-top: 40px;
  text-align: left;
  width: 100%;
}

.chart-legend p {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.bullet {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #33348e;
  border-radius: 50%;
  margin-right: 10px;
  position: absolute;
  left: 0;
  top: 6px;
}

/* Pie Chart Styles */
.pie-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pie-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(
    #9c3587 0% 13%,
    #e0727e 13% 55%,
    #b14a7c 55% 100%
  );
  margin: 0 auto 15px;
}

.pie-legend {
  width: 100%;
  margin-top: 10px;
}

.pie-legend p {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
}

.age-18-24, .age-25-34, .age-35-44 {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 6px;
}

.age-18-24 {
  background-color: #9c3587;
}

.age-25-34 {
  background-color: #e0727e;
}

.age-35-44 {
  background-color: #b14a7c;
}

/* Bar Chart Styles */
.bar-chart-container {
  margin-top: 15px;
  width: 100%;
}

.bar-chart {
  height: 200px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  margin-bottom: 20px;
}

.chart-bars {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: flex-end;
  position: relative;
  height: 150px;
}

.chart-bars::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 1px;
  background-color: #ccc;
  left: 0;
}

.chart-bars::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #ccc;
  bottom: 0;
}

.year {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50px;
  margin-bottom: 20px;
}

.year::before {
  content: '';
  position: absolute;
  bottom: 30px;
  height: 120px;
  width: 30px;
  background: linear-gradient(to top, 
    #8d2841 0% 30%, 
    #e0727e 30% 70%, 
    #f4b8a6 70% 100%
  );
}

.year:nth-child(1)::before {
  height: 60px;
}

.year:nth-child(2)::before {
  height: 80px;
}

.year:nth-child(3)::before {
  height: 100px;
}

.year:nth-child(4)::before {
  height: 120px;
}

.year:nth-child(5)::before {
  height: 140px;
}

.bar-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.bar-legend p {
  display: flex;
  align-items: center;
  gap: 5px;
}

.world-color, .uk-color, .zim-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.world-color {
  background-color: #f4b8a6;
}

.uk-color {
  background-color: #e0727e;
}

.zim-color {
  background-color: #8d2841;
}

.chart-note {
  font-style: italic;
  color: #777;
  text-align: center;
  margin-top: 10px;
}

/* List styles */
.survey-card ul {
  list-style-type: none;
  padding-left: 0;
}

.survey-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
  color: #666;
  line-height: 1.5;
}

.survey-card ul li::before {
  content: '•';
  color: #e0727e;
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -2px;
}

/* Contact section */
.email {
  color: #33348e !important;
  font-weight: bold;
  margin-top: 10px;
}

.contact-image {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.contact-image img {
  max-width: 80px;
  height: auto;
}

.survey-footer {
  margin-top: 30px;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .survey-grid {
    grid-template-columns: 1fr;
  }
  
  .wide-card {
    grid-column: span 1;
  }
  
  .survey-h2 {
    font-size: 2rem;
  }
}