/*
BARVY:

#ffdab9
#fbc4ab
#f8ad9d
#f4978e
#f08080
*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    background: #ffdab9;
    padding-top: 50px;
}

#bgwrapper{
  position: relative;
  float: right;
  margin-top: -200px;
  z-index: -1;
}

#bgwrapper2{
  position: relative;
  margin-bottom: -300px;
  z-index: -1;
}

#bgpeach{
    width: 300px;
    height: auto;
}

#contentwrapper{
  width: 95%;
  max-width: 800px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-flow: column;
  margin: 0 auto;
}

#logowrapper{
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
  padding: 0 10px;
}

#logo{
    width: 100%;
    height: auto;
}

#formwrapper{
  width: 100%;
  max-width: 700px;
  min-height: 300px;
  background-color: rgb(244, 244, 244);
  border-radius: 10px;
  padding: 18px;
  box-shadow: rgba(0, 0, 0, 0.18) 0px 4px 18px;
}

#legaltext{
    width: 100%;
    margin-top: 30px;
}

#legaltext p{
    text-align: center;
}

#legaltext span, #legaltext a{
    color: #f4978e;
    text-decoration: underline;
}

.infotext{
    margin-bottom: 30px;
    text-align: center;
}
.infotext p{
    margin-bottom: 20px;
}

.infotext ul{
    text-align: left;
    display: inline-block;
    margin-bottom: 20px;
    list-style-type: decimal;
}
.infotext ul li{
    margin-bottom: 10px;
    
}

.infotext.bottom{
    text-align: left;
}

.infotext h1{
    margin-bottom: 10px;
}
.infotext h2{
    margin-bottom: 15px;
    font-style: italic;
    font-weight: normal;
}

.infotext h3{
    margin-bottom: 15px;
}

input[type="text"]{
    width: 100%;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #f4978e;
    padding-left: 10px;
    font-size: 16px;
    margin-bottom: 20px;
}
input[type="text"]:focus{
    outline: none;
    border: 1px solid #f08080;
}
input[type="submit"]{
    width: 100%;
    height: 60px;
    border-radius: 5px;
    border: none;
    background-color: #f4978e;
    color: white;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 30px;
}
input[type="submit"]:hover{
    background-color: #f08080;
}
input[type="submit"]:active{
    background-color: #fbc4ab;
}
input[type="submit"]:disabled{
    background-color: #f8ad9d;
    cursor: not-allowed;
}
input[type="submit"]:disabled:hover{
    background-color: #f8ad9d;
}
input[type="submit"]:disabled:active{
    background-color: #f8ad9d;
}

/* Button style that matches the full-width submit button */
button.submit-like{
  width: 100%;
  height: 60px;
  border-radius: 5px;
  border: none;
  background-color: #f4978e;
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin-bottom: 30px;
  margin-top: 50px;
}
button.submit-like:hover{
  background-color: #f08080;
}
button.submit-like:active{
  background-color: #fbc4ab;
}
button.submit-like:disabled{
  background-color: #f8ad9d;
  cursor: not-allowed;
}

input[type="file"]{
    width: 100%;
    height: 40px;
    border-radius: 5px;
    border: 1px solid #f4978e;
    padding-left: 10px;
    font-size: 16px;
    margin-bottom: 20px;
}
input[type="file"]:focus{
    outline: none;
    border: 1px solid #f08080;
}  

input[type="radio"]{
    margin-right: 10px;
}

/* Custom radio button styles */
.custom-radio {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-right: 20px;
  font-size: 16px;
  position: relative;
}

.custom-radio input[type="radio"] {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.custom-radio .radio-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #f4978e;
  background: #fff;
  margin-right: 10px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-radio input[type="radio"]:checked + .radio-mark {
  border-color: #f08080;
  background: #fbc4ab;
}

.custom-radio .radio-mark::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f4978e;
  opacity: 0;
  transition: opacity 0.2s;
}

.custom-radio input[type="radio"]:checked + .radio-mark::after {
  opacity: 1;
  background: #f08080;
}

/* Custom checkbox styles */
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  position: relative;
}

