.modal-overlay.is-visible {
  display: flex;
}
.modal-overlay.hidden {
  display: none;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.careers-panel {
  background-color: #fff;
  color: #111;
  width: 90%;
  max-width: 950px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-secondary);
  font-weight: 300;
}
.careers-panel__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}
.careers-panel__title {
  grid-column: 2;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0;
}
.careers-panel__close-btn {
  grid-column: 3;
  justify-self: end;
  position: static;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  color: #000;
  cursor: pointer;
  line-height: 1;
}
.careers-panel__roles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
  font-size: 1.2rem;
  padding: 0.5rem 2rem;
  font-weight: 500;
}
.location-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.location-info img {
  height: 18px;
  width: auto;
}
.careers-panel__content {
  overflow-y: auto;
  flex-grow: 1;
  padding: 0 2rem 1.5rem;
}
.careers-panel__job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.careers-panel__job-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}
.careers-panel__job-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}
.careers-panel__job-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.careers-panel__job-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 700;
}
.careers-panel__job-location {
  color: #111;
  font-size: 1rem;
  font-weight: 400;
}
.careers-panel__view-details-btn {
  background: transparent;
  border: none;
  color: #000;
  font-size: 2.2rem;
  font-weight: 300;
  justify-self: end;
  cursor: pointer;
  padding: 0 1rem;
  line-height: 1;
}

/* .careers-panel__job-item.is-open .careers-panel__job-details-expanded {
  display: block;
  max-height: 1000px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  background-color: #f31616;
  z-index: 10000000;
} */
/* .careers-panel__job-item.is-open .careers-panel__job-details-expanded {
    max-height: 1000px; padding: 1.5rem; margin-top: 1.5rem;
} */
/* .details-content h4 { font-family: var(--font-primary); font-weight: 700; margin: 0 0 0.5rem 0; color: #111; }
.details-content p, .details-content li { color: #555; font-size: 0.9rem; line-height: 1.6; }
.details-content ul { padding-left: 20px; margin-bottom: 1.5rem; } */
.apply-now-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
}
.careers-panel__content::-webkit-scrollbar {
  width: 4px;
}
.careers-panel__content::-webkit-scrollbar-track {
  background-color: transparent;
}
.careers-panel__content::-webkit-scrollbar-thumb {
  background-color: #000;
}

/* #submit-careers-modal.modal-overlay {
  display: none;
  background: rgba(135, 105, 61, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
} */

#submit-careers-modal.is-visible {
  display: flex;
}

#submit-careers-modal input::placeholder,
#submit-careers-modal textarea::placeholder {
  font-weight: 400;
  font-style: normal;
  color: #888;
}

.submit-careers-container {
  background: #fff;
  padding: 2rem 2.5rem;
  max-height: 85vh;
  overflow-y: auto;
  max-width: 700px;
  width: 90%;
  border-radius: 0;
}

#submit-careers-modal .modal-content {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
}

/* Close Button */
#submit-careers-modal .modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  color: #000;
  text-transform: uppercase;
}

.submit-careers-content {
  font-family: var(--font-secondary);
}

.submit-careers__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

#careers-modal .form-group {
  display: flex;
  flex-direction: column;
}

/* #careers-modal .form-group label {
  font-size: 0.85rem;
  color: #111;
  margin-bottom: 0.4rem;
  font-weight: 600;
} */

#careers-modal .form-group input,
#careers-modal .form-group select {
  border: none;
  border-bottom: 1px solid #000;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-family: var(--font-secondary);
  background: transparent;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

#careers-modal .form-group input:focus,
#careers-modal .form-group select:focus {
  border-bottom: 1px solid #000;
  outline: none;
}

.file-input-label {
  border: none;
  border-bottom: 1px solid #000;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #555;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-input-label img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.file-input-hidden {
  display: none;
}

