/*
 * Fluently Home — Profile Builder
 *
 * Home/Profile-specific presentation only.
 * Shared Fluently foundations live in fluently.css.
 */


/* ==========================================================================
   Profile invitation
   ========================================================================== */

.home-profile-invitation {
  max-width: 640px;
  margin-top: 34px;
  padding-top: 24px;

  border-top: 1px solid var(--line, #ddd8ce);
}

.home-profile-kicker {
  margin: 0 0 5px;

  color: var(--ink, #171714);

  font-weight: 800;
}

.home-profile-copy {
  margin: 0;

  color: var(--muted, #625f58);
  line-height: 1.5;
}

.home-profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 18px;
}


/* ==========================================================================
   Shared Home buttons
   ========================================================================== */

.home-primary-button,
.home-primary-link,
.profile-secondary-button,
.home-text-button,
.profile-close,
.traveller-remove,
.profile-language-button {
  font: inherit;
}

.home-primary-button,
.home-primary-link {
  display: inline-block;

  border: 1px solid var(--ink, #171714);
  border-radius: 999px;

  background: var(--ink, #171714);
  color: #fff;

  padding: 11px 18px;

  font-weight: 750;
  text-decoration: none;

  cursor: pointer;
}

.home-text-button {
  border: 0;
  background: transparent;
  color: var(--muted, #625f58);

  padding: 10px 4px;

  font-weight: 700;

  cursor: pointer;
}


/* ==========================================================================
   Profile Builder
   ========================================================================== */

.profile-builder,
.profile-saved {
  margin-top: 38px;

  border: 1px solid var(--line, #ddd8ce);
  border-radius: 24px;

  background: var(--white, #fff);

  padding: clamp(20px, 4vw, 36px);

  box-shadow: 0 12px 38px #0000000d;
}

.profile-builder[hidden],
.profile-saved[hidden] {
  display: none;
}

.profile-builder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;

  padding-bottom: 24px;

  border-bottom: 1px solid var(--line, #ddd8ce);
}

.profile-builder-eyebrow,
.profile-saved-label {
  margin: 0 0 6px;

  color: var(--accent, #3158d8);

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-builder-header h2,
.profile-saved h2 {
  margin: 0;

  color: var(--ink, #171714);

  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.profile-builder-header p {
  max-width: 620px;
  margin: 8px 0 0;

  color: var(--muted, #625f58);
  line-height: 1.5;
}

.profile-close {
  flex: 0 0 auto;

  width: 38px;
  height: 38px;

  border: 1px solid var(--line, #ddd8ce);
  border-radius: 50%;

  background: transparent;
  color: var(--muted, #625f58);

  font-size: 24px;
  line-height: 1;

  cursor: pointer;
}


/* ==========================================================================
   Profile sections
   ========================================================================== */

.profile-section {
  padding: 28px 0;

  border-bottom: 1px solid var(--line, #ddd8ce);
}

.profile-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;

  margin-bottom: 20px;
}

.profile-step {
  display: grid;
  place-items: center;

  flex: 0 0 28px;

  width: 28px;
  height: 28px;

  border-radius: 50%;

  background: var(--ink, #171714);
  color: #fff;

  font-size: 13px;
  font-weight: 800;
}

.profile-section-heading h3 {
  margin: 2px 0 3px;

  font-size: 18px;
}

.profile-section-heading p {
  margin: 0;

  color: var(--muted, #625f58);
  font-size: 14px;
}

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


/* ==========================================================================
   Fields
   ========================================================================== */

.profile-field {
  display: grid;
  gap: 7px;
}

.profile-field > span,
.profile-field-label {
  color: var(--ink, #171714);

  font-size: 13px;
  font-weight: 750;
}

.profile-field input,
.profile-field select,
.profile-other-language select {
  width: 100%;

  border: 1px solid #cbc6bb;
  border-radius: 12px;

  background: #fff;
  color: var(--ink, #171714);

  padding: 12px 13px;

  font: inherit;
}

.profile-field input:focus,
.profile-field select:focus,
.profile-other-language select:focus {
  outline: 2px solid
    color-mix(
      in srgb,
      var(--accent, #3158d8) 25%,
      transparent
    );

  outline-offset: 1px;
}


/* ==========================================================================
   Practice language
   ========================================================================== */

.profile-language-choice {
  margin-top: 20px;

  padding: 18px;

  border-radius: 16px;

  background: var(--soft, #f5f2eb);
}

.profile-language-choice[hidden] {
  display: none;
}

.profile-language-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 9px;
}

.profile-language-button {
  border: 1px solid #cbc6bb;
  border-radius: 999px;

  background: #fff;
  color: var(--ink, #171714);

  padding: 9px 15px;

  font-weight: 750;

  cursor: pointer;
}

.profile-language-button.is-selected {
  border-color: var(--ink, #171714);

  background: var(--ink, #171714);
  color: #fff;
}

.profile-other-language {
  max-width: 360px;

  margin-top: 18px;
}

.profile-other-language label {
  display: block;

  margin-bottom: 7px;
}


/* ==========================================================================
   Travellers
   ========================================================================== */

.traveller-list {
  display: grid;
  gap: 12px;

  margin-bottom: 14px;
}

.traveller-row {
  display: grid;
  grid-template-columns:
    minmax(130px, 0.7fr)
    minmax(180px, 1.3fr)
    auto;
  align-items: end;
  gap: 12px;
}

.traveller-remove {
  width: 42px;
  height: 42px;

  border: 1px solid #cbc6bb;
  border-radius: 50%;

  background: #fff;
  color: #777268;

  font-size: 21px;

  cursor: pointer;
}

.profile-secondary-button {
  border: 1px solid #cbc6bb;
  border-radius: 999px;

  background: #fff;
  color: var(--ink, #171714);

  padding: 9px 15px;

  font-weight: 750;

  cursor: pointer;
}


/* ==========================================================================
   Practice voice
   ========================================================================== */

.profile-voice-status {
  margin: 0 0 12px;
  color: var(--muted, #625f58);
  font-size: 14px;
}

.profile-voice-status:empty {
  display: none;
}

.profile-voice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-voice-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #cbc6bb;
  border-radius: 14px;
  background: #fff;
  padding: 8px 10px 8px 14px;
}

.profile-voice-option.is-selected {
  border-color: var(--ink, #171714);
  box-shadow: inset 0 0 0 1px var(--ink, #171714);
}

.profile-voice-select,
.profile-voice-listen {
  font: inherit;
  cursor: pointer;
}

.profile-voice-select {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink, #171714);
  padding: 8px 0;
  text-align: start;
}

.profile-voice-select strong {
  font-size: 15px;
}

.profile-voice-listen {
  flex: 0 0 auto;
  border: 1px solid #cbc6bb;
  border-radius: 999px;
  background: var(--soft, #f5f2eb);
  color: var(--ink, #171714);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 750;
}

.profile-voice-listen:disabled {
  cursor: default;
  opacity: 0.45;
}


/* ==========================================================================
   Essentials
   ========================================================================== */

.essential-options {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.essential-option {
  position: relative;

  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 58px;

  border: 1px solid #cbc6bb;
  border-radius: 14px;

  background: #fff;

  padding: 12px;

  cursor: pointer;
}

.essential-option input {
  flex: 0 0 auto;

  width: 18px;
  height: 18px;

  accent-color: var(--ink, #171714);
}

.essential-option span {
  font-size: 14px;
  font-weight: 750;
}

.essential-option small {
  display: block;

  margin-top: 2px;

  color: var(--muted, #777268);

  font-size: 11px;
  font-weight: 600;
}

.essential-option.is-coming {
  background: var(--soft, #f5f2eb);
}


/* ==========================================================================
   Save / saved profile
   ========================================================================== */

.profile-save {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;

  padding-top: 26px;
}

.profile-saved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.profile-saved p {
  margin: 8px 0 0;

  color: var(--muted, #625f58);
  line-height: 1.5;
}

.profile-saved-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 700px) {
  .profile-grid,
  .profile-voice-options,
  .essential-options {
    grid-template-columns: 1fr;
  }

  .traveller-row {
    grid-template-columns: 1fr auto;
  }

  .traveller-row
    .profile-field:first-child {
    grid-column: 1 / -1;
  }

  .profile-saved {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .profile-builder,
  .profile-saved {
    border-radius: 18px;
    padding: 18px;
  }

  .profile-builder-header {
    gap: 12px;
  }

  .traveller-row {
    grid-template-columns: 1fr auto;
  }
}