:root {
  --primary: #0a7c86;
  --primary-dark: #075a61;
  --accent: #f2b84b;
  --surface: #ffffff;
  --surface-soft: #f5fbfb;
  --text: #1f2a37;
  --muted: #5f6b7a;
  --shadow: 0 12px 30px rgba(10, 124, 134, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef9f9 0%, #f9fcfc 55%, #ffffff 100%);
}

body > .container-fluid:first-child {
  display: none;
}

nav.navbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary)) !important;
  padding: 0.9rem 1.4rem;
  box-shadow: 0 8px 20px rgba(7, 90, 97, 0.18);
}

.navbar-nav {
  width: 100%;
  align-items: center;
  gap: 0.35rem;
}

.navbar-nav .nav-item:first-child {
  margin-right: 0.7rem;
}

.navbar-nav img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary-dark);
  background-color: #ffffff;
}

.row {
  width: min(1100px, calc(100% - 2rem));
  margin-left: auto !important;
  margin-right: auto !important;
}

.row.justify-content-center {
  text-align: center;
  margin-top: 3.2rem;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.h2,
h2 {
  color: var(--primary-dark);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(10, 124, 134, 0.08);
  animation: riseFade 0.9s ease-out both;
}

.row.justify-content-center > div {
  color: var(--primary);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem) !important;
  font-weight: 600;
  animation: riseFade 1.1s ease-out both;
}

p {
  max-width: 780px;
  margin: 0 auto 1.5rem auto;
  color: var(--muted);
  font-size: 1.08rem !important;
  line-height: 1.8;
  animation: fadeSoft 1.3s ease-out both;
}

.homeButton
{
  display: block;
  width: 100%;
  min-height: 150px;
  margin: 0.85rem 0;
  border: 1px solid rgba(10, 124, 134, 0.2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 251, 0.98));
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 1.4rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}


.homeButton:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 124, 134, 0.38);
  box-shadow: 0 18px 34px rgba(10, 124, 134, 0.18);
}


.btn img {
  width: 50px !important;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.7rem;
}

.btn h6 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-dark);
}


.text-muted {
  color: var(--muted) !important;
  font-size: 1rem;
  line-height: 1.8;
}