#submit-careers-modal .submit-button {
  background: transparent;
  border: 2px solid #000;
  color: #000;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  width: 100%;
  cursor: pointer;
  margin-top: 1rem;
  justify-self: center;
  grid-column: 1 / -1;
  justify-self: center; 
  margin-top: 1.5rem;
}

#submit-careers-modal .submit-button:hover {
  background-color: #111;
  color: #fff;
}
/* Thank You Modal Panel */

/* Close button */
#submit-careers-modal .careers-thankyou .modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  color: #111;
  letter-spacing: 0.5px;
}

/* Title */
#submit-careers-modal .careers-thankyou .thankyou-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #f5a623; /* orange "THANK YOU" */
}

#submit-careers-modal .careers-thankyou .thankyou-title .highlight-black {
  color: #000; /* "FOR REACHING OUT" */
}

/* Message */
#submit-careers-modal .careers-thankyou .thankyou-message {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
  line-height: 1.6;
}

/* Logo */
#submit-careers-modal .careers-thankyou .thankyou-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

#submit-careers-modal .careers-thankyou .thankyou-logo .broadway-logo {
  max-height: 50px;
  object-fit: contain;
}

/* Hide form/info when thank you is showing */
#submit-careers-modal.show-thankyou .submit-careers-container {
  display: none;
}

#submit-careers-modal.show-thankyou .careers-thankyou {
  display: flex !important;
}

.modal-overlay.is-visible {
  display: flex;
}
.modal-overlay.hidden {
  display: none;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.careers-panel {
  background-color: #fff;
  color: #111;
  width: 90%;
  max-width: 950px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-secondary);
  font-weight: 300;
}
.careers-panel__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}
.careers-panel__title {
  grid-column: 2;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.3;
  text-transform: uppercase;
  margin: 0;
}
.careers-panel__close-btn {
  grid-column: 3;
  justify-self: end;
  position: static;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  color: #000;
  cursor: pointer;
  line-height: 1;
}
.careers-panel__roles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
  font-size: 1.2rem;
  padding: 0.5rem 2rem;
  font-weight: 500;
}
.location-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.location-info img {
  height: 18px;
  width: auto;
}
.careers-panel__content {
  overflow-y: auto;
  flex-grow: 1;
  padding: 0 2rem 1.5rem;
}
.careers-panel__job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.careers-panel__job-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}
.careers-panel__job-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}
.careers-panel__job-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.careers-panel__job-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 700;
}
.careers-panel__job-location {
  color: #111;
  font-size: 1rem;
  font-weight: 400;
}
.careers-panel__view-details-btn {
  background: transparent;
  border: none;
  color: #000;
  font-size: 2.2rem;
  font-weight: 300;
  justify-self: end;
  cursor: pointer;
  padding: 0 1rem;
  line-height: 1;
}

/* .careers-panel__job-item.is-open .careers-panel__job-details-expanded {
    max-height: 1000px; padding: 1.5rem; margin-top: 1.5rem;
} */
.details-content h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #111;
  font-size: 1.5rem !important;
  text-transform: uppercase;
}
.details-content p,
.details-content li {
  font-size: 0.75rem;
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  line-height: 1.5;
}
.details-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1.5rem;
}
.details-content li {
  display: list-item; /* Ensure proper list formatting */
}
.apply-now-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
}
.details-content {
  display: block;
}
.careers-panel__content::-webkit-scrollbar {
  width: 4px;
}
.careers-panel__content::-webkit-scrollbar-track {
  background-color: transparent;
}
.careers-panel__content::-webkit-scrollbar-thumb {
  background-color: #000;
}

/* #submit-careers-modal.modal-overlay {
  display: none;
  background: rgba(135, 105, 61, 0.85); 
  justify-content: center;
  align-items: center;
  z-index: 10000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
} */

#submit-careers-modal.is-visible {
  display: flex;
}

#submit-careers-modal input::placeholder,
#submit-careers-modal textarea::placeholder {
  font-weight: 400;
  font-style: normal;
  color: #888;
}

