/* =========================================================
   WebServe Solution Finder & Contact Form Styles
   ========================================================= */

.ws-finder-widget {
  background: #FFFFFF;
  border: 1px solid #E8E0E2;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(122, 0, 31, 0.05);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  color: #141414;
}

@media (max-width: 600px) {
  .ws-finder-widget {
    padding: 22px 18px;
    border-radius: 16px;
  }
}

.ws-finder-progress {
  width: 100%;
  height: 5px;
  background: #F3EAEB;
  border-radius: 10px;
  margin-bottom: 24px;
  overflow: hidden;
}

.ws-finder-progress-bar {
  height: 100%;
  width: 33.33%;
  background: #7A001F;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.ws-finder-step {
  display: none;
  animation: wsFadeIn 0.3s ease forwards;
}

.ws-finder-step.active {
  display: block;
}

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

.ws-finder-step-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7A001F;
  background: #F8EDEF;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

html[dir="rtl"] .ws-finder-step-tag {
  letter-spacing: 0;
  text-transform: none;
}

.ws-finder-step-title {
  font-size: 20px;
  font-weight: 800;
  color: #141414;
  margin: 0 0 20px 0;
  line-height: 1.35;
}

.ws-finder-options {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.ws-finder-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FAF8F5;
  border: 1.5px solid #EBE5DF;
  border-radius: 14px;
  padding: 14px 18px;
  cursor: pointer;
  text-align: start;
  transition: all 0.2s ease;
  width: 100%;
  font-family: inherit;
  color: inherit;
}

.ws-finder-opt:hover,
.ws-finder-opt:focus-visible {
  background: #FFFFFF;
  border-color: #7A001F;
  box-shadow: 0 4px 14px rgba(122, 0, 31, 0.08);
  outline: none;
}

.ws-finder-opt.selected {
  background: #FDF9FA;
  border-color: #7A001F;
  outline: 2px solid #7A001F;
}

.ws-finder-opt-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.ws-finder-opt-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ws-finder-opt-text strong {
  font-size: 15px;
  font-weight: 700;
  color: #141414;
}

.ws-finder-opt-text small {
  font-size: 13px;
  color: #51515A;
  line-height: 1.4;
}

.ws-finder-nav {
  margin-top: 18px;
}

.ws-finder-btn-back {
  background: none;
  border: none;
  color: #51515A;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  transition: color 0.2s;
}

.ws-finder-btn-back:hover {
  color: #7A001F;
}

/* Step 3: Recommendation Styling */
.ws-finder-results {
  background: #FAF8F5;
  border: 1px solid #EAE2D9;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
}

.ws-rec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ws-rec-badge {
  font-size: 26px;
}

.ws-rec-title {
  font-size: 18px;
  font-weight: 800;
  color: #7A001F;
  margin: 0;
}

.ws-rec-desc {
  font-size: 15px;
  color: #333333;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.ws-rec-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ws-rec-features li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 14px;
  font-weight: 600;
  color: #141414;
}

.ws-rec-features li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: #7A001F;
  font-weight: 900;
}

.ws-finder-action-box {
  border-top: 1px solid #EBE5DF;
  padding-top: 18px;
}

.ws-finder-action-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: #141414;
  margin: 0 0 6px 0;
}

.ws-finder-action-box p {
  font-size: 14px;
  color: #51515A;
  margin: 0 0 16px 0;
}

.ws-finder-action-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.ws-finder-btn-cta {
  background: #7A001F;
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(122, 0, 31, 0.2);
  transition: all 0.2s;
}

.ws-finder-btn-cta:hover {
  background: #5E0017;
  transform: translateY(-1px);
}

.ws-finder-btn-restart {
  background: #FFFFFF;
  border: 1.5px solid #D9CFCF;
  color: #141414;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.ws-finder-btn-restart:hover {
  border-color: #7A001F;
  color: #7A001F;
}

/* Contact Form Styling */
.ws-contact-form-widget {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #141414;
}

@media (max-width: 600px) {
  .ws-contact-form-widget {
    padding: 22px 18px;
    border-radius: 16px;
  }
}

.ws-form {
  display: grid;
  gap: 16px;
}

.ws-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .ws-form-row {
    grid-template-columns: 1fr;
  }
}

.ws-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: start;
}

.ws-form-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: #141414;
}

.ws-form-group input,
.ws-form-group select,
.ws-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  font-family: inherit;
  border: 1.5px solid #DDD7D3;
  border-radius: 10px;
  background: #FAF8F5;
  color: #141414;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.ws-form-group select {
  height: 52px !important;
  min-height: 52px !important;
  padding: 12px 42px 12px 14px !important;
  line-height: 1.4 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A001F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px !important;
  cursor: pointer;
}

html[dir=rtl] .ws-form-group select {
  padding: 12px 14px 12px 42px !important;
  background-position: left 14px center !important;
}

.ws-form-group input:focus,
.ws-form-group select:focus,
.ws-form-group textarea:focus {
  border-color: #7A001F;
  background: #FFFFFF;
  outline: none;
}

.ws-form-consent {
  margin-top: 4px;
}

.ws-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #51515A;
  cursor: pointer;
  line-height: 1.4;
}

.ws-checkbox-label input {
  margin-top: 2px;
  accent-color: #7A001F;
}

.ws-checkbox-label a {
  color: #7A001F;
  text-decoration: underline;
  font-weight: 600;
}

.ws-checkbox-label a:hover {
  color: #5E0017;
}

.ws-form-submit {
  background: #7A001F;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(122, 0, 31, 0.25);
  transition: all 0.2s ease;
  font-family: inherit;
}

.ws-form-submit:hover {
  background: #5E0017;
  transform: translateY(-1px);
}

.ws-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ws-form-response {
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.ws-form-response.success {
  background: #EAF7EE;
  color: #1A6C2B;
  border: 1px solid #B8E8C5;
}

.ws-form-response.error {
  background: #FDF1F2;
  color: #9C1425;
  border: 1px solid #F5C6CB;
}
