/* =========================================================
   SASOL AI INDABA - PROFILE PAGE
   Brand Palette:
   Pantone 295   #003961
   Bright Blue   #2C93D9
   Process Black #131210
   White         #FFFFFF
   Pantone 428   #CCD7DD
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.profile-page {
  --sasol-primary: #003961;
  --sasol-blue: #2C93D9;
  --sasol-black: #131210;
  --sasol-white: #FFFFFF;
  --sasol-grey: #CCD7DD;

  --sasol-dark: #002B49;
  --sasol-deep: #001E33;

  --sasol-muted: rgba(204, 215, 221, 0.72);
  --sasol-line: rgba(204, 215, 221, 0.25);

  position: relative;

  min-height: 100vh;
  margin: 0;

  overflow-x: hidden;

  color: var(--sasol-white);


  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(44, 147, 217, 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(44, 147, 217, 0.08),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      var(--sasol-deep) 0%,
      var(--sasol-primary) 55%,
      var(--sasol-dark) 100%
    );

  background-attachment: fixed;
}


/* =========================================================
   HIDDEN ELEMENTS
   ========================================================= */

body.profile-page .is-hidden,
body.profile-page img[hidden],
body.profile-page p[hidden],
body.profile-page fieldset[hidden],
body.profile-page span[hidden] {
  display: none !important;
}


/* =========================================================
   DIGITAL GRID BACKGROUND
   ========================================================= */

body.profile-page::before {
  content: "";

  position: fixed;
  inset: 0;

  z-index: 0;

  opacity: 0.11;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(44, 147, 217, 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(44, 147, 217, 0.18) 1px,
      transparent 1px
    );

  background-size: 70px 70px;

  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      black 50%,
      black
    );

  transform:
    perspective(600px)
    rotateX(62deg)
    scale(1.5)
    translateY(28%);

  transform-origin: bottom;
}


/* =========================================================
   EDGE DARKENING
   ========================================================= */

body.profile-page::after {
  content: "";

  position: fixed;
  inset: 0;

  z-index: 1;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center,
      transparent 40%,
      rgba(19, 18, 16, 0.55) 100%
    );
}


/* =========================================================
   HEADER
   ========================================================= */

body.profile-page .brand {
  position: relative;

  z-index: 10;

  display: flex;
  align-items: center;
 justify-content: flex-start;


  padding: 28px 42px;

  background: transparent;
}

body.profile-page .brand-name {
  color: var(--sasol-white);

  font-size: 29px;
  font-weight: 700;

  letter-spacing: -1.5px;

  text-shadow:
    0 0 25px rgba(44, 147, 217, 0.25);
}

body.profile-page .brand img {
  width: 120px;
  height: auto;

  object-fit: contain;

  display: block;
}


/* =========================================================
   LAYOUT
   ========================================================= */

body.profile-page .page {
  position: relative;

  z-index: 5;

  display: flex;
  justify-content: center;

  padding: 10px 24px 60px;

  background: transparent;
}


/* =========================================================
   PROFILE CARD
   ========================================================= */

body.profile-page .profile-card {
  width: 100%;
  max-width: 640px;

  padding: 40px 36px;

  border: 1px solid var(--sasol-line);
  border-radius: 6px;

  background:
    rgba(0, 57, 97, 0.82);

  backdrop-filter: blur(12px);

  box-shadow:
    0 18px 50px rgba(19, 18, 16, 0.25);

  color: var(--sasol-white);

  text-align: left;
}


/* =========================================================
   PROFILE TITLE
   ========================================================= */

body.profile-page #profile-title {
  margin: 0 0 24px;

  text-align: center;

  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;

  letter-spacing: -1px;

  color: var(--sasol-white);
}


/* =========================================================
   AVATAR
   ========================================================= */

body.profile-page .initials-avatar {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 88px;
  height: 88px;

  margin: 0 auto 32px;

  border: 2px solid var(--sasol-blue);
  border-radius: 50%;

  background: var(--sasol-primary);

  box-shadow:
    0 0 28px rgba(44, 147, 217, 0.28),
    inset 0 0 20px rgba(44, 147, 217, 0.12);

  color: var(--sasol-white);

  font-size: 30px;
  font-weight: 700;

  letter-spacing: 1px;
}


/* =========================================================
   TEXT INPUTS
   ========================================================= */

body.profile-page .details {
  display: grid;

  gap: 14px;

  margin-bottom: 28px;
}