/* Modal Container */
.submit-careers-container {
  background: #fff;
  padding: 2rem 2.5rem;
  max-height: 85vh; /* reduce height */
  overflow-y: auto; /* scroll inside if form is taller */
  max-width: 700px;
  width: 90%;
  border-radius: 0; /* removed rounded corners */
}

#submit-careers-modal .modal-content {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
}

/* Close Button */
#submit-careers-modal .modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: #000;
  text-transform: uppercase;
}

.submit-careers-content {
  font-family: var(--font-secondary);
}

/* Title */
.submit-careers__title {
  font-family: var(--font-primary, sans-serif);
  font-weight: 900;
  font-size: 1.8rem;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: black;
}

.submit-careers__subtitle {
  font-size: 1rem;
  text-align: center;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.5;
  font-family: var(--font-secondary);
}
.submit-careers__subtitle span{
    font-weight: 800;
  }

.file-placeholder {
  font-weight: normal;
  color: #555;
}

.submit-careers__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Form Controls */
#careers-modal .form-group {
  display: flex;
  flex-direction: column;
}

/* #careers-modal .form-group label {
  font-size: 0.85rem;
  color: #111;
  margin-bottom: 0.4rem;
  font-weight: 600;
} */

#careers-modal .form-group input,
#careers-modal .form-group select {
  border: none; /* remove box */
  border-bottom: 1px solid #000; /* underline only */
  padding: 0.5rem 0; /* clean spacing */
  font-size: 0.95rem;
  font-family: var(--font-secondary);
  background: transparent;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

#careers-modal .form-group input:focus,
#careers-modal .form-group select:focus {
  border-bottom: 1px solid #000;
  outline: none;
}

/* File Upload Inputs */
.file-input-label {
  border: none;
  border-bottom: 1px solid #000; /* match input underline */
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #555;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-input-label img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.file-input-hidden {
  display: none;
}

.submit-btn {
  background: transparent;
  border: 2px solid #000;
  color: #000;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  width: 100%;
  cursor: pointer;
  margin-top: 1rem;
  justify-self: center;
  grid-column: 1 / -1; /* span both columns */
  justify-self: center; /* center horizontally */ /* shrink to content width */
  margin-top: 1.5rem;
}

.submit-btn:hover {
  background-color: #111;
  color: #fff;
}

.modal-overlay.is-visible {
  display: flex;
}
.modal-overlay.hidden {
  display: none;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.careers-panel {
  background-color: #fff;
  color: #111;
  width: 90%;
  max-width: 950px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-secondary);
  font-weight: 300;
}
.careers-panel__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
}
.careers-panel__title {
  grid-column: 2;
  text-align: center;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.3;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
}

.careers-panel__title span{
    font-size: 2.5rem;
}
.careers-panel__close-btn {
  grid-column: 3;
  justify-self: end;
  position: static;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.2rem;
  color: #000;
  cursor: pointer;
  line-height: 1;
    z-index: 10;
}

@media (min-width: 769px) {
  .careers-panel__header {
    position: relative;
  }
  .careers-panel__close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    grid-column: unset;
    justify-self: unset;
    font-size: 2rem;
    z-index: 20;
  }
}
.careers-panel__roles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
  font-size: 1.2rem;
  padding: 0.5rem 2rem;
  font-weight: 500;
}
.location-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.location-info img {
  height: 18px;
  width: auto;
}
.careers-panel__content {
  overflow-y: auto;
  flex-grow: 1;
  padding: 0 2rem 1.5rem;
}
.careers-panel__job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.careers-panel__job-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}
.careers-panel__job-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.careers-panel__job-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 2.5rem;
}
.careers-panel__job-title {
    font-size: 1.25rem;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}
