/* Reset dan normalisasi elemen form */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Gaya dasar untuk semua elemen input form */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
input,
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  margin: 0 0 16px;
  font-size: 1rem;
  border: unset;
  border-bottom: 1px solid #aa4126;
  transition: border-color 0.3s ease;
  background: unset;
  background: unset;
  font-weight: bold;
}

/* Hover state */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover {
  /* border-color: #aaa; */
}

/* Focus state */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {outline: 0;}

/* Gaya untuk textarea */
textarea {
  min-height: 120px;
  resize: vertical; /* Boleh diubah ke horizontal atau none */
}

/* Gaya untuk elemen pilihan */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1em;
}

/* Gaya untuk checkbox dan radio */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  margin: 5px;
  cursor: pointer;
}

/* Styling untuk custom checkbox (opsional) */
.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.custom-checkbox:before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 2px solid #4a90e2;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .custom-checkbox:before {
  background-color: #4a90e2;
}

.custom-checkbox input[type="checkbox"]:checked + .custom-checkbox:before:after {
  content: 'ÃƒÂ¢Ã…â€œÃ¢â‚¬Å“';
  position: absolute;
  color: white;
  font-size: 14px;
  display: block;
  text-align: center;
  line-height: 14px;
}

/* Gaya untuk tombol */
button,
input[type="submit"],
input[type="button"] {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
}

button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: scale(0.98);
}

/* Gaya untuk label */
label {
  display: block;
  margin-bottom: 4px;
  color: #333;
  font-weight: 500;
}

/* Responsif */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  textarea,
  select {
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-top: 0;
    padding-top: 5;
    font-weight: bold;
  }
  
  button,
  input[type="submit"],
  input[type="button"] {
    padding: 10px 20px;
  }
}

label {
    display: block;
    width: 100%;
}

.btn-primary {
    background-color: #aa4126 !important;
    outline: 0 !important;
    border: 1px solid #aa4126 !important;
    padding-left: 10px!important;
    padding-right: 10px!important;
}

#phone {
    outline: none;
}

.message {
    text-align: center;
    padding: 10px;
    font-weight: 700;
    font-size: 14px;
}

button#show-register-form:active {
    background: #aa4126;
}

input#email:focus-visible {
    outline: 0;
}