:root {
  color-scheme: dark;
  --page: #0a0321;
  --panel: rgba(29, 13, 61, .78);
  --field: rgba(7, 1, 29, .62);
  --line: rgba(173, 128, 255, .2);
  --muted: #b8adca;
  --white: #fbf8ff;
  --purple: #a82bff;
  --cyan: #1bdcff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: radial-gradient(circle at 50% -15%, #251052 0, var(--page) 48%, #050016 100%);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
}

button, input, select, textarea { font: inherit; }
button, label, select { cursor: pointer; }

.page-shell {
  width: min(100% - 48px, 1500px);
  margin: 0 auto;
  padding: 18px 0 24px;
}

.page-heading {
  position: relative;
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
}

.page-heading h1 { margin: 0; font-size: clamp(30px, 3.1vw, 48px); line-height: 1.05; letter-spacing: 0; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 18px; }

.back-button {
  position: absolute;
  left: 0;
  top: 8px;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 24px;
  transition: background .2s, transform .2s;
}
.back-button:hover { background: rgba(255,255,255,.15); transform: translateX(-2px); }

.job-form {
  max-width: 1380px;
  margin: 10px auto 0;
  padding: 26px 28px 22px;
  border: 1px solid rgba(170, 117, 255, .13);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(38, 17, 77, .84), rgba(25, 10, 57, .72));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255,255,255,.03);
}

