/* =====================================
   Weprospect Professional Survey UI
===================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background: #ffffff;
  text-align: center;
  color: #111;
}

/* Logo */
.logo {
  margin-top: 20px;
  margin-bottom: 15px;
}

.logo img {
  height: 110px;
  max-width: 90%;
}

/* Progress */
.progress-wrap {
  width: 60%;
  height: 10px;
  background: #eaeaea;
  border-radius: 30px;
  margin: 20px auto 8px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: #13255B;
  transition: width 0.4s ease;
}

#progress-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 25px;
}

/* Survey Box */
.survey-box {
  width: 60%;
  margin: auto;
  padding: 45px;
  border-radius: 18px;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  box-shadow: 0px 10px 35px rgba(0, 0, 0, 0.08);
}

#question-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: left;
}

.counter {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  text-align: left;
}

/* Intro Text */
.intro-text {
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 18px;
  color: #222;
}

.intro-text.small {
  font-size: 16px;
  color: #555;
}

.intro-highlight {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid #13255B;
  background: #f3f6ff;
  border-radius: 10px;
  font-size: 16px;
  text-align: left;
}

/* Inputs */
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 15px 18px;
  margin-bottom: 18px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  background: #fafafa;
}

input:focus {
  outline: none;
  border-color: #13255B;
  background: #fff;
  box-shadow: 0px 0px 0px 3px rgba(0, 71, 255, 0.18);
}

/* Options */
#options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
  transition: 0.25s;
}

.option:hover {
   border-color: #13255B;
  background: rgba(0, 71, 255, 0.05);
}

.option input {
  transform: scale(1.2);
}
.option input[type="radio"] {
  accent-color: var(--brand);
}

.option label {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

.option.selected {
  border: 2px solid #13255B;
  background: rgba(0, 71, 255, 0.08);
}

/* Matrix Table */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.matrix-table th,
.matrix-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

.matrix-table th {
  background: #f5f5f5;
  font-weight: 600;
}

.matrix-table td:first-child {
  text-align: left;
  font-weight: 600;
  background: #fafafa;
}

.matrix-table input {
  transform: scale(1.2);
}

/* Next Button */
.next-btn {
  margin-top: 35px;
  padding: 14px 55px;
  border: none;
  border-radius: 12px;
  background: #13255B;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.next-btn:hover {
  background: #0033bb;
}

/* Section Screen */
.section-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 40px 0 10px;
  color: #13255B;
}

.section-sub {
  text-align: center;
  font-size: 15px;
  color: #555;
}

/* Thank You */
.thank-box {
  text-align: center;
  padding: 30px;
}

.thank-box h3 {
  font-size: 22px;
  color: #13255B;
  margin-bottom: 12px;
}

/* Footer */
.footer {
  margin-top: 35px;
  padding: 15px;
  font-size: 14px;
  color: #ffffff;
  border-top: 1px solid #ddd;
  background-color: #13255B;
}

/* Fade Animation */
.fade {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .progress-wrap {
    width: 90%;
  }

  .survey-box {
    width: 92%;
    padding: 25px;
  }

  .next-btn {
    width: 100%;
  }
}
/* Error Message */
#error-msg {
  margin-top: 15px;
  color: red;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

/* Highlight Empty Input */
.input-error {
  border: 2px solid red !important;
}