.careers-panel__job-location {
  color: #111;
  font-size: 0.75rem;
  font-weight: 400;
}
.careers-panel__view-details-btn {
    background: transparent;
    color: #000;
    font-weight: 400;
    justify-self: end;
    cursor: pointer;
    padding: 0 1rem;
    line-height: 1;
    height: 1.25rem;
    width: 0.104rem;
}

/* Ensure proper styles for expanded and collapsed states */
.careers-panel__job-details-expanded {
  background-color: #f9f9f9;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease;
  padding: 0 1.5rem;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  display: none; /* Default collapsed state */
}

.careers-panel__job-item.is-open .careers-panel__job-details-expanded {
  display: block; /* Expanded state */
  max-height:fit-content;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.apply-now-btn {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 0.8rem 2rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.471rem !important;
  text-transform: uppercase;
  cursor: pointer;
}
.apply-now-btn:hover{
    background-color: #000;
    color: #fff;
}
.details-content {
  display: block;
}
.careers-panel__content::-webkit-scrollbar {
  width: 4px;
}
.careers-panel__content::-webkit-scrollbar-track {
  background-color: transparent;
}
.careers-panel__content::-webkit-scrollbar-thumb {
  background-color: #000;
}

#submit-careers-modal.modal-overlay {
  display: none;
  background: rgba(237, 144, 5, 0.65); /* orangish tint */
  justify-content: center;
  align-items: center;
  z-index: 1100;
  padding : 1rem;
  position: fixed; /* ensure overlay only covers modal parent */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#submit-careers-modal.is-visible {
  display: flex;
}

#submit-careers-modal input::placeholder,
#submit-careers-modal textarea::placeholder {
  font-weight: 400;
  font-style: normal;
  color: #888;
}

/* Modal Container */
.submit-careers-container {
  background: #fff;
  padding: 2rem 2.5rem;
  max-height: 85vh; /* reduce height */
  overflow-y: auto; /* scroll inside if form is taller */
  max-width: 700px;
  width: 90%;
  border-radius: 0; /* removed rounded corners */
}

#submit-careers-modal .modal-content {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
}

/* Close Button */
#submit-careers-modal .modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  color: #000;
  text-transform: uppercase;
  display: block;
}

.submit-careers-content {
  font-family: var(--font-secondary);
}

#submit-careers-modal .form-group { 
    text-align: left;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column; 
    font-family: var(--font-secondary);
}
#submit-careers-modal .form-group--full-width { grid-column: 1 / -1; }

#submit-careers-modal .form-group label {
    font-size: 0.75rem; display: block;
    margin-bottom: 0.3rem; color: #000; font-weight : 400; letter-spacing: 0.02em;
}

#submit-careers-modal .form-group input,
#submit-careers-modal .form-group select,
#submit-careers-modal .form-group textarea,
#submit-careers-modal .form-group .file-input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

#submit-careers-modal .form-group .file-input-text {
  color: #888;
  font-size: 0.9rem;
}

#submit-careers-modal .form-group .file-input-label img {
  height: 18px;
}

.submit-careers__form input:focus,
.submit-careers__form select:focus,
.submit-careers__form textarea:focus {
  border-color: #111;
}

/* #submit-careers-modal .form-group input[type="file"] {
  display: none;
} */

#submit-careers-modal .form-group input:focus,
#submit-careers-modal .form-group select:focus {
    outline: 2px solid var(--clr-yellow);
    border-color: var(--clr-yellow);
}

/* --- Custom File Upload Specifics --- */
#submit-careers-modal .submit-careers__form .file-input-hidden { display: none; }
#submit-careers-modal .submit-careers__form .file-input-label {
    width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition: border 0.2s, background 0.2s;
}

#submit-careers-modal .form-group input:focus,
#submit-careers-modal .form-group select:focus,
#submit-careers-modal .form-group textarea:focus,
#submit-careers-modal .form-group .file-input-label:focus,
#submit-careers-modal .form-group .file-input-label:hover {
  border-color: #111;
  background: #f9f9f9;
}

