/* =========================================================
   ARTIST APPLICATION FORM (Clean / Branded)
   ========================================================= */

.page-background {
  background-image: url("/static/images/site/body-background.6677948b3153.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* optional */
  
}

.artist-application {
  width: 90%;
  margin: 100px auto 4rem;
  padding: 0;             
}

.artist-form-section {
  width: fit-content;
  border-bottom: 2px solid #0cbfdf67;
}

.application-sub-image {
  display: block;
  height: 500px;
  margin-inline: auto;
  margin-top: 100px;
}

/* Card wrapper */
.artist-application__card {
  width: 100%;
  max-width: 820px;        /* base */
  margin: 0 auto;          /* true centering */
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.artist-application__card,
.artist-application__card * {
  box-sizing: border-box;
}

/* Ensure field wrappers don't create layout surprises */
.artist-application__body form > div {
  width: 100%;
  min-width: 0;
}

/* Belt + braces: inputs can never exceed the container */
.artist-application__body input[type="text"],
.artist-application__body input[type="email"],
.artist-application__body input[type="url"],
.artist-application__body textarea,
.artist-application__body select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

input {
  text-align: center;
}

/* Header */
.artist-application__header {
  background: #0cc0df;
  padding: 2.5rem 2rem;
  text-align: center;
}

.artist-application__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

/* Body */
.artist-application__body {
  background: #ffffff;
  /*background: #d7f9ff;*/
  padding: 2.5rem 2rem 3rem;
  color: #000;
}

/* Form layout */
.artist-application__body form {
  display: grid;
  gap: 1.5rem;
}

/* Labels */
.artist-application__body label {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  display: block;
}

/* Inputs */
.artist-application__body input[type="text"],
.artist-application__body input[type="email"],
.artist-application__body input[type="url"],
.artist-application__body textarea,
.artist-application__body select {
  width: 100%;
  border-radius: 14px;
  border: 2px solid #000000;
  /*border: 2px solid #0cc0df; */
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.artist-application__body textarea {
  resize: vertical;
  min-height: 120px;
}

.artist-application__body input:focus,
.artist-application__body textarea:focus,
.artist-application__body select:focus {
  outline: none;
  border-color: #028fa8;
  box-shadow: 0 0 0 3px rgba(12, 192, 223, 0.25);
}

/* File input */
.artist-application__body input[type="file"] {
  border: none;
  padding: 0;
}

/* Help text */
.artist-application__body .helptext {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Errors */
.artist-application__body .errorlist {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  color: #b00020;
  font-size: 0.85rem;
}

/* Submit button */
.artist-application__submit {
  margin-top: 2rem;
  text-align: center;
}


/* =========================================================
   ARTIST IMAGE PREVIEW
   ========================================================= */
.artist-image-upload {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  
}

/* Keep preview size fixed */
.artist-image-preview {
  flex-shrink: 0;
}

/* Let the input area take remaining space */
.artist-image-field {
  flex: 1;
  min-width: 0;  
}

.artist-image-field,
.artist-image-field * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.artist-image-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.artist-image-preview__circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 6px solid #000000;
  /*border: 6px solid #0cc0df; */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.artist-image-preview__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist-application__body input[type="file"] {
  display: block;
  margin-top: 0.5rem;
}

/* =========================================================
   CUSTOM FILE INPUT
   ========================================================= */

/* Hide the real input */
.artist-image-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Layout */
.artist-image-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Smaller variant of your site button */
.site-btn-small {
  width: fit-content;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}



/* Filename text */
.artist-image-filename {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Responsive tweaks */
@media (min-width: 640px) {
  .artist-application {
    padding-left: 0;
    padding-right: 0;
  }

  .artist-application__card {
    margin-left: auto;
    margin-right: auto;
  }


  .artist-application__header {
    padding: 3rem 3rem;
  }

  .artist-application__body {
    padding: 3rem 3rem 3.5rem;
  }
  .site-btn-white {
    margin-left: 0;
}
  
}

@media (max-width: 760px) {
  .artist-application--breakout {
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .artist-application--breakout .artist-application__card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

    .artist-image-upload {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .artist-image-field {
    width: 100%;
  }
  
}

/* Extra safety for inputs inside grids/flex */
.artist-application__body form,
.artist-application__body form > div {
  min-width: 0;
}

@media (min-width: 900px) {
  .artist-application {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
    .artist-application__body {
    padding: 3.5rem 4rem 4rem;
  }

  .artist-application__header {
    padding: 3rem 4rem;
  }
}

@media (min-width: 1200px) {
  .artist-application__card  {
    max-width: 1120px;
  }
}
