/* ASK Integrations — dynamic office blocks (footer, contact) */

.ask-office-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ask-office-contact li {
  margin: 0 0 0.35em;
}

.ask-office-contact a {
  color: inherit;
  text-decoration: none;
}

.ask-office-contact a:hover {
  text-decoration: underline;
}

.ask-office-contact__heading {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.ask-office-contact--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.ask-office-contact--inline li {
  margin: 0;
}

.ask-office-contact--footer li {
  margin: 0 0 0.5em;
}

.ask-office-footer {
  padding: 2rem 0;
}

.ask-office-footer__name {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.ask-office-footer__tagline {
  margin: 0 0 1rem;
}

.ask-office-footer__form {
  margin: 1.5rem 0;
}

.ask-office-footer__legal {
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ask-office-footer__nav {
  margin: 1.25rem 0;
}

.ask-office-footer__nav-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.ask-office-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ask-office-footer__nav li {
  margin: 0.25rem 0;
}

.ask-office-footer__nav a {
  color: inherit;
  text-decoration: none;
}

.ask-office-footer__nav a:hover {
  text-decoration: underline;
}

.ask-office-footer__copy {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #666;
}

.ask-brokers-wrapper .ask-loading-modern,
.ask-brokers-wrapper .ask-loading-spinner,
.ask-brokers-wrapper .ask-loading-message {
  /* shared with render_vue_shell */
}

.ask-loading-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
}

.ask-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: #333;
  border-radius: 50%;
  animation: ask-office-spin 0.8s linear infinite;
}

@keyframes ask-office-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .ask-brokers-grid {
    grid-template-columns: 1fr !important;
  }

  .ask-office-contact__heading,
  .ask-office-footer__name {
    font-size: 1.35rem;
  }

  .ask-office-footer__tagline,
  .ask-chain-footer__intro {
    font-size: 0.95rem;
  }

  .ask-office-contact--inline {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ask-brokers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Chain hub (/verdivurdering/, /pristilbud/, …) */

.ask-office-hub__form-host {
  margin-top: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
}

.ask-office-hub__form-host .fluentform,
.ask-office-hub__form-host .frm-fluent-form,
.ask-office-footer__form .fluentform,
.ask-office-footer__form .frm-fluent-form {
  max-width: 100%;
}

.ask-office-hub__form-slot[hidden] {
  display: none !important;
}

.ask-office-hub__error {
  padding: 1.5rem;
  text-align: center;
  color: #555;
}

.ask-office-hub__retry {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.ask-office-hub__retry:hover {
  border-color: #999;
}

.ask-office-hub__empty {
  padding: 1.5rem;
  color: #555;
  text-align: center;
}

.ask-office-hub__intro {
  margin: 0 0 1.5rem;
}

.ask-office-hub__contacts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.ask-office-hub__contact-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.ask-office-hub__picker {
  margin: 2rem 0;
}

.ask-office-hub__picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.ask-office-hub__picker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ask-office-hub__picker-card:hover:not(:disabled) {
  border-color: #999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ask-office-hub__picker-card.is-selected {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.ask-office-hub__picker-card.is-disabled,
.ask-office-hub__picker-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ask-office-hub__picker-logo {
  max-width: 80px;
  max-height: 48px;
  object-fit: contain;
}

.ask-office-hub__picker-region {
  font-size: 0.9rem;
  font-weight: 500;
}

.ask-office-hub__picker-soon {
  font-size: 0.75rem;
  color: #666;
}

.ask-office-hub__form-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
}

.ask-office-hub__form-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.ask-office-hub__form-loading {
  padding: 1.5rem;
}

.ask-office-hub__form-fallback {
  margin: 0;
  color: #555;
}

/* Chain footer (ASK Label AS) */

.ask-chain-footer {
  padding: 2rem 0;
}

.ask-chain-footer__intro {
  margin: 0 0 1rem;
}

.ask-chain-footer__contact {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.ask-chain-footer__contact li {
  margin: 0 0 0.35em;
}

.ask-chain-footer__contact a {
  color: inherit;
  text-decoration: none;
}

.ask-chain-footer__contact a:hover {
  text-decoration: underline;
}

.ask-chain-footer__legal {
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ask-chain-footer__nav {
  margin: 1.25rem 0;
}

.ask-chain-footer__nav-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.ask-chain-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ask-chain-footer__nav li {
  margin: 0.25rem 0;
}

.ask-chain-footer__nav a {
  color: inherit;
  text-decoration: none;
}

.ask-chain-footer__nav a:hover {
  text-decoration: underline;
}

.ask-chain-footer__copy {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 768px) {
  .ask-office-hub__contacts {
    grid-template-columns: 1fr;
  }

  .ask-office-hub__picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ask-office-hub__contact-heading,
  .ask-office-hub__form-title {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .ask-office-hub__picker-grid {
    grid-template-columns: 1fr;
  }
}

/* Broker / ansatte profile (/ansatte/{slug}/) */

.ask-broker-profile__hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.ask-broker-profile__photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.ask-broker-profile__name {
  margin: 0 0 0.35rem;
  font-size: 2rem;
  font-weight: 600;
}

.ask-broker-profile__role {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: #444;
}

.ask-broker-profile__office {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #666;
}

.ask-broker-profile__section {
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.ask-broker-profile__section-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.ask-broker-profile__form-intro {
  margin: 0 0 1rem;
  color: #555;
}

@media (max-width: 768px) {
  .ask-broker-profile__hero {
    flex-direction: column;
  }

  .ask-broker-profile__name {
    font-size: 1.5rem;
  }

  .ask-broker-profile__photo img {
    width: 120px;
    height: 120px;
  }
}
