/* =====================================================
   RESET
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #1f2d47;
}


/* =====================================================
   HIDDEN ELEMENTS
===================================================== */

[hidden] {
  display: none !important;
}


/* =====================================================
   HEADER
===================================================== */

.header {
  width: 100%;
  background: #1f4e79;
  color: #ffffff;
  padding: 18px 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  width: 115px;
  height: auto;
  display: block;
}

.title-area h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.title-area p {
  font-size: 13px;
  opacity: 0.8;
}


/* =====================================================
   PREPARATION STATE
===================================================== */

.preparation-state {
  width: 100%;
  min-height: calc(100vh - 86px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 20px;
}


/* =====================================================
   PREPARATION CARD
===================================================== */

.preparation-card {
  width: 100%;
  max-width: 520px;

  background: #ffffff;

  border: 1px solid #e4e7ec;
  border-radius: 10px;

  padding: 40px;

  box-shadow:
    0 8px 28px rgba(16, 24, 40, 0.08);
}


/* =====================================================
   PREPARATION HEADER
===================================================== */

.preparation-header {
  margin-bottom: 32px;
}

.preparation-header h2 {
  font-size: 24px;
  font-weight: 600;

  color: #1f2d47;

  margin-bottom: 10px;
}

.preparation-header p {
  font-size: 15px;
  line-height: 1.6;

  color: #667085;
}


/* =====================================================
   FORM
===================================================== */

#demoForm {
  width: 100%;
}

.form-group {
  width: 100%;
  margin-bottom: 22px;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  font-size: 13px;
  font-weight: 600;

  color: #344054;
}

.form-group input {
  width: 100%;
  height: 46px;

  padding: 0 14px;

  border: 1px solid #d0d5dd;
  border-radius: 6px;

  background: #ffffff;
  color: #1f2d47;

  font-family: inherit;
  font-size: 15px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: #98a2b3;
}

.form-group input:hover {
  border-color: #98a2b3;
}

.form-group input:focus {
  border-color: #1f4e79;

  box-shadow:
    0 0 0 3px rgba(31, 78, 121, 0.10);
}


/* =====================================================
   FORM ERROR
===================================================== */

.form-error {
  min-height: 20px;

  margin-top: -4px;
  margin-bottom: 14px;

  font-size: 13px;
  line-height: 1.4;

  color: #b42318;
}


/* =====================================================
   CONTINUE BUTTON
===================================================== */

.continue-button {
  width: 100%;
  min-height: 48px;

  border: none;
  border-radius: 6px;

  background: #1f4e79;
  color: #ffffff;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.continue-button:hover {
  background: #193f63;

  box-shadow:
    0 5px 14px rgba(31, 78, 121, 0.18);
}

.continue-button:active {
  transform: translateY(1px);
}

.continue-button:disabled {
  cursor: default;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}


/* =====================================================
   LIVE STATE
===================================================== */

.main {
  width: 100%;
  min-height: calc(100vh - 86px);
}


/* =====================================================
   ACTIVE LIVE SESSION LAYOUT
===================================================== */

.live-session-content {
  width: 100%;
  min-height: calc(100vh - 86px);

  display: grid;
  grid-template-columns: 1fr 380px;
}


/* =====================================================
   LIVE AREA
===================================================== */

.live-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 40px;
  position: relative;
}

.live-title {
  font-size: 15px;
  font-weight: 600;

  color: #667085;

  margin-bottom: 28px;
}


/* =====================================================
   START TALK BUTTON
===================================================== */

.talk-button {
  width: 190px;
  height: 190px;

  border-radius: 50%;
  border: none;

  background: #1f4e79;
  color: #ffffff;

  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;

  cursor: pointer;

  box-shadow:
    0 10px 30px rgba(31, 78, 121, 0.22);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.talk-button:hover {
  transform: translateY(-3px);

  box-shadow:
    0 14px 36px rgba(31, 78, 121, 0.30);
}

.talk-button:active {
  transform: translateY(0);
}

.talk-button.live {
  background: #a73535;
}

.talk-button:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}


/* =====================================================
   LIVE STATUS
===================================================== */

.session-status {
  margin-top: 30px;

  min-height: 28px;

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

  font-size: 14px;

  color: #667085;
}

.live-indicator {
  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: #c5cbd3;

  display: none;
}

.live-indicator.active {
  display: block;

  background: #c63f3f;
}

.timer {
  display: none;

  font-weight: 600;

  color: #344054;
}

.timer.active {
  display: inline;
}


/* =====================================================
   SCENARIO PANEL
===================================================== */

.mission-panel {
  background: #ffffff;

  border-left: 1px solid #e4e7ec;

  padding: 42px 32px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mission-section + .mission-section {
  margin-top: 32px;
  padding-top: 28px;

  border-top: 1px solid #eaecf0;
}

.mission-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;

  color: #1f4e79;

  margin-bottom: 14px;
}