body.profile-page .details input {
  width: 100%;

  padding: 14px 16px;

  border: 1px solid var(--sasol-line);
  border-radius: 4px;

  background: var(--sasol-deep);

  color: var(--sasol-white);

  font-size: 15px;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

body.profile-page .details input::placeholder {
  color: rgba(204, 215, 221, 0.60);
}

body.profile-page .details input:focus {
  outline: none;

  border-color: var(--sasol-blue);

  box-shadow:
    0 0 0 3px rgba(44, 147, 217, 0.18);
}

body.profile-page .details input:read-only {
  opacity: 0.72;

  cursor: not-allowed;
}


/* =========================================================
   FIELDSETS
   ========================================================= */

body.profile-page fieldset {
  margin: 0 0 26px;

  padding: 20px 20px 12px;

  border: 1px solid var(--sasol-line);
  border-radius: 6px;

  background:
    rgba(44, 147, 217, 0.04);
}

body.profile-page legend {
  max-width: 100%;

  padding: 0 8px;

  color: var(--sasol-blue);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 1.5px;
  line-height: 1.5;

  text-transform: uppercase;
}


/* =========================================================
   RADIO OPTIONS
   ========================================================= */

body.profile-page .radio-label {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 8px;

  padding: 10px 12px;

  border-left: 3px solid transparent;
  border-radius: 3px;

  color: var(--sasol-white);

  font-size: 14px;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

body.profile-page .radio-label:hover {
  background:
    rgba(44, 147, 217, 0.10);

  border-left-color:
    var(--sasol-blue);
}

body.profile-page .radio-label input,
body.profile-page .agreement input,
body.profile-page .session-dialog-option input {
  flex-shrink: 0;

  width: 18px;
  height: 18px;

  margin: 0;

  accent-color:
    var(--sasol-blue);

  cursor: pointer;
}


/* =========================================================
   PICK-UP SITE (shown when transport is required)
   ========================================================= */

body.profile-page .pickup-site-field {
  margin: 4px 0 8px;
}

body.profile-page .pickup-site-field select {
  width: 100%;

  padding: 14px 44px 14px 16px;

  border: 1px solid var(--sasol-line);
  border-radius: 4px;

  background:
    var(--sasol-deep)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232C93D9' stroke-width='2'/%3E%3C/svg%3E")
    no-repeat right 16px center;

  color: var(--sasol-white);

  font-size: 15px;

  appearance: none;

  cursor: pointer;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

body.profile-page .pickup-site-field select:focus {
  outline: none;

  border-color: var(--sasol-blue);

  box-shadow:
    0 0 0 3px rgba(44, 147, 217, 0.18);
}

body.profile-page .pickup-site-field option {
  background: var(--sasol-deep);

  color: var(--sasol-white);
}


/* =========================================================
   SESSION ROWS
   ========================================================= */

body.profile-page .session {
  display: grid;

  grid-template-columns:
    1fr auto;

  align-items: center;

  gap: 16px;

  margin-bottom: 10px;

  padding: 14px 16px;

  border-left:
    3px solid
    rgba(44, 147, 217, 0.38);

  background:
    rgba(44, 147, 217, 0.05);
}

body.profile-page .session.has-selection {
  border-left-color:
    var(--sasol-blue);

  background:
    rgba(44, 147, 217, 0.12);
}

body.profile-page .session-label {
  color:
    var(--sasol-white);

  font-size: 14px;

  line-height: 1.5;
}


/* =========================================================
   SESSION TRIGGER BUTTON
   ========================================================= */

body.profile-page .session-trigger {
  padding: 10px 14px;

  border:
    1px solid
    rgba(204, 215, 221, 0.34);

  border-radius: 4px;

  background:
    var(--sasol-dark);

  color:
    var(--sasol-white);

  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

body.profile-page .session-trigger:hover {
  border-color:
    var(--sasol-blue);

  background:
    var(--sasol-primary);

  box-shadow:
    0 0 18px
    rgba(44, 147, 217, 0.20);
}

body.profile-page .session.has-selection .session-trigger {
  border-color:
    var(--sasol-blue);

  color:
    var(--sasol-white);
}


/* =========================================================
   SESSION DIALOG
   ========================================================= */

body.profile-page .session-dialog {
  width:
    min(560px, 92vw);

  padding: 28px;

  border:
    1px solid
    rgba(204, 215, 221, 0.30);

  border-radius: 6px;

  background:
    var(--sasol-primary);

  box-shadow:
    0 20px 60px
    rgba(19, 18, 16, 0.45);

  color:
    var(--sasol-white);
}

body.profile-page .session-dialog::backdrop {
  background:
    rgba(19, 18, 16, 0.75);

  backdrop-filter:
    blur(4px);
}

body.profile-page .session-dialog h2 {
  margin:
    0 0 18px;

  color:
    var(--sasol-white);

  font-size: 15px;

  line-height: 1.5;
}


/* =========================================================
   SESSION DIALOG OPTIONS
   ========================================================= */

body.profile-page .session-dialog-option {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  margin-bottom: 8px;

  padding: 12px;

  border-left:
    3px solid transparent;

  border-radius: 3px;

  color:
    var(--sasol-grey);

  font-size: 14px;

  line-height: 1.5;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

body.profile-page .session-dialog-option:hover {
  background:
    rgba(44, 147, 217, 0.12);

  border-left-color:
    var(--sasol-blue);
}


/* =========================================================
   SESSION DIALOG BUTTONS
   ========================================================= */

body.profile-page .session-dialog-actions {
  display: flex;

  justify-content:
    flex-end;

  gap: 12px;

  margin-top: 20px;
}

body.profile-page .session-dialog-actions button {
  padding: 12px 20px;

  border:
    1px solid
    rgba(204, 215, 221, 0.35);

  border-radius: 4px;

  background:
    var(--sasol-dark);

  color:
    var(--sasol-white);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 2px;

  cursor: pointer;
}

body.profile-page .session-dialog-actions button:hover {
  border-color:
    var(--sasol-blue);
}

body.profile-page
.session-dialog-actions
button:last-child {
  border-color:
    var(--sasol-blue);

  background:
    var(--sasol-blue);
}


/* =========================================================
   AGREEMENT
   ========================================================= */

body.profile-page .agreement {
  display: flex;

  align-items: flex-start;

  gap: 12px;

  width: 100%;

  margin-bottom: 28px;

  color:
    var(--sasol-muted);

  font-size: 14px;

  line-height: 1.6;
}

body.profile-page .agreement label {
  cursor: pointer;
}

body.profile-page .agreement a {
  color:
    var(--sasol-blue);

  font-weight: 700;
}

body.profile-page .agreement a:hover {
  color:
    var(--sasol-white);
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

body.profile-page .primary-button {
  display: block;

  width: 100%;

  clear: both;

  padding: 16px 22px;

  border:
    1px solid
    var(--sasol-blue);

  border-radius: 4px;

  background:
    var(--sasol-blue);

  color:
    var(--sasol-white);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 2px;

  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

body.profile-page
.primary-button:hover:not(:disabled) {
  transform:
    translateY(-2px);

  background:
    var(--sasol-white);

  border-color:
    var(--sasol-white);

  color:
    var(--sasol-primary);

  box-shadow:
    0 10px 28px
    rgba(19, 18, 16, 0.20);
}

body.profile-page .primary-button:disabled {
  opacity: 0.6;

  cursor: wait;
}


/* =========================================================
   STATUS MESSAGE
   ========================================================= */

body.profile-page .status-message {
  margin: 18px 0 0;

  padding: 12px 16px;

  border-left:
    3px solid
    var(--sasol-blue);

  background:
    rgba(44, 147, 217, 0.10);

  color:
    var(--sasol-white);

  font-size: 14px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

body.profile-page .sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

body.profile-page .event-copy {
  position: relative;

  z-index: 5;

  padding:
    10px 24px 50px;

  text-align: center;

  color:
    var(--sasol-muted);

  background:
    transparent;
}

body.profile-page .event-copy h2 {
  margin:
    0 0 8px;

  color:
    var(--sasol-white);

  font-size: 22px;
}

body.profile-page .event-copy p {
  margin: 0;

  color:
    var(--sasol-white);

  font-size: 14px;

  line-height: 1.7;

  letter-spacing: normal;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  body.profile-page .brand {
    padding:
      20px;
  }

  body.profile-page .brand img {
    width:
      95px;
  }

  body.profile-page .page {
    padding:
      10px 16px 50px;
  }

  body.profile-page .profile-card {
    padding:
      28px 18px;
  }

  body.profile-page #profile-title {
    font-size:
      32px;
  }

  body.profile-page .initials-avatar {
    width:
      74px;

    height:
      74px;

    font-size:
      25px;
  }

  body.profile-page .session {
    grid-template-columns:
      1fr;
  }

  body.profile-page .session-trigger {
    justify-self:
      start;

    white-space:
      normal;
  }

  body.profile-page .session-dialog {
    padding:
      22px 18px;
  }

  body.profile-page
  .session-dialog-actions {
    flex-wrap:
      wrap;
  }

  body.profile-page
  .session-dialog-actions button {
    flex:
      1;
  }
}