/* Ricerca Codice Immobiliare page */

.bfz-codice-page {
  display: block;
}

.bfz-codice-hero {
  position: relative;
  min-height: clamp(620px, 76vh, 860px);
  padding: clamp(40px, 5vw, 72px) 0;
  background: center/cover no-repeat;
  overflow: hidden;
}

.bfz-codice-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 100% at 50% 40%, rgba(14, 32, 64, 0.24), rgba(14, 32, 64, 0.6)),
    linear-gradient(180deg, rgba(7, 19, 43, 0.18), rgba(7, 19, 43, 0.5));
  pointer-events: none;
}

.bfz-codice-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bfz-codice-card {
  width: min(100%, 600px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(237, 241, 246, 0.74);
  backdrop-filter: blur(9px);
  box-shadow: 0 18px 42px rgba(7, 15, 34, 0.36);
  padding: clamp(30px, 3.2vw, 40px);
}

.bfz-codice-head {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 32px);
}

.bfz-codice-head h1 {
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 700;
  color: #0e2040;
  margin: 0 0 12px;
  line-height: 1.2;
}

.bfz-codice-head p {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* Form styles */
.bfz-codice-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 20px);
}

.bfz-codice-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bfz-codice-input-wrap i {
  position: absolute;
  left: 14px;
  color: #64748b;
  font-size: 1rem;
  pointer-events: none;
}

.bfz-codice-input-wrap input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 1px solid rgba(29, 79, 150, 0.18);
  border-radius: 12px;
  background: #ffffff;
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  color: #0e2040;
  transition: all 0.3s ease;
  font-family: inherit;
}

.bfz-codice-input-wrap input::placeholder {
  color: #94a3b8;
}

.bfz-codice-input-wrap input:focus {
  outline: none;
  border-color: #1d4f96;
  box-shadow: 0 0 0 3px rgba(29, 79, 150, 0.1);
  background: #ffffff;
}

.bfz-codice-input-wrap input:hover:not(:focus) {
  border-color: rgba(29, 79, 150, 0.24);
}

/* Submit button */
.bfz-codice-submit {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4f96 0%, #15366d 100%);
  color: #ffffff;
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.bfz-codice-submit i {
  font-size: 1.1rem;
}

.bfz-codice-submit:hover {
  background: linear-gradient(135deg, #15366d 0%, #0d2348 100%);
  box-shadow: 0 8px 20px rgba(29, 79, 150, 0.3);
  transform: translateY(-2px);
}

.bfz-codice-submit:active {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 575.98px) {
  .bfz-codice-hero {
    min-height: clamp(480px, 60vh, 620px);
    padding: clamp(30px, 4vw, 50px) 0;
  }

  .bfz-codice-card {
    width: calc(100% - 20px);
    padding: clamp(20px, 2.5vw, 28px);
  }

  .bfz-codice-head {
    margin-bottom: clamp(18px, 2.5vw, 24px);
  }

  .bfz-codice-head h1 {
    margin-bottom: 8px;
  }

  .bfz-codice-form {
    gap: 12px;
  }

  .bfz-codice-input-wrap input {
    padding: 12px 12px 12px 40px;
  }

  .bfz-codice-submit {
    padding: 12px 18px;
    font-size: 0.875rem;
  }
}

/* Accessibility */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