.scenario-title {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;

  color: #1f2d47;
}

.mission-text {
  font-size: 15px;
  line-height: 1.65;

  color: #344054;
}


/* =====================================================
   FEEDBACK STATE
===================================================== */

.feedback-state {
  width: 100%;
  min-height: calc(100vh - 86px);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 60px 24px;
}


/* =====================================================
   FEEDBACK CONTAINER
===================================================== */

.feedback-container {
  width: 100%;
  max-width: 820px;
}


/* =====================================================
   FEEDBACK HEADER
===================================================== */

.feedback-header {
  text-align: center;

  margin-bottom: 30px;
}

.feedback-label {
  display: inline-block;

  margin-bottom: 14px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;

  color: #1f4e79;
}

.feedback-header h2 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;

  color: #1f2d47;

  margin-bottom: 12px;
}

.feedback-header p {
  font-size: 15px;
  line-height: 1.6;

  color: #667085;
}


/* =====================================================
   FEEDBACK CARD
===================================================== */

.feedback-card {
  width: 100%;

  background: #ffffff;

  border: 1px solid #e4e7ec;
  border-left: 5px solid #1f4e79;
  border-radius: 10px;

  padding: 34px 38px;

  box-shadow:
    0 8px 28px rgba(16, 24, 40, 0.08);
}


/* =====================================================
   FEEDBACK TEXT
===================================================== */

.feedback-text {
  font-size: 16px;
  line-height: 1.8;

  color: #344054;

  white-space: pre-line;
}


/* =====================================================
   TABLET / MOBILE
===================================================== */

@media (max-width: 768px) {

  .header {
    padding: 16px 20px;
  }

  .brand img {
    width: 100px;
  }

  .title-area h1 {
    font-size: 19px;
  }


  /* -------------------------------------------------
     PREPARATION
  ------------------------------------------------- */

  .preparation-state {
    min-height: calc(100vh - 78px);

    padding: 28px 18px;
  }

  .preparation-card {
    max-width: 100%;

    padding: 30px 24px;
  }

  .preparation-header h2 {
    font-size: 22px;
  }


  /* -------------------------------------------------
     LIVE SESSION
  ------------------------------------------------- */

  .live-session-content {
    min-height: calc(100vh - 78px);

    display: flex;
    flex-direction: column;
  }

  .mission-panel {
    order: 1;

    border-left: none;
    border-bottom: 1px solid #e4e7ec;

    padding: 28px 22px;
  }

  .mission-section + .mission-section {
    margin-top: 24px;
    padding-top: 24px;
  }

  .scenario-title {
    font-size: 18px;
  }

  .mission-text {
    font-size: 15px;
  }

  .live-area {
    order: 2;

    min-height: 430px;

    padding: 40px 20px;
  }

  .talk-button {
    width: 165px;
    height: 165px;

    font-size: 16px;
  }


  /* -------------------------------------------------
     FEEDBACK
  ------------------------------------------------- */

  .feedback-state {
    min-height: calc(100vh - 78px);

    padding: 44px 20px;
  }

  .feedback-container {
    max-width: 680px;
  }

  .feedback-header h2 {
    font-size: 27px;
  }

  .feedback-card {
    padding: 30px 28px;
  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

  .header {
    padding: 14px 16px;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    width: 90px;
  }

  .title-area h1 {
    font-size: 18px;
  }

  .title-area p {
    font-size: 12px;
  }


  /* -------------------------------------------------
     PREPARATION
  ------------------------------------------------- */

  .preparation-state {
    padding: 20px 14px;
  }

  .preparation-card {
    padding: 26px 20px;
  }

  .preparation-header {
    margin-bottom: 26px;
  }

  .preparation-header h2 {
    font-size: 21px;
  }

  .preparation-header p {
    font-size: 14px;
  }

  .form-group {
    margin-bottom: 19px;
  }

  .form-group input {
    height: 46px;
    font-size: 16px;
  }


  /* -------------------------------------------------
     SCENARIO
  ------------------------------------------------- */

  .mission-panel {
    padding: 24px 18px;
  }

  .scenario-title {
    font-size: 17px;
  }


  /* -------------------------------------------------
     LIVE
  ------------------------------------------------- */

  .live-area {
    min-height: 380px;
  }

  .talk-button {
    width: 150px;
    height: 150px;
  }


  /* -------------------------------------------------
     FEEDBACK
  ------------------------------------------------- */

  .feedback-state {
    padding: 34px 16px;
    align-items: flex-start;
  }

  .feedback-header {
    text-align: left;
    margin-bottom: 24px;
  }

  .feedback-header h2 {
    font-size: 24px;
  }

  .feedback-header p {
    font-size: 14px;
  }

  .feedback-card {
    padding: 26px 22px;

    border-left-width: 4px;
  }

  .feedback-text {
    font-size: 15px;
    line-height: 1.75;
  }

}
