/* Registration section */
#registration {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: var(--accent-color-lgray);
	background-size: cover;
  background-position: center;
  color: var(--text-color-main);
  font-family: Arial, sans-serif;
}

/* Headings and paragraph */
.h1, .p {
  margin: .5em auto;
  text-align: center;
}

/* Form container */
.ccform {
  width: 60vw;
  max-width: 500px;
  min-width: 300px;
  margin: 0 auto;
  padding-bottom: 2em;
}

/* Fieldsets */
.ccfieldset {
  border: none;
  padding: 2rem 0;
  border-bottom: 3px solid #3b3b4f;
}

.ccfieldset:last-of-type {
  border-bottom: none;
}

/* Labels */
.cclabel {
  display: block;
  margin: 0.5rem 0;
  font-weight: bold;
}

/* Inputs, textareas, selects */
.ccinput,
.cctextarea,
.ccselect {
  width: 100%;
  min-height: 2em;
  margin: 0.5em 0 1em 0;
  padding: 0.5em;
  font-size: 1rem;
  border-radius: 4px;
  box-sizing: border-box;
	color: black;
}

.ccinput,
.cctextarea {
  background-color: var(--accent-color-brown);
  border: 1px solid var(--accent-color-brown);
  color: #ffffff;
}

.ccinput:focus,
.cctextarea:focus,
.ccselect:focus {
  outline: 2px solid #f5f6f7;
  outline-offset: 2px;
}

/* Inline elements (checkboxes/radios) */
.ccinline {
  width: unset;
  margin: 0 0.5em 0 0;
  vertical-align: middle;
}

.ccinput[type="radio"] {
  
  background-color: var(--accent-color-brown);
}

/* Submit button */
.ccinput[type="submit"] {
  display: block;
  width: 60%;
  min-width: 300px;
  margin: 1em auto;
  height: 2.5em;
  font-size: 1.1rem;
  background-color: var(--accent-color-brown);
  color: #f5f6f7;
  border: 1px solid white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.ccinput[type="submit"]:hover,
.ccinput[type="submit"]:focus {
  background-color: #5a5a70;
  transform: scale(1.05);
  outline: none;
}

/* File input */
.ccinput[type="file"] {
  padding: 1px 2px;
  border-radius: 4px;
}

/* Change the "Choose File" text color */
input[type="file"]::file-selector-button {
  color: black; 
}

/* Password hint popup */
.password-hint {
  display: none;
  margin-top: 0.25rem;
  padding: 1.2rem 0.75rem;
  font-size: 0.85rem;
  line-height: 1.3;
  background-color: var(--accent-color-dgray);
  color: #ffffff;
  border-radius: 4px;
  position: relative;
}

/* Small arrow */
.password-hint::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 10px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

/* Show hint when typing or focused */
.ccinput:focus + .password-hint,
.ccinput:not(:placeholder-shown) + .password-hint {
  display: block;
}