body > div:not(.row):not(.container-fluid) {
  width: min(950px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

body > div[style*="margin: 10%"],
body > div[style*="margin: 15%"] {
  margin: 2.5rem auto !important;
}

body > div:not(.row):not(.container-fluid):has(h3),
body > div:not(.row):not(.container-fluid):has(.text-muted) {
  background: var(--surface);
  border: 1px solid rgba(10, 124, 134, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem 2rem 1.5rem;
}

.row .col {
  padding: 0.6rem;
}

.btn-outline-primary {
  color: var(--primary-dark);
  border-color: rgba(10, 124, 134, 0.4);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #ffffff;
}

@keyframes riseFade {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSoft {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  nav.navbar {
    padding: 0.8rem 1rem;
  }

  .navbar-nav {
    gap: 0.15rem;
  }

  .navbar-dark .navbar-nav .nav-link {
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
  }

  .row.justify-content-center {
    margin-top: 2.2rem;
  }

  button.btn,
  .btn {
    min-height: 130px;
    padding: 1.1rem 0.85rem;
  }

  body > div:not(.row):not(.container-fluid):has(h3),
  body > div:not(.row):not(.container-fluid):has(.text-muted) {
    padding: 1.4rem 1.1rem 1rem;
  }
}

td, th {
    width: 125px; 
    height: 50px;
    text-align: center;
    vertical-align: middle;
}

.home-page {
  padding-bottom: 4.2rem;
}

.home-main,
.questionnaire-page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.home-main .row,
.questionnaire-page .row {
  width: auto;
  margin-left: calc(-0.5 * var(--bs-gutter-x)) !important;
  margin-right: calc(-0.5 * var(--bs-gutter-x)) !important;
}

.home-hero,
.questionnaire-hero {
  padding: 4rem 1rem 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(242, 184, 75, 0.18);
  color: #8a5b00;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-hero .lead,
.questionnaire-hero p {
  max-width: 850px;
  font-size: 1.08rem !important;
}

.stage-link-panel,
.gallery-card,
.services-panel,
.questionnaire-card {
  background: #ffffff;
  border: 1px solid rgba(10, 124, 134, 0.12);
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(10, 124, 134, 0.12);
  padding: 2rem;
  margin: 2rem 0;
}

.section-title {
  color: #075a61;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.section-note {
  max-width: 700px;
  color: #5f6b7a;
  margin-bottom: 0;
}

.stage-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-height: 210px;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #1f2a37;
  text-decoration: none;
  border: 1px solid rgba(10, 124, 134, 0.15);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f5fbfb);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stage-link-card:hover,
.stage-link-card:focus {
  color: #1f2a37;
  transform: translateY(-5px);
  border-color: rgba(10, 124, 134, 0.38);
  box-shadow: 0 18px 36px rgba(10, 124, 134, 0.16);
}

.stage-link-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.stage-link-card span {
  color: #075a61;
  font-size: 1.15rem;
  font-weight: 800;
}

.stage-link-card small {
  color: #5f6b7a;
  line-height: 1.6;
}

.gallery-image {
  height: clamp(280px, 44vw, 430px);
  object-fit: cover;
  background: #f5fbfb;
}

.carousel-caption {
  background: rgba(7, 90, 97, 0.72);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(3px);
}

.moving-welcome-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  width: 100% !important;
  max-width: none !important;
  height: 3.2rem;
  margin: 0 !important;
  overflow: hidden;
  border-top: 3px solid #f2b84b;
  background: linear-gradient(90deg, #075a61, #0a7c86);
  color: #ffffff;
  box-shadow: 0 -8px 22px rgba(7, 90, 97, 0.18);
}

.moving-welcome-banner span {
  display: inline-block;
  white-space: nowrap;
  padding: 0.85rem 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  animation: moveBannerText 20s linear infinite;
}

@keyframes moveBannerText {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100vw);
  }
}

.questionnaire-hero h1 {
  color: #075a61;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 1rem 0 0.8rem;
}

.questionnaire-card {
  overflow: hidden;
  padding: 0;
}

.questionnaire-side {
  background: linear-gradient(160deg, #075a61, #0a7c86);
  color: #ffffff;
  padding: 2rem;
}

.questionnaire-side h2 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.questionnaire-side p,
.questionnaire-side li {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.questionnaire-side ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.feedback-form {
  padding: 2rem;
}

.feedback-form .form-label,
.question-group legend {
  color: #075a61;
  font-weight: 800;
}

.question-group {
  border: 1px solid rgba(10, 124, 134, 0.16);
  border-radius: 20px;
  padding: 1rem;
  background: #f5fbfb;
}

.question-group legend {
  float: none;
  width: auto;
  padding: 0 0.35rem;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.question-option {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(10, 124, 134, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #1f2a37;
  cursor: pointer;
}

.question-option input {
  accent-color: #0a7c86;
}

.is-invalid-group {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.04);
}

.is-valid-group {
  border-color: #198754;
  background: rgba(25, 135, 84, 0.04);
}

.feedback-form .form-control,
.feedback-form .form-select {
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
}

.feedback-form textarea {
  resize: vertical;
}

@media (max-width: 768px) {
  .stage-link-panel,
  .gallery-card,
  .services-panel,
  .feedback-form,
  .questionnaire-side {
    padding: 1.3rem;
  }

  .home-hero,
  .questionnaire-hero {
    padding-top: 2.5rem;
  }

  .question-options {
    flex-direction: column;
  }

  .moving-welcome-banner span {
    animation-duration: 15s;
  }
}