:root {
  font-family: 'Ubuntu', sans-serif;
  font-size: 16px;
}


/* SITE SPECIFIC */

img.bgimage {
  width: 150vw;
  margin-left: -25vw;
  margin-top: 70px;
}

@media screen and (min-width: 1100px) {
  img.bgimage {
    width: 100vw;
    margin-left: 0vw;
    margin-top: 70px;
  }
}

#applyform-content-wrap {
  --margin-top: 68px;
  --panel-border-radius: 12px;
  --input-border-radius: 4px;
  --panel-width: 400px;
  --accent-color: #005dc9;
  --accent-color-shadow: #005dc933;
  --panel-background: hsl(210, 9%, 94%);
}

/*  */

* { 
  box-sizing: border-box;
}
body { 
  margin: 0; padding: 0;
  background: #ffffff;
/*  background-image: linear-gradient(0deg, #c0d4e8, #3b94ed);*/
}

#save-form {
  width: 240px;
  margin: 0 auto 1rem;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--input-border-radius);
  border: 0;
  box-shadow: -2px 5px 20px #00000033;
  transition: 300ms ease-out; 
  cursor: pointer;
}
#save-form:hover {
  color: var(--accent-color);
  box-shadow: -2px 5px 20px var(--accent-color-shadow);
}

#applyform-content-wrap a {
  text-decoration: none;
  color: var(--accent-color);
  border-bottom: 1px solid var(--accent-color-shadow);
}
#applyform-content-wrap a:hover {
  border-bottom: 1px solid var(--accent-color);
}

#applyform-content-wrap {
  width: 100%;
  height: 100vh;
  height: auto;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
}
#applyform-content {
  width: 100%;
  max-width: var(--panel-width);
/*  margin: var(--margin-top) auto 0;*/
  margin: 0 auto 0;
}

#applyform {
  margin-top: 0rem;
  padding-bottom: 2rem;
}

/*
[data-af], [data-if], [data-pf], [data-tf] {
  border: 3px solid #aaa;
}
[data-af="1"] {
  border-top: 6px solid blue !important;
}
[data-if="1"] {
  border-right: 6px solid limegreen !important;
}
[data-pf="1"] {
  border-bottom: 6px solid orange !important;
}
[data-tf="1"] {
  border-left: 6px solid purple !important;
}
*/

#applyform-chooser {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem auto;
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 3;
}
button[data-applyforbutton] {
  padding: 0.5rem 0.5rem;
  border-radius: var(--input-border-radius);
  border: 0;
  background: #ffffffaa;
}
button[data-applyforbutton].active {
  background: #fff;
}

#upload input, 
.formsection .input input, 
.formsection .input textarea {
  box-shadow: none;
  margin-left: 0rem;
}

.asset { margin-top: -1rem;}

.asset h4 {
  
}

.radio-button-list {}
.radio-button-list label {}
.radio-button-list label input {
  display: none;
}
.radio-button-list label input + span {
  display: inline-block;
  background: none;
  border-radius: var(--input-border-radius);
  padding: 0.25rem 0.5rem;
  border: 1px solid #999;
  color: #999;
}
.radio-button-list label input:checked + span {
  background: #fff;
  border-radius: var(--input-border-radius);
  border-color: var(--brand);
  color: var(--brand);
}



ol {
  margin-left: 1rem;
}
ol li {
  list-style: lower-alpha;
  font-size: 1rem;
  color: var(--text);
}

.hide { display: none !important; }

.formsection {
  border: 3px solid #00000033;
  background: var(--panel-background);
  padding: 1rem;
  margin-bottom: 2rem;
  flex-direction: column;
  border-radius: var(--input-border-radius);
  opacity: 0.7;
  display: none !important;
  box-shadow: 0 8px 40px -10px #00000044;
}
.formsection.active {
  display: flex;
  border: 3px solid #ffffff77;
  
  opacity: 1;
  display: flex !important;
}
.formsection.hide {
  display: flex;
  opacity: 0.5;
  filter: invert();
}
#applyform .formsection > h4 {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 1.1;
  margin: 0;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  color: #EC5764;
  text-transform: uppercase;
}

#applyform-progress {
  position: fixed;
  left: 0;
  top: calc(var(--margin-top));
  width: 100%;
  z-index: 2;
/*  background-image: linear-gradient(0deg, #3b94ed00 0%,#3b94ed 60%)*/
}


#progress-bar {
/*  border: 1px solid lime;*/
  width: var(--panel-width);
  margin: 0.5rem auto;
  display: block;
}
#progress {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  align-items: center;
  width: 100%;
/*  border: 1px solid hotpink;*/
}

.progress-pip {
  padding: 0.4rem;
  border: 2px solid #196bbe;
  border-radius: 2rem;
}
.pip-fill {
  background: #013f7e;
  box-shadow: 0 0 10px 3px #91c2f4;
  border-radius: 2rem;
}
.pip-current {
  border: 2px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 0 10px 3px #d9ebfd;
  border-radius: 2rem;
  animation: pipAnim 1s linear forwards;
  transform-origin: center;
}
.pip-clear {
  backdrop-filter: blur( 2px );
  background: #00000011;
  box-shadow: 0 0 10px 3px #04386d44;
}
@keyframes pipAnim {
  from {
    transform: scale(0.6);
  } to {
    transform: scale(1.2);
  }
}

