/* Hero quote wizard — multi-step trip cost request */

.rewa-quote {
  scroll-margin-top: 90px;
  background: #fff;
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(16, 59, 68, 0.14);
  border: 1px solid #eaf3f4;
  position: relative;
  overflow: hidden;
}

.rewa-quote::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #0e7490, #0891b2, #e0a44e);
}

.rewa-quote__head {
  margin-bottom: 18px;
}

.rewa-quote__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0e7490;
  background: #ecf6f8;
  border: 1px solid #d3e8eb;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.rewa-quote__title {
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-size: 22px;
  margin: 0 0 6px;
  color: #0c3640;
  line-height: 1.25;
}

.rewa-quote__subtitle {
  color: #6a8d94;
  font-size: 13.5px;
  margin: 0;
  line-height: 1.55;
}

.rewa-quote__steps {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  list-style: none;
  padding: 0;
}

.rewa-quote__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.rewa-quote__step-dot {
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: #e3f0f2;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.rewa-quote__step.is-active .rewa-quote__step-dot,
.rewa-quote__step.is-done .rewa-quote__step-dot {
  background: linear-gradient(90deg, #0e7490, #0891b2);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.rewa-quote__step-label {
  font-size: 11px;
  font-weight: 700;
  color: #8aa6ac;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.25s;
}

.rewa-quote__step.is-active .rewa-quote__step-label {
  color: #0e7490;
}

.rewa-quote__step.is-done .rewa-quote__step-label {
  color: #2f7a88;
}

.rewa-quote__panel {
  display: none;
  animation: rewaQuoteIn 0.35s ease;
}

.rewa-quote__panel.is-active {
  display: block;
}

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

.rewa-quote__panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-size: 15.5px;
  color: #103b44;
  margin: 0 0 14px;
}

.rewa-quote__panel-title i {
  color: #0e7490;
  font-size: 18px;
}

.rewa-quote__grid {
  display: grid;
  gap: 12px;
}

.rewa-quote__grid--2 {
  grid-template-columns: 1fr 1fr;
}

.rewa-quote__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.rewa-quote__field label {
  font-size: 12.5px;
  font-weight: 700;
  color: #3d646c;
}

.rewa-quote__field input,
.rewa-quote__field select,
.rewa-quote__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8e6e8;
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  color: #103b44;
  background: #fbfdfe;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.rewa-quote__field input:focus,
.rewa-quote__field select:focus,
.rewa-quote__field textarea:focus {
  border-color: #0e7490;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.rewa-quote__field input.is-invalid,
.rewa-quote__field select.is-invalid,
.rewa-quote__field textarea.is-invalid {
  border-color: #dc6b6b;
  box-shadow: 0 0 0 3px rgba(220, 107, 107, 0.12);
}

.rewa-quote__field input[type="tel"],
.rewa-quote__field input[type="email"],
.rewa-quote__field input[type="date"],
.rewa-quote__field input[type="number"] {
  direction: ltr;
  text-align: start;
}

.rewa-quote__field textarea {
  min-height: 84px;
  resize: vertical;
}

.rewa-quote__error {
  display: none;
  font-size: 12px;
  color: #c44;
  font-weight: 600;
}

.rewa-quote__error.is-visible {
  display: block;
}

.rewa-quote__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rewa-quote__choices--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.rewa-quote__choices--4 {
  grid-template-columns: 1fr 1fr;
}

.rewa-quote__choice {
  position: relative;
  cursor: pointer;
}

.rewa-quote__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rewa-quote__choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 11px 12px;
  border: 1.5px solid #d8e6e8;
  border-radius: 12px;
  background: #fbfdfe;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
  min-height: 64px;
}

.rewa-quote__choice-card i {
  font-size: 18px;
  color: #0e7490;
}

.rewa-quote__choice-card strong {
  font-size: 13px;
  font-weight: 800;
  color: #103b44;
  line-height: 1.3;
}

.rewa-quote__choice-card span {
  font-size: 11.5px;
  color: #6a8d94;
  line-height: 1.35;
}

.rewa-quote__choice:hover .rewa-quote__choice-card {
  border-color: #a8d4db;
  transform: translateY(-1px);
}

.rewa-quote__choice input:checked + .rewa-quote__choice-card {
  border-color: #0e7490;
  background: linear-gradient(160deg, #f0fafc, #e8f6f9);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}

.rewa-quote__choice input:focus-visible + .rewa-quote__choice-card {
  outline: 2px solid #e0a44e;
  outline-offset: 2px;
}

.rewa-quote__hint {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8ec;
  border: 1px solid #f0e0c0;
  color: #8a6a2e;
  font-size: 12.5px;
  line-height: 1.45;
}

.rewa-quote__hint.is-visible {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rewa-quote__hint i {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.rewa-quote__car-wrap {
  display: none;
  margin-top: 12px;
  animation: rewaQuoteIn 0.3s ease;
}

.rewa-quote__car-wrap.is-visible {
  display: block;
}

.rewa-quote__nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.rewa-quote__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}

.rewa-quote__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.rewa-quote__btn--primary {
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #fff;
  box-shadow: 0 12px 24px rgba(14, 116, 144, 0.28);
}

.rewa-quote__btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
}

.rewa-quote__btn--ghost {
  background: #ecf6f8;
  color: #0e7490;
  border: 1px solid #d3e8eb;
  flex: 0 0 auto;
  min-width: 108px;
}

.rewa-quote__btn--ghost:hover:not(:disabled) {
  background: #e0f1f4;
}

.rewa-quote__privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8aa6ac;
  font-size: 12px;
  margin: 12px 0 0;
  justify-content: center;
}

.rewa-quote__alert {
  display: none;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}

.rewa-quote__alert.is-success {
  display: block;
  background: #eaf8f0;
  color: #1d7a45;
  border: 1px solid #c6e8d4;
}

.rewa-quote__alert.is-error {
  display: block;
  background: #fdf0f0;
  color: #b33a3a;
  border: 1px solid #f0c8c8;
}

.rewa-quote__success {
  display: none;
  text-align: center;
  padding: 18px 8px 8px;
  animation: rewaQuoteIn 0.4s ease;
}

.rewa-quote__success.is-visible {
  display: block;
}

.rewa-quote__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 12px 28px rgba(14, 116, 144, 0.3);
  animation: rewaQuotePop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes rewaQuotePop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.rewa-quote__success h4 {
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #0c3640;
  margin: 0 0 8px;
}

.rewa-quote__success p {
  color: #41646b;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 18px;
}

@media (max-width: 420px) {
  .rewa-quote {
    padding: 22px 16px 18px;
  }

  .rewa-quote__grid--2,
  .rewa-quote__choices,
  .rewa-quote__choices--3,
  .rewa-quote__choices--4 {
    grid-template-columns: 1fr;
  }

  .rewa-quote__step-label {
    font-size: 10px;
  }

  .rewa-quote__nav {
    flex-direction: column-reverse;
  }

  .rewa-quote__btn--ghost {
    width: 100%;
  }
}
