/* === General === */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --primary-light: #3d8bfd;
  --text-color: #333;
  --text-light: #6c757d;
  --hover-color: #0b5ed7;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --card-bg: #ffffff;
  --border-color: #e9ecef;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 20%, #e8f2ff 40%, #ddeeff 60%, #d2eaff 80%, #c7e6ff 100%);
  background-size: 400% 400%;
  animation: gradientShift 25s ease infinite;
  background-attachment: fixed;
  color: #333;
  padding-top: 80px;
  position: relative;
}

@media (max-width: 768px) {
  .grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 16px;
  }
  
  body {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f8faff 100%);
    background-attachment: scroll;
    animation: none;
  }
  
  body::before,
  body::after {
    opacity: 0.3;
  }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 30%, rgba(13, 110, 253, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.7) 0%, transparent 60%),
    radial-gradient(circle at 30% 80%, rgba(13, 110, 253, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.6) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: pulse 8s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 120px, rgba(13, 110, 253, 0.02) 120px, rgba(13, 110, 253, 0.02) 122px),
    repeating-linear-gradient(-45deg, transparent, transparent 120px, rgba(255, 255, 255, 0.03) 120px, rgba(255, 255, 255, 0.03) 122px);
  pointer-events: none;
  z-index: 0;
  animation: patternMove 20s linear infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes patternMove {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 120px 120px, -120px -120px;
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.7rem 2rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  padding: 0.5rem 0;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-color);
}

.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.dropbtn:hover {
  color: var(--primary-color);
}

.dropbtn i {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.dropdown.dropdown-open .dropbtn i {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  z-index: 1001;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown.dropdown-open .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
}

.dropdown-icon {
  width: 18px;
  text-align: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    gap: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a,
  .nav-links .dropdown {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
  }
}

/* === Page Layout === */
.survey-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  flex-direction: column;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.survey-container {
  width: 100%;
  max-width: 950px;
  background: transparent;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

/* === Logo Section === */
.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
  padding: 20px 0;
}

.logo-section::before,
.logo-section::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  top: 50%;
}

.logo-section::before {
  left: calc(50% - 100px);
}

.logo-section::after {
  right: calc(50% - 100px);
}

.survey-logo {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.survey-logo:hover {
  transform: scale(1.05);
}

/* === Card Container === */
.survey-card-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 100px rgba(13, 110, 253, 0.05);
  margin-top: 15px;
  animation: slideUp 0.6s ease-out;
  position: relative;
  overflow: visible;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.survey-card-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--primary-color));
  pointer-events: none;
  z-index: 0;
}

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

/* === Cards === */
.card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin-bottom: 2.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 10;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light), #3d8bfd);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 20px 0 0 20px;
  pointer-events: none;
  z-index: 0;
}

.card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.card:hover::before {
  transform: scaleY(1);
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 20px 40px rgba(13, 110, 253, 0.2),
    0 0 0 1px rgba(13, 110, 253, 0.1) inset,
    0 0 60px rgba(13, 110, 253, 0.1);
  border-color: rgba(13, 110, 253, 0.3);
}

/* === Section Headings === */
.card h4 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 2rem;
  padding-bottom: 15px;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 10;
  pointer-events: auto;
}

.card h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.card:hover h4::after {
  width: 100px;
}