#submit-careers-modal .form-group input,
#submit-careers-modal .form-group select,
#submit-careers-modal .form-group .custom-file-input {
    border: 1px solid #000;
    background: #fafafa;
    /* border-radius: 8px; */
    padding: 0.5rem 0.8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    font-size: 0.6rem;
    width: 100%;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    box-sizing: border-box;
}

/* Optional: Style placeholder for better visibility */
#submit-careers-modal .form-group input::placeholder,
#submit-careers-modal .form-group select::placeholder,
#submit-careers-modal .form-group .custom-file-input::placeholder {
    color: #888;
    opacity: 1;
}

/* Remove border from input on focus, keep box highlight */
#submit-careers-modal .form-group input:focus,
#submit-careers-modal .form-group select:focus,
#submit-careers-modal .form-group .custom-file-input:focus {
    border-color: var(--clr-yellow, #f5a623);
    outline: none;
    background: #fff;
}

#submit-careers-modal  .file-input-text { color: #888; font-size: 0.9rem; }
#submit-careers-modal  .file-input-label img { height: 18px; }

/* --- Submit Button --- */
#submit-careers-modal .submit-button {

    grid-column: 1 / -1; 
    justify-self: center; 

    /* --- Your existing styles --- */
    background: transparent;
    border: 2px solid #000;
    color: #000;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
    width: 150px; 
    cursor: pointer;
    margin-top: 1.5rem;
}
#submit-careers-modal .submit-button:hover { background-color: #000; color: #fff; }

/* Thin black scrollbar */
.submit-careers-container::-webkit-scrollbar {
  width: 6px;               /* slim width */
  height: 6px;              /* slim height for horizontal (if ever) */
}

.submit-careers-container::-webkit-scrollbar-thumb {
  background-color: #000;
  border-radius: 3px;
  /* ensures it's not too small */
  height: 2px;     /* force ~3–4 cm */
}

.submit-careers-container::-webkit-scrollbar-track {
  background: transparent;   /* invisible track */
}

/* Wrapper to position the icon relative to the input field */
#submit-careers-modal .file-input-wrapper {
    position: relative;
}

/* Style for the fake text input to make room for the icon */
#submit-careers-modal .file-input-wrapper .custom-file-input {
    width: 100%; /* Ensure it fills the wrapper */
    padding-right: 3rem; /* Add space on the right for the icon */
    cursor: pointer;
}

/* Styling and positioning for the upload icon */
#submit-careers-modal .file-input-icon {
    position: absolute;
    top: 50%;
    right: 0.3rem; /* Adjust for desired padding from the edge */
    transform: translateY(-50%); /* This vertically centers the icon */
    height: 12px; /* A visible size for the icon */
    pointer-events: none; /* Allows clicks to pass through to the input below */
    z-index  : 4;
}


#submit-careers-modal .submit-careers-thankyou {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem; 
    background: #fff;

    width: 90%;
    max-width: 750px; 
    min-height: 400px;  
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 20; 
}



/* NEW: Styles for your logo */
.submit-careers-thankyou .thankyou-logo {
    margin-bottom: 1.5rem;
}
.submit-careers-thankyou .broadway-logo {
    max-height: 45px;
    object-fit: contain;
}

/* Styles for your title and message divs */
.submit-careers-thankyou .thankyou-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: #000;
}
.submit-careers-thankyou .thankyou-message {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
    margin: 1rem 0 2rem 0;
    max-width: 45ch;
    font-family: var(--font-secondary);
}

/* Style for the "EXPLORE MORE JOBS" button */
.submit-careers-thankyou .thankyou-button {
    background: transparent;
    border: 2px solid #000;
    color: #000;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.submit-careers-thankyou .thankyou-button:hover {
    background: #000;
    color: #fff;
}

