/* MineCo Studios — Creator application page */

.apply-page {
  min-height: calc(100vh - 140px);
  background:
    radial-gradient(circle at 50% 0%, rgba(3, 252, 240, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18));
}

.apply-hero {
  padding: 72px 20px 34px;
  text-align: center;
}

.apply-hero-inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.apply-mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(3, 252, 240, 0.32));
  margin-bottom: 18px;
}

.apply-kicker,
.section-kicker {
  margin: 0 0 8px;
  color: #03fcf0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.apply-hero h1 {
  margin: 0;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: 0.015em;
}

.apply-hero h1 span {
  color: #03fcf0;
  text-shadow: 0 0 20px rgba(3, 252, 240, 0.45);
}

.apply-intro {
  max-width: 690px;
  margin: 18px auto 0;
  color: #b9c1c1;
  font-size: 1.02rem;
  line-height: 1.7;
}

.apply-process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 34px auto 0;
  padding: 16px;
  border: 1px solid rgba(3, 252, 240, 0.13);
  border-radius: 14px;
  background: rgba(10, 14, 14, 0.72);
  backdrop-filter: blur(12px);
}

.apply-process > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  gap: 1px 10px;
  text-align: left;
}

.apply-process span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(3, 252, 240, 0.35);
  border-radius: 50%;
  background: rgba(3, 252, 240, 0.08);
  color: #03fcf0;
  font-weight: 800;
}

.apply-process strong {
  color: #fff;
  font-size: 0.9rem;
}

.apply-process small {
  color: #7e8989;
  font-size: 0.72rem;
}

.apply-process > i {
  color: rgba(3, 252, 240, 0.35);
}

.application-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 70px;
}

.application-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 18px;
}

.application-heading h2 {
  margin: 0;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.application-heading p:not(.section-kicker) {
  margin: 8px 0 0;
  color: #8d9898;
}

.application-note {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  padding: 11px 13px;
  border: 1px solid rgba(3, 252, 240, 0.12);
  border-radius: 10px;
  color: #9aa5a5;
  background: rgba(3, 252, 240, 0.035);
  font-size: 0.78rem;
}

.application-note i {
  color: #03fcf0;
}

#application-form-container {
  width: 100%;
  padding: 0;
  background: transparent;
}

#application-form {
  display: grid;
  gap: 16px;
}

.form-section {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(16, 19, 19, 0.97), rgba(8, 10, 10, 0.98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}

.form-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.section-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(3, 252, 240, 0.2);
  border-radius: 10px;
  background: rgba(3, 252, 240, 0.055);
  color: #03fcf0;
}

.form-section-heading h2 {
  margin: 0;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-section-heading p {
  margin: 4px 0 0;
  color: #788383;
  font-size: 0.78rem;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-group {
  min-width: 0;
}

.form-group label,
.profile-colour-controls > label {
  display: block;
  margin: 0 0 7px;
  color: #dfe5e5;
  font-size: 0.82rem;
  font-weight: 650;
}

.form-group label i {
  margin-right: 5px;
  color: #03fcf0;
}

.required {
  color: #ff6b6b;
}

.form-group input,
.form-group select,
.form-group textarea,
#profile_color_hex {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  outline: none;
  background: #121515;
  color: #fff;
  font: 500 0.9rem/1.35 "Inter", sans-serif;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
#profile_color_hex::placeholder {
  color: #5f6868;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
#profile_color_hex:focus {
  border-color: rgba(3, 252, 240, 0.65);
  background: #141818;
  box-shadow: 0 0 0 3px rgba(3, 252, 240, 0.08);
}

.form-group [data-invalid="true"],
#profile_color_hex[data-invalid="true"] {
  border-color: rgba(255, 85, 85, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(255, 85, 85, 0.08) !important;
}

.form-help {
  display: block;
  margin-top: 6px;
  color: #687373;
  font-size: 0.73rem;
  line-height: 1.45;
}

.profile-colour-section {
  border-color: rgba(3, 252, 240, 0.14);
}

.profile-colour-picker {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
  gap: 18px;
  align-items: center;
}

.profile-colour-preview {
  --profile-colour: #03fcf0;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--profile-colour) 45%, transparent);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 50%, color-mix(in srgb, var(--profile-colour) 13%, transparent), transparent 44%),
    #0d1010;
  box-shadow: 0 0 22px color-mix(in srgb, var(--profile-colour) 12%, transparent);
}

.profile-preview-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--profile-colour);
  border-radius: 50%;
  color: var(--profile-colour);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 0 16px color-mix(in srgb, var(--profile-colour) 20%, transparent);
}