.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}

.custom-checkbox .checkbox-mark {
  width: 22px;
  height: 22px;
  border: 2px solid #f4978e;
  background: #fff;
  margin-right: 10px;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-mark {
  border-color: #f08080;
  background: #fbc4ab;
}

.custom-checkbox .checkbox-mark::after {
  content: "✓";
  color: #f4978e;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-mark::after {
  opacity: 1;
  color: #f08080;
}

#ratingoptions{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#ageconfirmation, #sexuality {
    margin-bottom: 30px;
    text-align: center;
}

/* Age confirmation popup styles */
#age-popup-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(255, 218, 185, 0.95); /* #ffdab9 with opacity */
  display: flex;
  align-items: center;
  justify-content: center;
}

#age-popup {
  background: #fbc4ab;
  border-radius: 16px;
  box-shadow: 0 0 30px #f4978e88;
  padding: 40px 30px 30px 30px;
  text-align: center;
  max-width: 350px;
  border: 2px solid #f4978e;
}

#age-popup h2 {
  color: #f08080;
  margin-bottom: 18px;
  font-size: 2em;
}

#age-popup p {
  color: #1f1f1f;
  margin-bottom: 28px;
  font-size: 1.1em;
}

#age-confirm-btn {
  background: #f4978e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

#age-confirm-btn:hover {
  background: #f08080;
}


.custom-file-label {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #aaa;
    border-radius: 10px;
    width: 180px;
    height: 180px;
    cursor: pointer;
    margin-bottom: 1em;
    background: #fafafa;
    transition: border-color 0.2s;
    position: relative;
    font-family: inherit;
}
.custom-file-label:hover {
    border-color: #888;
}
.custom-file-label input[type="file"] {
    display: none;
}
.plus-icon {
    font-size: 4em;
    color: #888;
    line-height: 1;
    pointer-events: none;
}
.file-label-text {
    margin-top: 0.5em;
    color: #555;
    font-size: 1em;
    pointer-events: none;
}
.custom-file-label {
    position: relative;
    overflow: hidden;
}
.custom-file-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: none;
    position: absolute;
    top: 0; left: 0;
}
.custom-file-label.has-image .plus-icon,
.custom-file-label.has-image .file-label-text {
    display: none;
}
.custom-file-label.has-image .custom-file-preview {
    display: block;
}
.replace-overlay {
    display: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.7);
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    font-size: 2em;
    color: #1f1f1f;
    z-index: 2;
    transition: background 0.2s;
}
.custom-file-label.has-image:hover .replace-overlay {
    display: flex;
}
.replace-overlay i {
    pointer-events: none;
}

/* Mobile-first adjustments */
@media (max-width: 600px) {
  body{
    padding-top: 20px;
  }
  #bgwrapper2{
    display: none;
  }
  #bgwrapper{
    float: none;
    margin: 0 ;
    display: flex;
    justify-content: center;
  }
  #contentwrapper{
    width: 100%;
    padding: 0 8px;
  }
  #formwrapper{
    padding: 16px;
    min-height: auto;
  }
  .infotext p{
    font-size: 18px;
  }

  
  input[type="text"], input[type="file"]{
    height: 44px;
    font-size: 15px;
  }
  input[type="submit"], button.submit-like{
    height: 52px;
    font-size: 18px;
  }
  .custom-file-label{
    width: 100%;
    height: 140px;
  }
  .plus-icon{ font-size: 3rem; }
  .file-label-text{ font-size: 0.95rem; }
  #ratingoptions{ justify-content: flex-start; gap: 12px; padding-left: 6px; }
  .custom-radio, .custom-checkbox{ font-size: 15px; margin-right: 12px; }
  #age-popup{ max-width: 320px; padding: 20px; }
  #age-popup h2{ font-size: 1.4em; }
}

@media (max-width: 380px) {
  .custom-file-label{ height: 120px; }
  .plus-icon{ font-size: 2.4rem; }
  input[type="text"], input[type="file"]{ font-size: 14px; }
  input[type="submit"]{ font-size: 16px; }
  .infotext p{ font-size: 14px; }
}