/* Logic to show the panel */
#submit-careers-modal.show-thankyou .submit-careers-thankyou {
    display: flex !important;
}

/* Logic to hide the form */
#submit-careers-modal.show-thankyou #careers-form-content {
    display: none;
}
@media (max-width: 768px) {
    #submit-careers-modal .submit-careers-container {
        padding: 1.5rem 1rem; /* Less horizontal padding */
        width: 95%; /* Use more of the screen width */
        max-height: 95vh;
    }

    #submit-careers-modal .submit-careers__title {
        font-size: 1.3rem!important;
    }

    #submit-careers-modal .submit-careers__subtitle {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
    }

    #submit-careers-modal .submit-careers__form {
        grid-template-columns: 1fr;
        gap: 0.5rem; 
    }

    #submit-careers-modal .form-group label {
        font-size: 0.7rem; 
        margin-bottom: 0.3rem;
    }

    #submit-careers-modal .form-group input,
    #submit-careers-modal .form-group select,
    #submit-careers-modal .form-group .custom-file-input {
        font-size: 0.56rem; 
        padding: 0 0.6rem; 
        height: 38px; 
    }

    #submit-careers-modal .file-input-icon {
        height: 12px; 
        right: 0.6rem;
    }

    #submit-careers-modal .submit-button {
        font-size: 1.3rem;
        padding: 0.6rem;
        margin-top: 0.6rem;
    }
}
#submit-careers-modal .submit-careers-container {
    background: #fff;
    padding: 2.5rem 3rem; /* Adjusted padding for the look in the image */
    max-height: 90vh;
    overflow-y: hidden;
    max-width: 550px; /* Reduced max-width for the compact look */
    width: 90%; /* Ensures it's responsive */
    position: relative;
    font-family: var(--font-secondary);
    color: #111;
    text-align: center;
    border-radius: 0; /* Sharp corners as in the image */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); /* Subtle shadow for lift */
}

#submit-careers-modal {
  position: fixed;          /* sits above careers modal */
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;            /* toggled in JS */
  justify-content: center;
  align-items: center;
  z-index: 1100;              /* above orange overlay */
  background: rgba(0,0,0,0.55);}
#submit-careers-modal .submit-careers__title {
    font-family: var(--font-primary, sans-serif);
    font-weight: 900;
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: black;
}

#submit-careers-modal .submit-careers__subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-family: var(--font-secondary);
    font-weight : 400;
    letter-spacing : 0.02em;
}

@media (max-width: 768px) {
    #careers-modal .careers-panel {
        width: 95%;
        height: 90vh;
    }

    #careers-modal .careers-panel__header {
        padding: 1rem;
    }

    #careers-modal .careers-panel__title {
        font-size: 1.15rem; /* Smaller title */
        line-height: 1.2;
    }

    #careers-modal .careers-panel__title span{
        font-size: 1.625rem;
    }

    #careers-modal .careers-panel__roles-header {
        padding: 0.75rem 1.25rem;
        font-size: 0.75rem; 
        justify-content : space-between;
        letter-spacing : 0.02em;
        line-height : 1;
        font-weight : 500;
        font-family : var(--font-secondary);
    }

    
    #careers-modal .location-info {
        gap: 4px;
    }

    
    #careers-modal #location-filter {
        font-size: 0.9rem;
        padding: 0.2rem;
        max-width: 7rem;
        font-size: 0.7rem;
    }

    #careers-modal .careers-panel__content {
        padding: 0 1rem 1rem; /* Adjust content padding */
    }

    #careers-modal .careers-panel__job-item {
        padding: 0.375rem 0.5rem;
    }

    #careers-modal .careers-panel__job-summary {
        gap: 0.5rem;
    }

    #careers-modal .careers-panel__job-title {
        font-size: 0.75rem; 
        text-transform: none; 
    }
    
    #careers-modal .careers-panel__job-location {
        font-size: 0.6rem; 
    }

    #careers-modal .careers-panel__view-details-btn {
        font-size: 2.3rem;
        font-weight : 700;
        padding: 0 0.5rem;
        width : 1rem;
        height : 1rem;
    }

    /* Expanded details text */
    #careers-modal .details-content h4 {
        font-size: 1.2rem;
    }

    #careers-modal .details-content p,
    #careers-modal .details-content li {
        font-size: 0.85rem;
    }

    #careers-modal .apply-now-btn {
        font-size: 1.1rem;
        padding: 0.7rem 1.5rem;
    }
}

