.habboul-af-wrap {
  --habboul-blue: #002668;
  --habboul-yellow: #ffd400;
  --habboul-light: #f3f4f6;
  --habboul-text: #002668;
  --habboul-muted: #5f6b7a;
  max-width: 960px;
  margin: 0 auto;
  color: var(--habboul-text);
}

.habboul-af,
.habboul-af * {
  box-sizing: border-box;
}

.habboul-af-message {
  padding: 18px 22px;
  margin: 0 0 28px;
  font-weight: 600;
}

.habboul-af-message p:last-child {
  margin-bottom: 0;
}

.habboul-af-message--success {
  background: #e7f6ec;
  border-left: 4px solid #2f9e44;
}

.habboul-af-message--error {
  background: #fff1f0;
  border-left: 4px solid #d93025;
  white-space: pre-line;
}

.habboul-af-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: start;
  margin: 0 0 48px;
  position: relative;
}

.habboul-af-steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 14px;
  height: 3px;
  background: #e6e6e6;
  z-index: 0;
}

.habboul-af-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  color: var(--habboul-blue);
}

.habboul-af-step span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  color: var(--habboul-blue);
  border: 2px solid #f1f1f1;
  line-height: 1;
}

.habboul-af-step small {
  font-size: 12px;
  font-weight: 500;
}

.habboul-af-step.is-active span,
.habboul-af-step.is-complete span {
  background: var(--habboul-yellow);
  border-color: var(--habboul-yellow);
}

.habboul-af-panel h2,
.habboul-af-summary-card h2,
.habboul-af-form-card h2 {
  color: var(--habboul-blue);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  margin: 0 0 26px;
}

.habboul-af-subtitle {
  margin-top: 28px !important;
}

.habboul-af-grid {
  display: grid;
  gap: 20px;
}

.habboul-af-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.habboul-af-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.habboul-af-card,
.habboul-af-form-card,
.habboul-af-summary-card {
  background: var(--habboul-light);
  padding: 28px;
  min-height: 100%;
}

.habboul-af-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.18s ease, box-shadow 0.18s ease, outline-color 0.18s ease;
  outline: 2px solid transparent;
}

.habboul-af-card:hover,
.habboul-af-card.is-selected {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 38, 104, 0.08);
  outline-color: var(--habboul-yellow);
}

.habboul-af-image-wrap {
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  background: #e8e8e8;
}

.habboul-af-card-image {
  width: 100%;
  height: 140px;
  display: block;
  object-fit: cover;
}

.habboul-af-card h3 {
  color: var(--habboul-blue);
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.habboul-af-card p {
  color: var(--habboul-text);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}


.habboul-af-card-bottom {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.habboul-af-card-bottom .habboul-af-button {
  margin-top: 0;
}

.habboul-af-card .habboul-af-button {
  margin-top: auto;
}

.habboul-af-price {
  color: var(--habboul-blue);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  margin: 2px 0 4px;
}

.habboul-af-vat {
  font-size: 13px !important;
  margin-bottom: 24px !important;
}

.habboul-af-button {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: var(--habboul-yellow);
  color: var(--habboul-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  min-height: 42px;
  padding: 12px 24px;
  text-decoration: none;
}

.habboul-af-button:hover,
.habboul-af-button:focus {
  filter: brightness(0.96);
  color: var(--habboul-blue);
}

.habboul-af-back {
  background: transparent;
  border: 0;
  color: var(--habboul-blue);
  cursor: pointer;
  font-weight: 800;
  margin: 0 0 20px;
  padding: 0;
}

.habboul-af-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}

.habboul-af-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.habboul-af-fields label,
.habboul-af-payment-options label,
.habboul-af-terms {
  color: var(--habboul-blue);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.habboul-af-label-line {
  display: block;
  line-height: 1.35;
}

.habboul-af-fields small {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.habboul-af-fields input,
.habboul-af-fields textarea {
  border: 1px solid #e0e3e8;
  background: #fff;
  color: #111;
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.habboul-af-fields textarea {
  min-height: 110px;
  resize: vertical;
}

.habboul-af-span-2 {
  grid-column: 1 / -1;
}

.habboul-af-payment-options {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.habboul-af-payment-options label,
.habboul-af-terms {
  align-items: center;
  background: #fff;
  flex-direction: row;
  min-height: 42px;
  padding: 10px 12px;
}

.habboul-af-payment-options input,
.habboul-af-terms input {
  margin: 0 8px 0 0;
}

.habboul-af-terms {
  background: transparent;
  padding-left: 0;
}

.habboul-af-submit {
  margin-top: 8px;
}

.habboul-af-summary-card {
  position: sticky;
  top: 110px;
}

.habboul-af-summary-card p {
  margin: 0 0 14px;
  color: var(--habboul-blue);
}

@media (max-width: 849px) {
  .habboul-af-grid--3,
  .habboul-af-grid--2,
  .habboul-af-final-grid,
  .habboul-af-fields {
    grid-template-columns: 1fr;
  }

  .habboul-af-steps {
    margin-bottom: 34px;
  }

  .habboul-af-step small {
    font-size: 11px;
  }

  .habboul-af-card,
  .habboul-af-form-card,
  .habboul-af-summary-card {
    padding: 24px;
  }

  .habboul-af-summary-card {
    position: static;
  }
}
