/* Sandrine Gluck — callback request */

.sg-contact__callback {
  display: inline-flex;
  margin-top: 28px !important;
}

.sg-callback {
  width: min(520px, calc(100% - 32px));
  max-width: 520px;
  max-height: calc(100dvh - 20px);
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  color: var(--sg-charcoal);
}

.sg-callback::backdrop {
  background: rgba(0, 0, 0, .58);
}

.sg-callback__panel {
  position: relative;
  padding: 38px 38px 32px;
  background: var(--sg-offwhite);
  border: 1px solid rgba(179, 161, 138, .55);
}

.sg-callback__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sg-black);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sg-callback__eyebrow {
  margin: 0 0 14px;
  color: var(--sg-beige);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sg-callback__title {
  margin: 0 42px 14px 0;
  color: var(--sg-black);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.sg-callback__intro {
  margin: 0 0 26px;
  color: var(--sg-text-medium);
  font-size: 16px;
  line-height: 1.55;
}

.sg-callback__form {
  display: grid;
  gap: 16px;
}

.sg-callback__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sg-callback__field label {
  color: var(--sg-charcoal);
  font-size: 13px;
}

.sg-callback__field label span {
  color: var(--sg-text-medium);
}

.sg-callback__field input {
  width: 100%;
  min-height: 49px;
  padding: 13px 14px;
  border: 1px solid rgba(65, 65, 65, .45);
  border-radius: 0;
  background: rgba(255, 255, 255, .55);
  color: var(--sg-black);
  font: inherit;
  font-size: 16px;
}

.sg-callback__field input:focus-visible,
.sg-callback__close:focus-visible,
[data-sg-callback-open]:focus-visible {
  outline: 2px solid var(--sg-black);
  outline-offset: 3px;
}

.sg-callback__hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.sg-callback__status {
  min-height: 0;
  font-size: 14px;
  line-height: 1.45;
}

.sg-callback__status--success {
  color: #486b42;
}

.sg-callback__status--error {
  color: #9b3d3d;
}

.sg-callback__submit {
  justify-self: start;
}

.sg-callback__privacy,
.sg-callback__call {
  margin: 0;
  color: var(--sg-text-medium);
  font-size: 12px;
  line-height: 1.5;
}

.sg-callback__call {
  margin-top: 2px;
  font-size: 13px;
}

.sg-callback__call a,
.sg-callback__privacy a {
  color: inherit;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .sg-contact__callback {
    width: 100%;
  }

  .sg-callback {
    width: calc(100% - 20px);
  }

  .sg-callback__panel {
    padding: 30px 20px 24px;
  }

  .sg-callback__title {
    font-size: 30px;
  }

  .sg-callback__submit {
    width: 100% !important;
  }
}

/* Shared secondary callback action */
.sg-callback-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.sg-callback-trigger:hover {
  opacity: .75;
}

/* Light-background contact zones: one outlined callback component */
[data-sg-callback-open][data-sg-location="contact"],
[data-sg-callback-open][data-sg-location="business-contact"],
[data-sg-callback-open][data-sg-location="home-contact"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 48px;
  padding: 13px 22px !important;
  box-sizing: border-box;
  border: 1px solid #222 !important;
  background: transparent !important;
  color: #222 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

[data-sg-callback-open][data-sg-location="contact"]:hover,
[data-sg-callback-open][data-sg-location="business-contact"]:hover,
[data-sg-callback-open][data-sg-location="home-contact"]:hover,
[data-sg-callback-open][data-sg-location="contact"]:focus-visible,
[data-sg-callback-open][data-sg-location="business-contact"]:focus-visible,
[data-sg-callback-open][data-sg-location="home-contact"]:focus-visible {
  border-color: #222 !important;
  background: #222 !important;
  color: #fff !important;
  opacity: 1;
}

/* Family contact form: same primary beige submit treatment as the other LPs */
.sg-family-page .sgf-contact .sgf-submit-line .sgf-btn[type="submit"] {
  min-height: 48px;
  padding: 14px 22px;
  background: var(--sgf-beige, #b3a18a);
  color: #fff;
  white-space: nowrap;
  text-align: center;
}

/* Family hero callback: same secondary text treatment as Portrait/Entreprise */
.sg-family-page .sgf-hero-secondary .sg-callback-trigger {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 560px) {
  [data-sg-callback-open][data-sg-location="contact"],
  [data-sg-callback-open][data-sg-location="business-contact"],
  [data-sg-callback-open][data-sg-location="home-contact"],
  .sg-family-page .sgf-contact .sgf-submit-line .sgf-btn[type="submit"] {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }
}