@media (min-width: 600px) {
  #submit-careers-modal .modal-close-btn{
    font-size : 1.5rem;
  } .careers-panel__close-btn {
    font-size: 2rem;
  }
}



/* Desktop - blue flower bottom left */
@media (min-width: 769px) {
    #careers-modal .careers-panel {
        position: relative;
    }
    
    #careers-modal .careers-panel::before {
        content: '';
        position: absolute;
        width: 200px;
        height: 188px;
        opacity: 0.5;
        bottom: -1px;
        left: -37px;
        transform: rotate(355deg);
        z-index: 20;
        pointer-events: none;
        background-image: url("/static/assets/static/blue.351bfb4e703e.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    /* Ensure content stays above flower */
    #careers-modal .careers-panel__header,
    #careers-modal .careers-panel__roles-header,
    #careers-modal .careers-panel__content {
        position: relative;
        z-index: 1;
    }
}

/* Mobile - grey flower top left */
@media (max-width: 768px) {
    #careers-modal .careers-panel__header {
        position: relative;
        overflow: visible;
    }
    
    #careers-modal .careers-flower-top-left {
        position: absolute;
        width: 170px;
        height: 160px;
        opacity: 0.8;
        top: -38px;
        left: -2px;
        transform: rotate(-7.66deg);
        z-index: 1;
        pointer-events: none;
        background-image: url("/static/assets/static/grey.5a18d3a7340a.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}


@media (min-width: 769px) {
     #submit-careers-modal .submit-careers-container::before {
        content: '';
        position: absolute;
        width: 200px;
        height: 188px;
        opacity: 0.5;
        bottom: -1px;
        left: -37px;
        transform: rotate(355deg);
        z-index: 20;
        pointer-events: none;
        background-image: url("/static/assets/static/blue.351bfb4e703e.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    } 
    #submit-careers-modal .submit-careers-thankyou::before {
        content: '';
        position: absolute;
        width: 204.28px;
        height: 192.13px;
        opacity: 0.5;
        bottom: -1px;
        left: -33px;
        transform: rotate(0.23deg);
        z-index: 0;
        pointer-events: none;
        background-image: url("/static/assets/static/blue.351bfb4e703e.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}

@media (max-width: 768px) {
    #submit-careers-modal .submit-careers-container {
        position: relative;
        overflow: visible;
        overflow-y : auto;
        scrollbar-width: thin;
        scrollbar-color: #000 transparent;
    }
    
    #submit-careers-modal .submit-careers-container::before {
        content: '';
        position: absolute;
        width: 170px;
        height: 160px;
        opacity: 0.8;
        top: -38px;
        left: -2px;
        transform: rotate(-6.34deg);
        z-index: 1;
        pointer-events: none;
        background-image: url("/static/assets/static/grey.5a18d3a7340a.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    #submit-careers-modal .submit-careers__title,
    #submit-careers-modal .submit-careers__subtitle {
        position: relative;
        z-index: 2;
    }

    #submit-careers-modal .submit-careers-thankyou::after {
        content: '';
        position: absolute;
        width: 170.24px;
        height: 160.11px;
        opacity: 0.8;
        top: -37px;
        left: -4px;
        transform: rotate(0.34deg);
        z-index: 0;
        pointer-events: none;
        background-image: url("/static/assets/static/grey.5a18d3a7340a.png");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}