#applyform h4 {
  margin-top: 2rem;
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--text);
}
.input {
  display: flex;
  flex-direction: column;
  
  margin-top: 1rem;
  margin-bottom: 0rem;
}
label {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.25rem;
}
input, textarea {
  border: 0;
  font-size: 1.1rem;
  padding: 0.25rem 0.4rem;
  border-radius: var(--input-border-radius);
  box-shadow: inset 1px 3px 5px var(--text), 1px 1px 1px white, -1px -1px 1px #00000033;
  color: #515151;
}
input:focus-within, 
textarea:focus-within,
select:focus-within {
  border: 0;
  outline: 0;
  background: #ebfaff;
  color: #121c65;
}
input {}
textarea {}

select {
  padding: 0.25rem;
  border-radius: var(--input-border-radius);
  line-height: 1.5;
}

.buttons {
  width: 100%;
  display: flex;
  justify-content: center;
}
.add-asset-buttons button,
.buttons > button {
  border-radius: var(--input-border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #999;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 1.0rem;
  color: var(--text);
}
.add-asset-buttons button .fa,
.buttons > button .fa {
  margin-right: 0.5rem;
}
.add-asset-buttons button:hover,
.buttons > button:hover {
  border: 1px solid var(--accent-color);
  background: #f9f9f9;
}
.add-asset-buttons button:hover .fa,
.buttons > button:hover .fa {
  color: var(--accent-color);
}

.pageButtons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
.sectionButtons {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: var(--input-border-radius);
  background: #f3f3f3;
  box-shadow: 0 1px 3px #00000022;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  cursor: pointer;
}
.sectionButtons:hover {
  color: var(--accent-color);
  box-shadow: 0 1px 3px var(--accent-color-shadow);
  background: #f9f9f9;
}
.add-asset-buttons,
.add-address-button,
.add-director-button {
  margin-top: 1rem;
  display: flex;
/*  justify-content: flex-end;*/
}

.fa-chevron-left {
  margin-right: 0.5rem;
}
.fa-chevron-right {
  margin-left: 0.5rem;
}

.list {
  display: flex;
  flex-direction: row;
}

.list .fa-circle {
  display: inline-block;
  margin-right: 0.5rem;
  transform: scale(0.75);
  color: var(--text);
}



#dropzone {
  border: 3px dashed var(--accent-color-shadow);
  padding: 2rem;
  border-radius: var(--input-border-radius);
  margin: 0 1rem 1rem;
}

#dropzone > p {
  text-align: center;
}

#dropzone.dropzone {
  border: 3px dashed #999;
}
#dropzone.dragover {
  border-color: var(--accent-color);
  background: #fff;
}

#dropzone #file {
  visibility: hidden;
  width: 100%;
}
#dropzone #file::before {
  display: block;
  width: 100px;
  text-align: center;
  visibility: visible;
  content: 'choose files';
  background: linear-gradient(top, #f9f9f9, #e3e3e3);
  border: 1px solid #999;
  border-radius: 3px;
  padding: 5px 8px;
  outline: none;
  white-space: nowrap;
  -webkit-user-select: none;
  cursor: pointer;
  text-shadow: 1px 1px #fff;
  font-weight: 500;
  font-size: 1rem;
  margin: 0 auto;
}
#dropzone #file:hover::before {
  border-color: var(--text);
}
#dropzone #file:active::before {
  background: linear-gradient(top, #e3e3e3, #f9f9f9);
}

#uploaded .file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ddd;
  padding-right: 1rem
}

#uploaded .file-name {
  width: 100%;
  padding: 4px;
  color: var(--text);
  font-size: 0.8rem;
}
#uploaded .file-ext {
  display: none;
}
#uploaded .file-preview {
}
#uploaded .file-preview img {
  height: 50px;
  width: 50px;
  object-fit: cover;
}

#clearSavedContent {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 68px;
  left: 0px;
  z-index: 3;
  padding: 8px auto;
  width: 125px;
  background: #00000000;
  border-radius: 0 0 var(--input-border-radius) 0;
  transition: background 0.5s ease-out;
  box-shadow: 2px 2px 6px #00000033;
  
}
#clearSavedContent.active {
  display: flex;
}
#clearSavedContent.active:hover {
  display: flex;
  background: #ee0000dd;
  box-shadow: 2px 2px 6px #00000011;
}
#clearSavedContent.active.hidden:hover {
  display: flex;
  background: #00000077;
}
#clearSavedContent > button {
  padding: 8px;
  background: none;
  border: 0;
  color: #e9e9e9;
  cursor: pointer;
}
#clearSavedContent #clearSavedContentConfirm {
  display: flex;
  align-items: center;
  justify-content: center;
}
#clearSavedContent #clearSavedContentConfirm button {
  display: none;
  padding: 8px;
  border: 1px solid #515151;
  background: #ffffffaa;
/*  border-radius: var(--input-border-radius);*/
}
#clearSavedContent.hidden #clearSavedContentConfirm button {
  display: flex;
  cursor: pointer;
}
#clearSavedContent.hidden #clearSavedContentConfirm button:nth-of-type(2) {
  border-radius:  0 0 var(--input-border-radius) 0;
}
#clearSavedContent.hidden #clearSavedContentConfirm button:hover {
  background: #ffffffee;
}