/* Global Styles */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: #fff;
  color: #2f4f4f;
}

/* Header */
header {
  color: #34638C;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: column;
}
#logo {
  height: 60px;
}
#pageTitle {
  margin: 0;
  font-size: 20px;
  margin-top: 15px;
}
#languageSelect {
  margin-top:15px;
  border:1px solid #ededed;
  width:200px;
}
#languageSelect select {
  padding: 12px 12px;
  font-size: 1em;
  border: none;
  border-radius: 4px;
}

/* Content Area (Card based) */
#content {
  padding: 0px 20px;
  max-width: 1200px;
  margin: 0px auto;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 20px;
}

/* Landing Page Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* Buttons */
button {
  background: #34638C;
  color: #fff;
  border: none;
  padding: 12px 20px;
  margin: 8px 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}
button:hover {
  opacity: 0.9;
}
button:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.questionHead{
  font-weight: 600;
  margin-top: 20px;
}
/* Survey Page (Carousel) */
.progress-bar {
  height: 6px;
  background: #34638C;
  margin-bottom: 20px;
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}
.survey-section {
  display: none;
}
.survey-section.active {
  display: block;
  animation: fadeIn 0.5s;
}
.survey-section h2 {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #34638C;
  border-bottom: 2px solid #34638C;
  padding-bottom: 10px;
}

/* Form Fields */
label {
  display: block;
  margin: 10px 0 4px;
  font-weight: 500;
}
input[type="text"],
input[type="number"],
input[type="date"], 
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
  background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+) no-repeat;
  background-position: right 5px top; /* Change the px value here to change the distance */
  -moz-appearance: none; 
  -webkit-appearance: none; 
  appearance: none;
}

/* Custom Date Picker Style */
input[type="date"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: url('calendar-icon.svg') no-repeat right 10px center;
  background-size: 20px;
  font-family: 'Manrope', sans-serif !important;
}

/* Navigation Buttons */
.nav-buttons {
  margin-top: 20px;
  text-align: right;
}
#submitSurvey{
  background-color: #2E8B57 !important;
}
/* Responsive Design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Default: show table view, hide card view */
.table-view {
  display: block;
}
.card-view {
  display: none;
}

/* For small screens (<600px), show card view instead */
@media (max-width: 600px) {
  .table-view {
    display: none;
  }
  .card-view {
    display: block;
  }
}

/* Optional: Style for the 'View Details' link-like button */
.view-details {
  background: none;
  border: none;
  color: #003366;
  text-decoration: underline;
  cursor: pointer;
  font-size: 1em;
  padding: 0;
}

/* Card view styling for landing page records */
.record-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
}
.record-card h3 {
  margin: 0 0 10px;
  font-size: 1.1em;
  color: #003366;
}
.record-card p {
  margin: 5px 0;
  font-size: 0.95em;
}
