 /* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 500px;
  max-width: 95%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.view-details {
  color: #03695d;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9em;
  margin-left: 5px;
}

.view-details:hover {
  color: #02584e;
}

.modal-row {
  display: flex;
  gap: 30px;
  margin-bottom: 15px;
  flex-wrap: nowrap;
}

.modal-cell {
  flex: 1;
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: #012d2b;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Starry Background */
#stars-container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Main Container */
.container {
  position: relative;
  max-width: 500px;
  margin: 2rem auto;
  padding: 1rem;
  z-index: 2;
}

/* Logo Styling */
.logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo img {
  width: min(180px, 60%);
  height: auto;
}

/* Screen Transitions */
.screen {
  display: none;
  animation: fadeIn 0.3s ease-out;
  position: relative;
}

.screen.active {
  display: block;
}

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

/* Card Styling */
.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.card h2 {
  color: #03695d;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

/* Back Button Styling */
.back-btn {
  position: absolute;
  top: -2.5rem;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #03695d;
}

.back-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #f5fffe;
}

/* Next Button Styling */
.btn-next {
  background: linear-gradient(135deg, #03695d, #02584e);
  color: white;
  border: none;
  padding: 1.2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(3, 105, 97, 0.3);
  background: linear-gradient(135deg, #02584e, #01433a);
}

.btn-next:active {
  transform: translateY(0);
}

/* Choice Cards */
.choice-card {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.choice-card.selected {
  border-color: #03695d;
  background: #f5fffe;
}

.choice-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f0f0f0;
}

/* Form Elements */
input[type="text"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #03695d;
}

/* Overview Section */
.overview {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  animation: slideUp 0.3s ease-out;
}

.overview p {
  margin-bottom: 0.75rem;
  color: #333;
}

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

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    margin: 1rem;
    padding: 0.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .back-btn {
    top: -2.2rem;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
  }

  .btn-next {
    padding: 1rem;
    font-size: 1rem;
  }
}