.form-top { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: stretch; }
.profile-upload { padding: 0 24px 0 0; border-right: 1px solid rgba(218, 191, 255, .18); text-align: center; }
h2 { margin: 0 0 10px; font-size: 19px; font-weight: 500; }
.profile-drop {
  width: 148px;
  height: 148px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border: 2px dashed #a94dff;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 37, 255, .28), rgba(21, 5, 54, .38));
  overflow: hidden;
}
.profile-drop i { color: #b731ff; font-size: 47px; filter: drop-shadow(0 0 10px rgba(188, 52, 255, .6)); }
.profile-drop img { display: none; width: 100%; height: 100%; object-fit: cover; }
.profile-drop.has-image i { display: none; }
.profile-drop.has-image img { display: block; }
.profile-upload > span { color: var(--muted); font-size: 17px; }

.top-fields, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.field-wide { grid-column: 1 / -1; }
.field > span { display: block; margin: 0 0 8px; font-size: 18px; }
.field b { color: #ff477c; font-weight: 500; }
.field small { color: var(--muted); font-size: .78em; font-weight: 700; }
.input-wrap, .social-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--field);
  transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within, .social-row:focus-within { border-color: rgba(200, 94, 255, .8); box-shadow: 0 0 0 3px rgba(168, 43, 255, .12); }
.input-wrap > i { flex: 0 0 48px; padding-left: 20px; color: #bd43ff; font-size: 23px; }
.input-wrap input, .input-wrap select, .social-row input, .input-wrap textarea {
  width: 100%; min-width: 0; border: 0; outline: 0; color: var(--white); background: transparent;
}
.input-wrap input, .input-wrap select, .social-row input { height: 56px; padding: 0 18px 0 14px; }
input::placeholder, textarea::placeholder { color: #887c9d; opacity: 1; }
.resume-upload-field input[type="file"] {
  width: 100%;
  min-height: 58px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--field);
  color: var(--white);
}
.current-file-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.resume-upload-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 13px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(100deg, #a82bff, #1bdcff);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
select { appearance: none; color: #9689a9 !important; }
select:valid { color: var(--white) !important; }
.select-wrap { position: relative; padding-right: 36px; }
.select-wrap .select-arrow { flex: 0 0 auto; padding: 0; color: var(--white); font-size: 15px; }
.field-grid { margin-top: 18px; }
.area-field { display: block; margin-top: 18px; }
.textarea-wrap { align-items: flex-start; padding-top: 14px; }
.textarea-wrap > i { padding-top: 3px; }
.input-wrap textarea { min-height: 86px; resize: vertical; padding: 2px 18px 12px 14px; line-height: 1.45; }

.photos-section, .social-section { margin-top: 18px; }
.photos-section h2, .social-section h2 { margin-bottom: 10px; }
.photos-section small { color: var(--muted); font-size: 15px; }
.photo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.photo-slot {
  position: relative; aspect-ratio: 1.32 / 1; display: grid; place-items: center; overflow: hidden;
  border: 1px dashed rgba(201, 173, 255, .28); border-radius: 16px; background: rgba(255,255,255,.05);
}
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 27px; }
.photo-slot.has-image { background-size: cover; background-position: center; border-style: solid; }
.photo-slot.has-image span { display: none; }

.social-row { min-height: 53px; margin-top: 10px; border-radius: 15px; }
.social-name { flex: 0 0 365px; height: 35px; display: flex; align-items: center; gap: 16px; padding-left: 18px; border-right: 1px solid rgba(210, 182, 255, .18); font-size: 17px; }
.social-name i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; color: white; font-size: 20px; }
.instagram .social-name i { background: linear-gradient(135deg, #f9ce34, #ee2a7b 48%, #6228d7); }
.facebook .social-name i { background: #1877f2; }
.whatsapp .social-name i { background: #25d366; }
.social-row input { color: var(--white); padding-left: 18px; }

.submit-button {
  width: 100%; min-height: 58px; margin-top: 20px; border: 0; border-radius: 16px; color: white; font-weight: 700; font-size: 20px;
  background: linear-gradient(100deg, #ef1da5, #a52cff 70%, #713bff); box-shadow: 0 10px 28px rgba(192, 32, 221, .24); transition: transform .2s, filter .2s;
}
.submit-button i { margin-right: 16px; }
.submit-button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.form-status { min-height: 18px; margin: 8px 0 0; text-align: center; color: #70f1d0; font-size: 13px; }

@media (min-width: 1100px) and (max-height: 900px) {
  .page-shell { padding-top: 8px; }
  .page-heading { min-height: 72px; }
  .back-button { top: 2px; width: 52px; height: 52px; }
  .page-heading h1 { font-size: 32px; }
  .page-heading p { margin-top: 4px; font-size: 15px; }
  .job-form { margin-top: 4px; padding: 17px 22px 14px; border-radius: 18px; }
  .form-top { grid-template-columns: 182px 1fr; gap: 22px; }
  .profile-upload { padding-right: 20px; }
  .profile-drop { width: 112px; height: 112px; }
  .profile-drop i { font-size: 36px; }
  h2, .field > span { font-size: 14px; margin-bottom: 5px; }
  .input-wrap, .social-row { min-height: 42px; border-radius: 12px; }
  .input-wrap input, .input-wrap select, .social-row input { height: 40px; font-size: 13px; }
  .input-wrap > i { flex-basis: 38px; padding-left: 14px; font-size: 17px; }
  .select-wrap { padding-right: 24px; }
  .field-grid, .area-field, .photos-section, .social-section { margin-top: 10px; }
  .top-fields, .field-grid { gap: 10px 16px; }
  .textarea-wrap { padding-top: 8px; }
  .input-wrap textarea { min-height: 46px; font-size: 13px; }
  .photo-grid { gap: 10px; }
  .photo-slot { border-radius: 11px; }
  .photo-slot span { width: 28px; height: 28px; font-size: 20px; }
  .social-row { margin-top: 6px; }
  .social-name { flex-basis: 280px; height: 26px; font-size: 13px; gap: 10px; padding-left: 12px; }
  .social-name i { width: 23px; height: 23px; font-size: 15px; }
  .submit-button { min-height: 44px; margin-top: 12px; border-radius: 12px; font-size: 16px; }
  .form-status { min-height: 0; margin: 3px 0 0; font-size: 11px; }
}

@media (max-width: 850px) {
  .page-shell { width: min(100% - 24px, 650px); padding-top: 12px; }
  .page-heading { padding-left: 48px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading p { font-size: 14px; }
  .job-form { padding: 20px 16px; }
  .form-top { grid-template-columns: 138px minmax(0, 1fr); gap: 14px; align-items: start; }
  .profile-upload { padding: 0; border-right: 0; border-bottom: 0; }
  .profile-drop { width: 108px; height: 108px; margin-bottom: 7px; }
  .profile-drop i { font-size: 36px; }
  .profile-upload > span { font-size: 14px; }
  .top-fields { align-self: start; padding-top: 3px; }
  .top-fields, .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .social-name { flex-basis: 130px; }
}

@media (max-width: 480px) {
  .page-heading { min-height: 76px; }
  .back-button { width: 46px; height: 46px; top: 2px; font-size: 18px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 12px; }
  .job-form { border-radius: 16px; }
  .form-top { grid-template-columns: 126px minmax(0, 1fr); gap: 12px; }
  .profile-drop { width: 92px; height: 92px; }
  .profile-drop i { font-size: 31px; }
  h2 { font-size: 15px; }
  .profile-upload > span { font-size: 12px; }
  .field > span { font-size: 14px; }
  .input-wrap > i { flex-basis: 42px; padding-left: 15px; font-size: 20px; }
  .input-wrap input { padding-left: 10px; font-size: 14px; }
  .photo-grid { gap: 8px; }
  .social-name { flex-basis: 106px; font-size: 12px; gap: 7px; padding-left: 8px; }
  .social-row input { padding-left: 10px; font-size: 12px; }

    /* MOBILE Form Update : Resume input box ki height, padding aur text size */
  .resume-upload-field input[type="file"] {
    min-height: 44px; /* Input box height */
    padding: 8px 10px; /* Input ke andar ki spacing */
    font-size: 13px; /* “No file chosen” text size */
    border-radius: 12px; /* Input box roundness */
  } 

    /* MOBILE Form Update : “Choose File” button ki size aur text */
  .resume-upload-field input[type="file"]::file-selector-button {
    margin-right: 8px; /* Button aur file-name text ke beech gap */
    padding: 6px 9px; /* Button ka size */
    font-size: 12px; /* Choose File text size */
    border-radius: 8px; /* Button roundness */
  }

}
 
/* Laptop-height desktop preset: keep the complete form visible in one viewport. */
@media (min-width: 980px) and (max-height: 820px) {
  .page-shell { width: min(100% - 32px, 1440px); padding: 4px 0 8px; }
  .page-heading { min-height: 54px; }
  .back-button { top: 0; width: 42px; height: 42px; font-size: 17px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { margin-top: 2px; font-size: 12px; }
  .job-form { margin-top: 2px; padding: 11px 16px 9px; border-radius: 15px; }
  .form-top { grid-template-columns: 150px 1fr; gap: 16px; }
  .profile-upload { padding-right: 15px; }
  .profile-drop { width: 76px; height: 76px; margin-bottom: 3px; }
  .profile-drop i { font-size: 25px; }
  .profile-upload > span { font-size: 11px; }
  h2, .field > span { font-size: 11px; margin-bottom: 3px; }
  .top-fields, .field-grid { gap: 6px 12px; }
  .input-wrap, .social-row { min-height: 31px; border-radius: 9px; }
  .input-wrap input, .input-wrap select, .social-row input { height: 29px; padding-top: 0; padding-bottom: 0; font-size: 11px; }
  .input-wrap > i { flex-basis: 30px; padding-left: 10px; font-size: 13px; }
  .select-wrap { padding-right: 18px; }
  .select-wrap .select-arrow { font-size: 10px; }
  .field-grid, .area-field, .photos-section, .social-section { margin-top: 6px; }
  .textarea-wrap { padding-top: 5px; }
  .input-wrap textarea { min-height: 31px; padding-top: 0; padding-bottom: 3px; font-size: 11px; }
  .photo-grid { gap: 8px; }
  .photo-slot { aspect-ratio: auto; height: 34px; border-radius: 8px; }
  .photo-slot span { width: 21px; height: 21px; font-size: 15px; }
  .photos-section small { font-size: 10px; }
  .social-row { margin-top: 3px; }
  .social-name { flex-basis: 210px; height: 19px; font-size: 10px; gap: 6px; padding-left: 8px; }
  .social-name i { width: 17px; height: 17px; font-size: 11px; border-radius: 4px; }
  .social-row input { padding-left: 10px; }
  .submit-button { min-height: 34px; margin-top: 7px; border-radius: 9px; font-size: 12px; }
  .submit-button i { margin-right: 8px; }
  .form-status { display: none; }
}

.service-request-update-fields {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(83, 219, 212, 0.34);
  border-radius: 14px;
  background: rgba(22, 55, 77, 0.22);
}

.service-request-update-fields h2 {
  margin: 0;
  color: #dffbff;
}

.service-request-update-fields .field-grid {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .service-request-update-fields {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
  }

  .service-request-update-fields .field-grid {
    margin-top: 10px;
  }
}
/* Embedded update form: keep every control inside the phone modal. */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell {
    width: 100%;
    max-width: none;
    padding: 12px 12px 20px;
  }

  .page-heading {
    min-height: 86px;
    padding: 0 48px;
  }

  .page-heading h1 {
    font-size: 26px;
    line-height: 1.1;
  }

  .page-heading p {
    margin-top: 6px;
    font-size: 13px;
  }

  .back-button {
    left: 0;
    top: 4px;
  }

  .job-form {
    width: 100%;
    margin-top: 6px;
    padding: 16px 14px 18px;
  }

  .form-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .profile-upload {
    display: grid;
    justify-items: center;
    border: 0;
  }

  .profile-upload h2 {
    width: 100%;
    text-align: center;
  }

  .top-fields,
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .field,
  .form-top > *,
  .service-request-update-fields,
  .resume-upload-field {
    min-width: 0;
  }

  .resume-upload-field input[type="file"] {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .current-file-note {
    overflow-wrap: anywhere;
  }

  .service-request-update-fields {
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-heading {
    padding-left: 42px;
    padding-right: 42px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .job-form {
    padding-left: 12px;
    padding-right: 12px;
  }
}