/* -------------------------------------------------------
   GLOBAL PAGE STYLES
-------------------------------------------------------- */

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f7f8fa;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* -------------------------------------------------------
   FORM WRAPPER
-------------------------------------------------------- */

.form-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 420px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

h2 {
  margin-bottom: 20px;
  color: #222;
  font-weight: 600;
}

.hint {
  margin-top: -5px;
  margin-bottom: 15px;
  color: #666;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
  color: #333;
}

/* -------------------------------------------------------
   INPUTS
-------------------------------------------------------- */

input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: border 0.2s;
}

  input[type="text"]:focus {
    border-color: #2ecc71;
    outline: none;
  }

/* -------------------------------------------------------
   RESET BUTTON
-------------------------------------------------------- */

#resetBtn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 25px;
  background-color: #2ecc71;
  color: white;
  font-size: 16px;
  margin-top: 25px;
  cursor: pointer;
  transition: 0.25s;
}

  #resetBtn:hover {
    background-color: #27ae60;
  }

/* -------------------------------------------------------
   AUTOCOMPLETE BOX
-------------------------------------------------------- */

.suggestions {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  margin-top: -10px;
  margin-bottom: 12px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 30;
  position: absolute;
  width: 380px;
}

.suggestion {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
}

  .suggestion:hover {
    background: #f7f7f7;
  }

/* -------------------------------------------------------
   TOGGLE SWITCH
-------------------------------------------------------- */

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px;
}

.toggle-label {
  font-weight: 500;
  user-select: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cfcfcf;
  transition: 0.3s;
  border-radius: 34px;
}

  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  }

.switch input:checked + .slider {
  background-color: #2ecc71;
}

  .switch input:checked + .slider:before {
    transform: translateX(24px);
  }
