/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Temporary - for dev stage only, remove in live
 ---------------------------------------------------------------*/
.single-post .wp-block-template-part {
  display: none;
}

/* Variables
 ---------------------------------------------------------------*/
:root {
  --odd-bg: rgba(0, 0, 0, 2%);
  --even-bg: rgba(0, 0, 0, 1%);
}

/* Form Containers
--------------------------------------------------------*/
/* .evaluation-form-container {
  border: 1px solid #eeee;
  padding: 2% 3%;
  border-radius: 15px;
} */
.calculated-evalution-container {
  box-shadow: 0 0 7px rgb(0 0 0 / 15%);
  padding: 50px 30px;
  border-radius: 5px;
  margin-top: 20px;
  font-size: 1.1em;
}
.evaluation-form-container form > div:nth-child(odd) {
  background-color: var(--odd-bg);
}
.evaluation-form-container form > div:nth-child(even) {
  background-color: var(--even-bg);
}
.evaluation-form-container form > div {
  padding: 25px;
  border-radius: 10px;
  font-size: 1.2em;
}
.calculated-evalution-container h5 {
  font-size: 1.15em;
}
.page-id-2081 .btn-wrapper {
  margin-top: 20px;
}

/* Form Buttons
--------------------------------------------------------*/
.evaluation-form-container button,
.calculated-evalution-container button {
  outline: none;
  border: none;
  padding: 10px 30px;
  margin-top: 20px;
  cursor: pointer;
  background: green;
  color: #fff;
  font-weight: bold;
  border-radius: 20px;
}
.evaluation-form-container button:hover,
.calculated-evalution-container button:hover {
  box-shadow: 0 0 7px rgb(0 0 0 / 50%);
}
.btn-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
}

/* Form Fields
--------------------------------------------------------*/
.evaluation-field {
  display: flex;
  flex-direction: column;
}
.evaluation-form-container :where(input[type="text"], input[type="email"]),
.calculated-evalution-container
  :where(input[type="text"], input[type="email"]) {
  border: none;
  border-bottom: 1px solid #000;
  margin-bottom: 20px;
  padding-top: 20px;
  font-size: 1em;
}
.evaluation-form-container
  :where(input[type="text"], input[type="email"]):focus,
.calculated-evalution-container
  :where(input[type="text"], input[type="email"]):focus {
  outline: none;
  border-bottom: 2px solid #000;
}
.calculated-evalution-container
  :where(input[type="text"], input[type="email"]) {
  width: 50%;
}
.evaluation-mcq {
  margin-top: 12px;
}
.evaluation-mcq > div {
  margin-bottom: 5px;
  padding-left: 12px;
}

/* Evaluation Questions
--------------------------------------------------------*/
.evaluation-question {
  margin-bottom: 30px;
}

/* Checkbox
--------------------------------------------------------*/
.evaluation-form-container input[type="checkbox"] {
  position: relative;
  cursor: pointer;
}

.evaluation-form-container input[type="checkbox"]:after {
  content: "";
  width: 22px;
  height: 22px;
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  border: 2px solid #000;
  left: -4px;
  top: -3px;
}

.evaluation-form-container input[type="checkbox"]:checked:after,
.evaluation-form-container input[type="checkbox"]:hover:after,
.evaluation-mcq > div:hover input[type="checkbox"]:after {
  background-image: url(/wp-content/plugins/evaluation-calc/public/img/check.png);
  background-size: cover;
  border: 2px solid lightgreen;
}

.evaluation-mcq > div > label {
  cursor: pointer;
}

/* Time Meter
--------------------------------------------------------*/
.main-calc {
  display: flex;
  flex-direction: row;
  column-gap: 20px;
}
.time-estimate.left-box {
  border-right: 1px solid rgba(0, 0, 0, 30%);
  width: 90%;
  padding-right: 40px;
}
.time-estimate {
  display: flex;
  flex-direction: column;
}
.right-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  position: relative;
  max-height: 400px;
  height: 400px;
  min-height: 400px;
  max-width: 125px;
}
#time_meter {
  transform: rotate(-90deg);
  width: 225%;
}
.right-box meter {
  display: flex;
  align-items: center;
}
.right-box meter:before {
  content: "";
  width: 35px;
  height: 35px;
  left: -33px;
  border-radius: 50%;
  background-color: #aa2423;
  box-shadow: 0 5px 5px -5px #333 inset;
  position: absolute;
  z-index: 2;
}
.right-box h5 {
  text-align: center;
  white-space: nowrap;
}
.outer-meter {
  position: absolute;
  width: 50px;
  height: 325px;
  bottom: 16px;
  border-radius: 25px;
  background-color: rgba(87, 89, 90, 20%);
}
meter::-webkit-meter-bar {
  background: none; /* Required to get rid of the default background property */
  background-color: whiteSmoke;
  box-shadow: 0 5px 5px -5px #333 inset;
}
meter::-webkit-meter-optimum-value {
  background-color: #aa2423;
  box-shadow: 0 5px 5px -5px #333 inset;
}
.outer-meter:before {
  content: "--- 200 hrs";
  position: absolute;
  white-space: nowrap;
  font-size: 0.8em;
  left: 32px;
  top: 12px;
}
.outer-meter:after {
  content: "16 hrs ---";
  position: absolute;
  white-space: nowrap;
  font-size: 0.8em;
  left: -36px;
  bottom: 39px;
}
.right-box > h5 {
  visibility: hidden;
}
/*-- NEW METER --*/
.ev-meter {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
}
.ev-circle {
  width: 40px;
  height: 40px;
  background-color: #aa2423;
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
}
.ev-line {
  height: 80%;
  width: 12px;
  position: absolute;
  bottom: 40px;
  border-radius: 25px;
  border: 2px solid #000;
}
.ev-line > div {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-radius: 25px;
  background-color: #aa2423;
  height: 0%;
  transition: all 0.3s ease;
}

/* Content
--------------------------------------------------------*/
.initial--content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 40px;
}
.initial--content img {
  width: 40%;
}
.initial--content h4 {
  margin: 0;
}
.initial--content p {
  opacity: 0.8;
  font-size: 1.1em;
  max-width: 75%;
}
.initial--content h5 {
  margin: 10px;
  opacity: 0.6;
  text-transform: capitalize;
}
.initial--content h4 {
  font-size: 2em;
  font-weight: normal;
  margin-bottom: 8px;
}

/* Thank you page
--------------------------------------------------------*/
.thank.you.message {
  background-color: rgba(88, 88, 88, 5%);
  padding: 5px 20px;
  border-radius: 25px;
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 20px;
  margin-top: 25px;
}

.thank.you.message h5 {
  text-transform: none;
  font-weight: 500;
}

.btn-refresh.tu {
  text-align: center;
}

/* Evaluation Calc Page
-------------------------------------------------------*/
.page-id-2081 h1 {
  display: none;
}

/* Loading Screen
-------------------------------------------------------*/
.loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 80%);
  color: #fff;
}

.loading-screen .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.loading-screen .inner img {
  width: 50px;
}

/*-- RESULT PAGE
---------------------------_*/
@media (max-width: 468px) {
  .main-calc {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }
  .calculated-evalution-container h5:first-child {
    font-size: 1em;
  }
}