.profile-colour-preview strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.profile-colour-preview small {
  color: var(--profile-colour);
  font-size: 0.72rem;
}

.colour-input-row {
  display: grid;
  grid-template-columns: 56px minmax(120px, 170px) 28px;
  gap: 9px;
  align-items: center;
}

#profile_color {
  width: 56px;
  height: 43px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: #121515;
  cursor: pointer;
}

.colour-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #03fcf0;
  box-shadow: 0 0 14px #03fcf0;
}

.consent-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.consent-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #03fcf0;
}

.consent-card strong {
  display: block;
  color: #e7ecec;
  font-size: 0.83rem;
}

.consent-card small {
  display: block;
  margin-top: 4px;
  color: #788383;
  font-size: 0.74rem;
}

.submit-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(3, 252, 240, 0.14);
  border-radius: 14px;
  background: rgba(3, 252, 240, 0.035);
}

.submit-area > div {
  display: grid;
  gap: 3px;
}

.submit-area strong {
  color: #fff;
}

.submit-area span {
  color: #7e8989;
  font-size: 0.76rem;
}

#submit-button {
  min-width: 230px;
  margin: 0;
  padding: 14px 20px;
  border: none;
  cursor: pointer;
}

#submit-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-message {
  padding: 13px 15px;
  border-radius: 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 650;
}

.form-message.success {
  border: 1px solid rgba(46, 204, 113, 0.35);
  background: rgba(46, 204, 113, 0.08);
  color: #53dd8d;
}

.form-message.error {
  border: 1px solid rgba(255, 85, 85, 0.34);
  background: rgba(255, 85, 85, 0.07);
  color: #ff7a7a;
}

.form-message.loading {
  border: 1px solid rgba(3, 252, 240, 0.2);
  background: rgba(3, 252, 240, 0.05);
  color: #03fcf0;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  vertical-align: -3px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.success-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid rgba(46, 204, 113, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(13, 18, 16, 0.98), rgba(8, 10, 9, 0.98));
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 50%;
  color: #52d78a;
  background: rgba(46, 204, 113, 0.08);
  font-size: 1.35rem;
}

.success-container h2 {
  margin: 0;
  color: #fff;
  font-family: "Orbitron", sans-serif;
}

.success-container > p:not(.section-kicker) {
  color: #8f9999;
  line-height: 1.6;
}

.success-details {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  text-align: left;
}

.detail-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.detail-item label {
  display: block;
  margin-bottom: 6px;
  color: #03fcf0;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-value span {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: #0b0d0d;
  color: #dfe5e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

.copy-button {
  padding: 8px 12px;
  border: 1px solid rgba(3, 252, 240, 0.28);
  border-radius: 7px;
  background: rgba(3, 252, 240, 0.08);
  color: #03fcf0;
  font-weight: 700;
  cursor: pointer;
}

.warning {
  margin: 18px 0;
  padding: 12px;
  border: 1px solid rgba(241, 196, 15, 0.25);
  border-radius: 9px;
  background: rgba(241, 196, 15, 0.06);
  color: #e8c84c;
  font-size: 0.8rem;
}

.secondary-button {
  display: inline-flex;
  width: auto;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .application-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid.two-col,
  .form-grid.three-col,
  .profile-colour-picker {
    grid-template-columns: 1fr;
  }

  .apply-process {
    grid-template-columns: 1fr;
  }

  .apply-process > i {
    display: none;
  }
}

@media (max-width: 620px) {
  .apply-hero {
    padding-top: 48px;
  }

  .application-wrap {
    width: min(100% - 20px, 1180px);
  }

  .form-section,
  .success-container {
    padding: 16px;
  }

  .submit-area {
    align-items: stretch;
    flex-direction: column;
  }

  #submit-button {
    width: 100%;
    min-width: 0;
  }

  .colour-input-row {
    grid-template-columns: 52px 1fr 26px;
  }

  .detail-value {
    align-items: stretch;
    flex-direction: column;
  }
}
