/* ===================================
   WRAPPER
=================================== */

.wrapper {
  width: 78%;
  margin: auto;
}

/* ===================================
   CARD
=================================== */

.card {
  background: linear-gradient(145deg,
      #A7319F 0%,
      #9c2f96 100%);

  border-radius: 6px;
  padding: 22px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* ===================================
   GRID
=================================== */

.topGrid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}

/* ===================================
   IMAGE
=================================== */

/* ===================================
   IMAGE WRAPPER
=================================== */

.imageWrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, .1);
}

.layer {
  position: relative;
  display: block;     
  width: 100%;       
  height: auto;      
}

.imageWrapper {
  position: relative;
  width: 100%;
}

.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; 
  opacity: 0;
  transition: .25s ease;
}

.base {
  opacity: 1;
  position: relative;
}

.active {
  opacity: 1;
}

/* ===================================
   PANEL
=================================== */

.panel {
  background: rgba(0, 0, 0, .18);

  border: 1px solid rgba(255, 255, 255, .08);

  border-radius: 14px;

  padding: 16px;

  margin-top: 15px;
}

.panelTitle {
  font-size: 13px;
  font-weight: 700;

  letter-spacing: .4px;
  text-transform: uppercase;

  color: #13A2B0;
}

/* ===================================
   AREA HEADER
=================================== */

.areaHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
  margin-bottom: 14px;
}

.areaActions {
  display: flex;
  gap: 8px;
}

/* ===================================
   SMALL BUTTONS
=================================== */

.smallBtn,
.smallBtnOutline {

  border: none;

  height: 32px;

  padding: 0 12px;

  border-radius: 8px;

  font-size: 12px;
  font-weight: 600;

  transition: .2s ease;
}

.smallBtn {
  background: #13A2B0;
  color: #fff;
}

.smallBtn:hover {
  opacity: .9;
}

.smallBtnOutline {
  background: transparent;
  border: 1px solid #555;
  color: #fff;
}

.smallBtnOutline:hover {
  border-color: #13A2B0;
  color: #13A2B0;
}

/* ===================================
   AREA GRID
=================================== */

.areaGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.areaOption {
  position: relative;
  cursor: pointer;
}

.areaOption input {
  display: none;
}

.areaOption span {

  height: 48px;

  border-radius: 10px;

  background: #222;

  border: 1px solid #3a3a3a;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-weight: 700;

  transition: .2s ease;
}

.areaOption input:checked+span {
  background: #13A2B0;
  border-color: #13A2B0;

  color: #fff;

  transform: scale(1.03);
}

/* ===================================
   TYPE GRID
=================================== */

.typeGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.typeCard {

  background: #1f1f1f;

  border-radius: 12px;

  padding: 12px;

  text-align: center;

  border: 1px solid #333;

  cursor: pointer;

  transition: .2s ease;

  color: #fff;

  position: relative;
}

.typeCard span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.typeCard input {
  display: none;
}

.typeCard:hover {
  transform: translateY(-2px);
}

.activeType {
  border-color: #13A2B0;
  background: rgba(19, 162, 176, .15);
}

.typeImg {
  width: 70px;
  height: 70px;

  object-fit: cover;

  border-radius: 10px;

  margin-bottom: 4px;
}

/* ===================================
   LABELS
=================================== */

.inputLabel {
  display: block;

  font-size: 12px;
  font-weight: 600;

  margin-bottom: 6px;

  color: #d8d8d8;
}

/* ===================================
   FORM
=================================== */

.panel .form-control,
.panel .form-select {

  background: #242424;

  border: 1px solid #3b3b3b;

  color: #fff;

  height: 46px;
}

.panel .form-control:focus,
.panel .form-select:focus {

  background: #242424;

  color: #fff;

  border-color: #13A2B0;

  box-shadow: 0 0 0 .15rem rgba(19, 162, 176, .2);
}

.panel .form-select option {
  background: #1f1f1f;
  color: #fff;
}

/* ===================================
   RESULT
=================================== */

.result {

  margin-top: 18px;

  background: #0e0e0e;

  border-radius: 16px;

  padding: 22px;

  text-align: center;

  border: 2px dashed #13A2B0;

  color: #fff;
}

.resultNumber {

  font-size: 3rem;

  font-weight: 800;

  color: #13A2B0;

  line-height: 1;
}

.resultText {
  margin-top: 8px;
  font-size: 15px;
  opacity: .9;
}

.resultInfo {

  margin-top: 14px;

  display: flex;

  justify-content: center;

  gap: 20px;

  flex-wrap: wrap;
}

.resultInfo strong {
  color: #13A2B0;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 992px) {

  .wrapper {
    width: 95%;
  }

  .topGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {

  .card {
    padding: 14px;
  }

  .areaGrid {
    grid-template-columns: repeat(4, 1fr);
  }

  .typeImg {
    width: 60px;
    height: 60px;
  }

  .resultNumber {
    font-size: 2.2rem;
  }
}