.card h4 i {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  padding: 8px;
  border-radius: 10px;
  background-color: rgba(13, 110, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

/* === Form Layout === */
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 25px 40px; /* horizontal spacing */
}

.form-group {
  flex: 1 1 45%; /* two per row */
  min-width: 280px;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  display: block;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 15px;
}

.input-icon input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-icon input:focus {
  border-color: #007bff;
  box-shadow: 0 0 3px rgba(0, 123, 255, 0.25);
  outline: none;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.fa-user-tie.me-2 {
  margin-right: 8px;
  color: #007bff;
}

/* Fix space above feedback card */
.card + .feedback-section {
  margin-top: 0 !important;
}

.input-icon input:focus,
.input-icon textarea:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 5px rgba(13, 110, 253, 0.3);
}

textarea {
  resize: none;
}

/* === Feedback Ratings === */
/* Feedback Rating Section */
.feedback-block {
  margin-bottom: 2.5rem;
  text-align: center;
}

.feedback-block h6 {
  color: #333;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}

.feedback-block h6 i {
  color: #334155;
}

.star-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 10px 0;
}

.star-row .fa-star {
  font-size: 24px;
  color: #999; /* outlined grey look */
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
}

.star-row .fa-star:hover {
  transform: scale(1.15);
}

/* Active and filled star */
.star-row .fa-star.active {
  color: #f7c600;
}

/* Label below stars */
.hover-label {
  font-weight: 600;
  color: #f7c600;
  font-size: 16px;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}


/* === Button === */
.btn-primary {
  background: var(--primary-color);
  border: none;
  border-radius: 50px;
  color: white;
  padding: 16px 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 30px auto 0;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  position: relative;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 100;
  pointer-events: auto;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.btn-primary i {
  margin-right: 10px;
  font-size: 16px;
}

/* === Footer === */
.footer {
  background: #111827;
  color: white;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  align-items: start;
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
  gap: 3rem;
  margin-bottom: 3rem;
}

.desktop-social {
  margin-top: auto;
}

.footer-column:first-child {
  display: flex;
  flex-direction: column;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-logo-container {
  width: 120px;
  height: 80px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.footer-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== FOOTER GRID – DESKTOP FIX ===== */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
    align-items: start;
    column-gap: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-column:first-child {
    max-width: 340px;
  }
}

.footer-column h4 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
  color: white;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-color);
}

.footer-column p {
  color: #9ca3af;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.footer-column a:hover {
  color: white;
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
  flex-shrink: 0;
  flex-grow: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}

.social-links a:nth-of-type(1):hover i {
  color: #000000;
}

.social-links a:nth-of-type(2):hover i {
  color: #0077b5;
}

.social-links a:nth-of-type(3):hover i {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.social-links a:nth-of-type(4):hover i {
  color: #1877F2;
}

.social-links a:nth-of-type(5):hover i {
  color: #FF0000;
}

.social-links a:nth-of-type(1) img {
  width: 24px;
  height: 24px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

.footer-bottom p {
  margin: 0;
}

/* Certifications */
.certifications {
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.certifications h4 {
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  display: inline-block;
}

.certifications h4::after {
  content: '';
  width: 50%;
  height: 2px;
  background: var(--primary-color);
  position: absolute;
  bottom: -8px;
  left: 25%;
  border-radius: 2px;
}

.certification-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.certification-item {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.certification-item:hover {
  background: rgba(13, 110, 253, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certification-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.certification-item span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
  }

  .footer-column:first-child {
    grid-column: span 2;
    text-align: center;
  }

  .footer-column h4::after {
    left: 0;
    transform: none;
  }

  .certification-list {
    gap: 1rem;
  }

  .certification-item {
    padding: 0.4rem 0.8rem;
  }

  .certification-item span {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column:first-child {
    grid-column: 1;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-column ul {
    padding-left: 0;
  }

  .certification-list {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .certification-item {
    width: 80%;
    justify-content: center;
  }
}

/* === Responsive === */
@media (max-width: 600px) {
  .survey-logo {
    width: 70px;
  }

  .card h4 {
    font-size: 20px;
  }

  .feedback-block h6 {
    font-size: 15px;
  }

  .star-row .fa-star {
    font-size: 20px;
  }

  .hover-label {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .survey-page {
    padding: 1.25rem 0.75rem;
    width: 100%;
    overflow-x: hidden;
  }
  
  .survey-card-container {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .feedback-heading {
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 0.875rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .card {
    padding: 1.75rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 18px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .card h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .card h4::after {
    width: 45px;
    height: 2.5px;
  }
  
  .card h4 i {
    width: 34px;
    height: 34px;
    font-size: 18px;
    flex-shrink: 0;
  }
  
  .customer-details {
    padding: 1.25rem;
    gap: 1.25rem;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .customer-details .form-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  
  .customer-details .form-group > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  
  .customer-details label {
    font-size: 10px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .customer-details input {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px 10px 44px;
    font-size: 14px;
    border-radius: 10px;
    box-sizing: border-box;
    min-width: 0;
  }
  
  .customer-details i {
    left: 11px;
    width: 24px;
    height: 24px;
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .feedback-item {
    padding: 1.25rem 0.875rem;
    gap: 1rem;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .feedback-title {
    font-size: 15px;
    padding: 0.625rem 0.875rem;
    margin-bottom: 0.625rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .feedback-title i {
    width: 22px;
    height: 22px;
    font-size: 15px;
    flex-shrink: 0;
  }
  
  .star-row {
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }
  
  .star-row .fa-star {
    font-size: 20px;
    flex-shrink: 0;
  }
  
  .rating-label {
    font-size: 12px;
    margin-top: 0.5rem;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .feedback-reason {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  
  .feedback-reason input {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 10px;
    box-sizing: border-box;
    min-width: 0;
  }
  
  textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    min-height: 80px;
    border-radius: 10px;
    box-sizing: border-box;
    min-width: 0;
  }
  
  .btn-primary {
    width: 100%;
    max-width: 100%;
    padding: 15px 28px;
    font-size: 14px;
    margin-top: 1.25rem;
    border-radius: 50px;
    box-sizing: border-box;
  }
}
.feedback-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 15px;
  margin-bottom: 35px;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 20px;
}

.feedback-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  border-radius: 2px;
}
textarea {
  width: 100%;
  max-width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  font-size: 14px;
  color: #1a1a2e;
  border: 2px solid rgba(233, 236, 239, 0.8);
  border-radius: 10px;
  resize: vertical;
  box-sizing: border-box;
  margin-top: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  line-height: 1.6;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
  pointer-events: auto;
  min-width: 0;
}

textarea::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

textarea:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
  outline: none;
}
.customer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 20px;
  margin-top: 20px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
  border-radius: 14px;
  border: 1px solid rgba(233, 236, 239, 0.5);
  position: relative;
  z-index: 10;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.customer-details .form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 100;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.customer-details .form-group > div {
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.customer-details label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a2e;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text-light);
}

.customer-details input {
  width: 100%;
  max-width: 100%;
  padding: 10px 14px 10px 52px;
  border: 2px solid rgba(233, 236, 239, 0.8);
  border-radius: 10px;
  font-size: 14px;
  color: #1a1a2e;
  background: #ffffff;
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 100;
  pointer-events: auto;
  min-width: 0;
}

.customer-details input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.customer-details input:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
  outline: none;
}

.customer-details .form-group.focused input {
  border-color: var(--primary-color);
  background-color: #fff;
}

.customer-details i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 16px;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 101;
  background: rgba(255, 255, 255, 0.6);
  padding: 5px;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.customer-details .form-group.focused i {
  color: var(--primary-color);
  background: rgba(13, 110, 253, 0.1);
  transform: translateY(-50%) scale(1.1);
}

/* === Card general spacing === */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 2.5rem;
}


@media (max-width: 768px) {
  .survey-page {
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 70px);
    width: 100%;
    overflow-x: hidden;
  }
  
  .survey-container {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }
  
  .survey-card-container {
    padding: 2rem 1.5rem;
    border-radius: 24px;
    margin-top: 0;
    box-shadow: 
      0 10px 40px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .feedback-heading {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(233, 236, 239, 0.6);
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .card h4 {
    font-size: 1.35rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .card h4::after {
    width: 50px;
    height: 3px;
  }
  
  .card h4 i {
    width: 38px;
    height: 38px;
    font-size: 20px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  
  .customer-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(233, 236, 239, 0.8);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .customer-details .form-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  
  .customer-details .form-group > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  
  .customer-details label {
    font-size: 11px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #6c757d;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .customer-details input {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px 11px 46px;
    font-size: 14px;
    border-radius: 12px;
    border: 1.5px solid #e9ecef;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
  }
  
  .customer-details input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
  }
  
  .customer-details i {
    left: 12px;
    width: 26px;
    height: 26px;
    font-size: 14px;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    flex-shrink: 0;
  }
  
  .customer-details .form-group.focused i {
    background: rgba(13, 110, 253, 0.1);
  }
  
  .feedback-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1rem;
    gap: 1.25rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(233, 236, 239, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .feedback-title {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    font-size: 16px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 10px;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .star-section {
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    min-width: 0;
  }
  
  .star-row {
    gap: 10px;
    justify-content: flex-start;
    margin: 0.5rem 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
  }
  
  .star-row .fa-star {
    font-size: 22px;
    flex-shrink: 0;
  }
  
  .rating-label {
    text-align: left;
    margin-top: 0.5rem;
    font-size: 13px;
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
  }
  
  .feedback-reason {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    min-width: 0;
  }
  
  .feedback-reason input {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    font-size: 13px;
    border-radius: 12px;
    border: 1.5px solid #e9ecef;
    box-sizing: border-box;
    min-width: 0;
  }
  
  .feedback-reason input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
  }
  
  textarea {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    font-size: 13px;
    min-height: 90px;
    border-radius: 12px;
    border: 1.5px solid #e9ecef;
    box-sizing: border-box;
    min-width: 0;
  }
  
  textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
  }
  
  .btn-primary {
    width: 100%;
    max-width: 100%;
    padding: 16px 30px;
    font-size: 15px;
    margin-top: 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-sizing: border-box;
  }
}
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feedback-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(233, 236, 239, 0.6);
  padding: 20px 15px;
  margin: 10px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.3) 0%, rgba(255, 255, 255, 0.5) 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feedback-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.feedback-item:hover::before {
  transform: scaleY(1);
}

.feedback-item:hover {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
}

.feedback-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.feedback-title i {
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 8px;
  padding: 4px;
}

.feedback-item:hover .feedback-title {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
}

.star-row {
  display: flex;
  gap: 10px;
}

.star-row .fa-star {
  font-size: 22px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.star-row .fa-star:hover,
.star-row .fa-star.active {
  color: #f7c600;
  /* transform: scale(1.2); */
}
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.feedback-title {
  font-size: 17px;
  font-weight: 600;
  color: #222;
  width: 150px;
}

.star-row {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 15px;
}

.star-row .fa-star {
  font-size: 22px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.star-row .fa-star.filled {
  color: #ffcc00;
}

.star-row .fa-star.hover {
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(255, 204, 0, 0.4));
}

.star-row .fa-star:hover {
  transform: scale(1.1);
}
/* === Feedback Reason Popup Field === */
/* === Feedback Reason Field (Improvement Input) === */
.feedback-reason {
  display: none;
  width: 100%;
  margin-top: 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.feedback-reason label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  text-align: left;
  width: 100%;
}

.feedback-reason input {
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid rgba(233, 236, 239, 0.8);
  border-radius: 12px;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 100;
  pointer-events: auto;
  min-width: 0;
}

.feedback-reason input::placeholder {
  color: #adb5bd;
}

.feedback-reason input:focus {
  border-color: var(--primary-color);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

/* Smooth popup appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Rating section styling */
.rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 28px;
  color: #ccc;
  transition: color 0.3s ease;
}

/* Hover effect — make hovered and previous stars gold */
.rating .star:hover,
.rating .star:hover ~ .star {
  color: #FFD700;
}

/* When selected */
.rating .star.selected {
  color: #FFD700;
}

/* Label below stars */
.rating-label {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  font-weight: 600;
  min-height: 20px;
  transition: opacity 0.3s ease, color 0.3s ease;
  opacity: 0;
}

.rating-label:not(:empty) {
  opacity: 1;
  color: var(--primary-color);
}

/* Input popup for 1-star reason */
.reason-popup {
  display: none;
  margin-top: 10px;
  text-align: center;
}

.reason-popup textarea {
  width: 80%;
  height: 60px;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 8px;
  font-size: 14px;
}

.reason-popup.active {
  display: block;
}

/* Optional smooth fade effect */
.star {
  transition: color 0.2s ease-in-out, transform 0.2s;
}
.star:hover {
  transform: scale(1.1);
}

/* === Notifications === */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 300px;
  border-left: 4px solid;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  border-left-color: #28a745;
}

.notification.success i {
  color: #28a745;
}

.notification.warning {
  border-left-color: #ffc107;
}

.notification.warning i {
  color: #ffc107;
}

.notification i {
  font-size: 20px;
}

/* === Animations === */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.star-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Prevent horizontal scroll */
body, html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Touch-friendly interactive elements */
@media (max-width: 768px) {
  button, a, input, select, textarea {
    min-height: 44px;
    min-width: 44px;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px;
  }
  
  .survey-form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-row .survey-form-group {
    width: 100%;
    margin-right: 0;
  }
  
  .submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
  }
  
  .radio-group,
  .checkbox-group {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .survey-card-container {
    padding: 1.5rem 1rem;
  }
  
  .survey-form-group label {
    font-size: 0.9rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    padding: 0.75rem;
    font-size: 16px;
  }
}

/* ======================================
   FOOTER SOCIAL LINKS – RESPONSIVE FIX
   ====================================== */

/* Default (Desktop) */
.desktop-social {
  display: flex;
}

.mobile-social {
  display: none;
}

/* Mobile behavior */
@media (max-width: 768px) {
  /* Hide social links from top column */
  .desktop-social {
    display: none !important;
  }

  /* Show social links at bottom */
  .mobile-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
  }
}
