/* ------------------------------------------------------------------

  enCAST.pro — Base CSS Layout
  Clean, fast, mobile-first styling for all static + dynamic pages
  
  
  BASE ORANGE: #FFA500
  
  
------------------------------------------------------------------ */


/* --------------------------------------------------
  01 UTILITY CLASSES
-------------------------------------------------- */

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.w-100 { width: 100%; }

.ta-center { text-align: center; }







/* --------------------------------------------------
  GLOBAL RESET + BASICS
-------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  color: #222;
  background-color: #fff;
}


/* --------------------------------------------------
  MAIN TEXT STYLES
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 100;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.2rem;
}
.help-page h1 {
	text-align: center;
	margin-bottom: 0em;
}
.help-page .logo {
	text-align: left;
}


h2 {
  font-size: 2em;
}
.help-page h2 {
	font-size: 2em;
}

h3 {
  font-size: 1.5em;
}
.help-page h3 {
	font-size: 1.5em;
	margin-left: 10px;
}

p {
  font-size: 1em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #333;
}
.help-page p {
	font-size: 1.05rem;
	letter-spacing: 1px;
}


.help-page .page-body,
.tech-page .page-body,
.admin-page .page-body,
.guides-page .page-body {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.75;
}

.help-page h2,
.tech-page h2,
.admin-page h2,
.guides-page h2 {
  font-size: 1.6em;
  margin-top: 1.5em;
}



/* Make all images within page-body responsive */
.page-body img {
  max-width: 100%;              /* Never exceed parent container width */
  height: auto;                 /* Maintain aspect ratio */
  display: block;               /* Remove inline spacing issues */
  margin-left: auto;            /* Center the image */
  margin-right: auto;           /* Center the image */
}

/* Override inline width/height styles for responsive behavior */
.help-page .page-body img,
.tech-page .page-body img,
.guides-page .page-body img,
.admin-page .page-body img {
  max-width: 100% !important;
  height: auto !important;      /* Override inline height to maintain ratio */
}

/* Optional: Add some vertical spacing around images */
.page-body img {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}




/* --------------------------------------------------
  LIST STYLES — Bullet and Numbered Lists
-------------------------------------------------- */

ul, ol {
  margin-left: 1.5rem; /* Adds left space to indent the whole list */
  padding-left: 1.5rem; /* Ensures bullets/numbers don't touch edge */
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

li {
  line-height: 1.5;
  margin-top: 0.5em;
}

/* --------------------------------------------------
  link
-------------------------------------------------- */
a {
  color: #0669ac;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* --------------------------------------------------
  LAYOUT CONTAINERS
-------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}


.grey {
	color: #666;
}


/* --------------------------------------------------
  HEADER + NAVIGATION
-------------------------------------------------- */
.site-header {
  background: #f8f8f8;
  border-bottom: 1px solid #ddd;
  z-index: 1;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #222;
}
.logo a {
  text-decoration: none;
}
.logo a:hover {
  text-decoration: none;
}
.logo img {
  height: 50px;
  vertical-align: middle;
  margin-right: 8px;
}


/* --------------------------------------------------
  MAIN PAGES
-------------------------------------------------- */

/* Shared container styles */
main.container {
  padding: 2rem;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

/* Help page background */
body.help-page main.container {
  background-color: #f0f9ff;
}

/* Tech page background */
body.tech-page main.container {
  background-color: #fdf6e3;
}

/* Guides page background */
body.guides-page main.container {
  background-color: #f1dfa2; 
}
/* Hollywood guides - Green background */
body.guides-page.guide-hollywood main.container {
  background-color: #e8f5e9; /* Light green */
}
/* Intimacy guides - Yellow background */
body.guides-page.guide-intimacy main.container {
  background-color: #fff8e1; /* Light yellow */
}
/* Example for future guides: */
body.guides-page.guide-casting main.container {
  background-color: #e3f2fd; /* Light blue */
}


/* Admin page background */
body.admin-page main.container {
  background-color: #fff5f5;
}

/* Static page background */
body.static-page main.container,
body.home-page main.container {
  background-color: #f9f9f9;
}

/* Base watermark layer */
body.admin-only main.container::before,
body.hidden-page main.container::before {
  content: attr(data-watermark);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  font-size: 8vw;                /* Responsive to container width */
  color: rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transform: rotate(-15deg);      /* Less angle */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  left: 0;
  right: 0;
  width: auto;
}


/* Ensure the container is relatively positioned */
main.container {
  position: static; /* default */
  z-index: auto;    
}

/* ========================================================
   COOKIE CONSENT BAR STYLES — shown to guests if not accepted
   ======================================================== */
#cookie-consent-bar[role="presentation"] {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #222;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  z-index: 99999;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
  visibility: visible !important;    /* ensure not visually hidden */
  opacity: 1 !important;             /* force visible */
}

.cookie-bar-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;                 /* horizontal layout: text and button */
  justify-content: space-between;
  align-items: center;
}

/* Small orange button style for 'Accept' */
.cookie-bar .btn.small {
  background: #FFA500;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #000;
  cursor: pointer;
  border-radius: 4px;
}
.cookie-bar {
  display: none;
}
.cookie-bar.visible {
  display: block;
}

/* --------------------------------------------------
  FOOTER
-------------------------------------------------- */
.site-footer {
  background: #f8f8f8;
  padding: 2rem;
  font-size: 0.9rem;
  color: #666;
}

.site-footer a {
  color: #666;
}

.application-table form button {
  padding: 3px;
}



/* --------------------------------------------------
  ANIMATIONS + EFFECTS
-------------------------------------------------- */
a, .cta {
  transition: all 0.2s ease-in-out;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* --------------------------------------------------
  FORMS — admin + public
-------------------------------------------------- */

/* Form wrapper */
.form-block {
  background: #fefefe;
  padding: 2rem;
  margin: 2rem auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-width: 800px;
}

.form-block select {
  width: auto;
  margin-bottom: 0;
}

/* Labels and inputs */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1.2rem;
  background-color: #fff;
  color: #222;
  min-height: 3.31em;	/* to match the choice dropdowns */
}

textarea {
  resize: vertical;
}

/* Checkboxes inline */
.checkboxes {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.inline-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: normal;
}

/* Submit button */
button[type="submit"] {
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #005fa3;
}

.button-align-right {
  display: flex;
  justify-content: flex-end;  /* push content (button) to the right */
  margin-top: 1em;
  margin-bottom: 1.5em;
}


.required-star {
  color: red;
  margin-left: 0.25em;
  font-weight: bold;
}
	


/* *****************************************************************************
   .form-errors — shared error box for form validation messages
   Used throughout the site wherever user-facing errors need to be shown
***************************************************************************** */
.form-error {
  background-color: #f9e6e6;
  border: 1px solid #d20000;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.95em;
}

.form-error ul {
  margin: 0;
  padding-left: 20px;
}


/* *****************************************************************************
   .form-success — shared success message box for form submissions
   Used throughout the site for positive user actions (e.g. saved, updated)
***************************************************************************** */
.form-success {
  background-color: #e7f9e6;
  border: 1px solid #3c9300;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.95em;
}

/* ==========================================================================
   .form-neutral — Non-error message block for contextual guidance
   ========================================================================== */
.form-neutral {
  background-color: #f7f8fa;     /* Light neutral background */
  border: 1px solid #ffa500;
  padding: 10px 16px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.form-neutral.center-text {
  text-align: center;
}

.form-neutral p:last-of-type,
.form-success p:last-of-type,
.form-errors p:last-of-type {
  margin-bottom: 0;
}



/* *****************************************************************************
   .form-help — inline help text shown below a label
   Used to explain input requirements or optional guidance
***************************************************************************** */
.form-help {
  font-size: 0.875em;
  color: #555;
  margin: 4px 0 10px 0;
  line-height: 1.4;
}


/* *****************************************************************************
   .user-display-name — inline name label used in site header
   Shows currently logged-in user's name next to the logo or nav
***************************************************************************** */
.user-display-name {
  font-size: 0.75em;
  margin-left: 12px;
  color: #888;
}


.actor-item-small {
    width: 100px;
    font-size: 0.70em;
}
.actor-item-small .actor-photo img {
    width: 100%;
    height: auto;
}
.actor-item-small h3 {
    font-size: 0.9em;
    margin: 0.4em 0;
}
.actor-item-small p {
    font-size: 0.8em;
}


/* *****************************************************************************
   .profile-dump — displays full user row in a simple list format
   Used for admin/debug or complete profile review
***************************************************************************** */
.profile-dump {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95em;
}

.profile-dump li {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.profile-sub-type {
  display: block;         /* Ensures it takes up full width */
  text-align: right;      /* Aligns text to the right */
  font-style: italic;     /* Italic text for visual distinction */
  color: #666;            /* Optional: softer text tone */
}


/* *****************************************************************************
   Tabbed Profile Form UI
***************************************************************************** */
.form-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;             /* tighter spacing */
  list-style: none;
  margin-bottom: 1rem;
  padding: 0;
  border-bottom: 2px solid #ccc;
}

.form-tabs li {
  padding: 6px 12px;         /* slightly smaller padding */
  font-size: 0.95rem;        /* slightly smaller font */
  line-height: 1.2;          /* tighter vertical alignment */
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  white-space: nowrap;
  cursor: pointer;
}

.form-tabs li.active {
  background: #fff;
  font-weight: bold;
  border-bottom: 2px solid white;
}

.form-tab-content {
  display: none;
}
.form-tab-content.active {
  display: block;
}

/* Remove default fieldset styling for cleaner layout */
fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem 0; /* optional spacing between sections */
}

/* Optional: style legend to look like a heading */
legend {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}


/* *****************************************************************************
   .profile-photos — displays uploaded profile photos (thumbnails)
***************************************************************************** */
.profile-photos {
  margin-top: 2em;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-thumb {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 4px;
}




/* --------------------------------------------------------------------------
   SPAM QUESTION BLOCK
-------------------------------------------------------------------------- */
.spam-question-block {
	margin-bottom: 20px;

}
.spam-question-block .radio-option {
	margin-left: 20px;
}


.entry-box {
  position: relative;
  margin-bottom: 40px;
}

/* Align Delete button to right on same row */
.delete-div {
	float: right;
    margin-top: -35px;
}
.delete-div .delete-inline-form {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: -42px; /* aligns vertically with Save */
}










.openai-block {
	margin-bottom: 1em;
	padding: 0.75em 1em;
	background: #f9f9f9;
	border-left: 4px solid #ccc;
}
.openai-block strong {
	color: #222;
}

.openai-response {
	background: #f9f9f9;
	padding: 1em;
	border-left: 4px solid #ccc;
}
.openai-response .response-item {
	margin-bottom: 0.75em;
}
.openai-response ul {
	margin: 0.5em 0 0 1em;
	padding: 0;
}


/* --------------------------------------------------------------------------
   Casting Grid Layout — Responsive clickable casting boxes with no underlines
-------------------------------------------------------------------------- */

/* Grid wrapper for all casting items */
.casting-grid {
  display: grid; /* Use CSS grid layout */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  /* Dynamically fill the row with boxes at a minimum width of 300px */
  gap: 2rem; /* Spacing between boxes */
  margin-top: 2rem; /* Spacing above the grid */
}

/* Clickable link that wraps the entire casting box */
.casting-item-link {
  display: block;             /* Make entire link area a block */
  color: inherit;             /* Inherit text color */
  text-decoration: none;      /* Remove default underline */
  transition: transform 0.1s ease-in-out;
}

/* Zoom effect on hover */
.casting-item-link:hover {
  transform: scale(1.01);     /* Slight zoom effect */
}

/* Casting box content inside each link */
.casting-item {
  border: 1px solid #ccc;     /* Light grey border */
  padding: 1rem;              /* Internal spacing */
  border-radius: 4px;         /* Rounded corners */
  background-color: #fff;     /* White background */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Soft default shadow */
  transition: box-shadow 0.2s ease;
}

/* Stronger shadow when hovering the box */
.casting-item:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   Greyed-out visual styling for expired castings
   Applied when .casting-item has the 'expired' class
   ============================================================================ */
.casting-item.expired {
  opacity: 0.6;                 /* Slight transparency */
  background-color: #f9f9f9;    /* Soft grey background */
}


.casting-meta-inline {
	font-size: 0.85em;	
}


/* --------------------------------------------------------------------------
   Remove all underline effects inside clickable casting boxes
-------------------------------------------------------------------------- */

/* Disable underlining for all child elements inside .casting-item-link */
.casting-item-link *,
.casting-item-link *:hover,
.casting-item-link:hover * {
  text-decoration: none !important;
  color: inherit !important;
}

/* Absolute override to remove underline from the link element itself */
a.casting-item-link:hover {
  text-decoration: none !important;
  color: inherit !important;
}


.sort-toggle, .form-note {
	font-size: 0.9em;
    text-align: center;
    margin-top: 20px;
}


/* ------------------------------------------------------------------------- */
/* Actor Grid Layout                                                         */
/* ------------------------------------------------------------------------- */

.actor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem; /* or adjust spacing as needed */
}

.actor-item-link {
  text-decoration: none;
  color: inherit;
}

.actor-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.2s ease;
  position: relative;
}

.actor-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.actor-photo {
  width: 100%;
  max-width: 120px;
  margin: 0 auto 0.8rem;
  /* Remove the rounded shape */
  border-radius: 0;
  overflow: hidden;
}

.actor-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Optional: crops image if needed */
}

.actor-item h3 {
  font-size: 1.1em;
  margin: 0.3em 0 0.1em;
}

.actor-item p {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

/* ============================================================================
   CASTING APPLICANT GROUP STYLING — sortable-group
   Adds visible borders, spacing, and minimum height for all groups
============================================================================ */
.actor-grid.sortable-group {
  border: 1px dotted #ccc;        /* Subtle dotted border */
  padding: 1rem;                  /* Inner spacing */
  margin-bottom: 2rem;            /* Space between groups */
  min-height: 100px;              /* Ensure empty groups show area */
  border-radius: 6px;             /* Optional: rounded corners */
  background-color: #f9f9f9;      /* Soft background for clarity */
}




/* ==========================================================================
   Two-Column Layout for Admin Link Sections
   Used to display two sets of <ul> blocks (e.g. User Testing and Other Pages)
   in a responsive, readable two-column format.
   Target container: <div class="two-column-links">
   ========================================================================== */

.two-column-links {
    display: flex;              /* Enables horizontal flexbox layout */
    gap: 2rem;                  /* Adds spacing between the two columns */
    align-items: flex-start;    /* Aligns the top of both columns evenly */
    flex-wrap: wrap;            /* Allows wrapping to single column on narrow screens */
    margin-bottom: 2rem;        /* Adds spacing below the section */
}

.two-column-links > div {
    flex: 1 1 300px;            /* Each column takes equal space with min width of 300px */
    min-width: 0;              /* Prevents content overflow in edge cases */
}




/* =============================================================================
   SUBMISSION TEXT INFO ICON — Floating Bottom-Right Overlay
   =============================================================================
   This styles the optional info icon ("i") rendered inside .actor-item.
   It floats inside the box in the bottom-right corner without affecting layout.
============================================================================= */

.applicant-info-icon {
  position: absolute;            /* Anchor to bottom-right of .actor-item */
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  font-size: 0.85em;
  font-weight: bold;
  background: #eee;
  color: #333;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  cursor: default;
  z-index: 10;
}

/* Tooltip text box */
.applicant-info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 110%;                  /* Position to the left of the icon */
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: pre-wrap;
  font-size: 0.85em;
  display: none;
  min-width: 160px;
  z-index: 100;
}

/* Show tooltip on hover */
.applicant-info-icon:hover::after {
  display: block;
  text-align: left;
  width: 300px;
}



/* =============================================================================
   Field Help Popup Styling — Used for inline field-level tooltips
   Triggered by hovering over a ? icon next to form labels
   ============================================================================ */

/* -------------------------------------------------------------------------
   Help Icon Styling — small "?" icon placed next to label text
   ------------------------------------------------------------------------- */
.field-help-icon {
  display: inline-block;         /* Allows it to sit inline with label */
  margin-left: 6px;              /* Space between label and icon */
  cursor: pointer;               /* Show pointer on hover */
  position: relative;            /* Enables vertical offset */
  top: 1px;                     /* Slightly raised for better alignment */
  vertical-align: middle;
}


/* Animate icon scaling on hover */
.field-help-icon svg {
  transition: transform 0.15s ease; /* Smooth hover scaling */
}

.field-help-icon:hover svg {
  transform: scale(1.15);           /* Slight zoom effect */
}

/* =============================================================================
   .js-help-icon — Adjusts vertical alignment of help icons added via JavaScript
   ----------------------------------------------------------------------------- 
   In some layouts, JS-rendered icons appear slightly lower than expected,
   despite having the same class (.field-help-icon) as server-rendered ones.
   This offset fixes the misalignment visually by nudging them upwards.
============================================================================= */
.js-help-icon {
  top: -3px;	
}


.verification-report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.95em;
    background: #fff;
    border: 1px solid #ddd;
}

.verification-report-table th,
.verification-report-table td {
    padding: 0.75em;
    border: 1px solid #e2e2e2;
    text-align: left;
    vertical-align: top;
}

.verification-report-table th {
    background: #f8f8f8;
    font-weight: bold;
}

.verification-report-table tr.passed td {
    background-color: #f6fff6;
}

.verification-report-table tr.failed td {
    background-color: #fff6f6;
}

.verification-report-table tr.neutral td {
	background-color: #fefef6; /* pale yellowish or beige tone */
}


/* -------------------------------------------------------------------------
   Help Popup Box — appears on hover with guidance text
   ------------------------------------------------------------------------- */
.field-help-popup {
  position: absolute;               /* Float near icon */
  background: #f9f9f9;              /* Light neutral background */
  border: 1px solid #ccc;           /* Subtle border */
  border-radius: 4px;               /* Slight rounding of edges */
  padding: 0.6em 0.8em;             /* Internal spacing */
  margin: 0;                        /* No outer margin */
  font-size: 0.85em;                /* Slightly smaller text */
  line-height: 1.4;                 /* Comfortable vertical spacing */
  max-width: 280px;                 /* Prevent line from stretching too far */
  white-space: normal;             /* Allow content to wrap naturally */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
  color: #333;                      /* Text color */
  z-index: 1000;                    /* Appear above everything else */
  display: inline-block;            /* Fit to content and allow width control */
}

/* Reset margin inside <p> tags to remove bottom spacing */
.field-help-popup p {
  margin: 0;
}


/* Label Table — 3-column layout with clean spacing and subtle borders */

.label-table {
  border-collapse: collapse; /* Remove spacing between cell borders */
  width: 100%;               /* Full width */
  margin-top: 1em;           /* Spacing above table */
}

.label-table td {
  border: 1px solid #ccc;    /* Light grey border around each cell */
  padding: 0.75em;           /* Internal padding for readability */
  vertical-align: top;       /* Align text to top of each cell */
  font-size: 0.95em;         /* Slightly smaller than default text */
}

.label-table a {
  font-weight: bold;         /* Emphasise key label names */
  color: #333;               /* Dark grey for link */
  text-decoration: none;     /* Remove underline by default */
}

.label-table a:hover {
  text-decoration: underline; /* Underline on hover for clarity */
}

.label-table span {
  color: #666;               /* Subtle grey for label value text */
  display: block;            /* Force to new line under key */
  margin-top: 0.25em;        /* Small gap between key and value */
}



/* Shared layout for inline radio button groups */
.radio-inline-group {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap; /* Optional: wraps nicely on narrow screens */
}

.radio-inline-group label {
  display: flex;
  align-items: center;
  gap: 5px;
}


/* Shared layout for any two fields placed side by side */
.field-pair {
  display: flex;
  gap: 30px;
  align-items: flex-start; /* changed from flex-end */
  flex-wrap: wrap;
  width: 100%; /* force each child to take half of the parent */
  margin-bottom: 15px;
}
.field-pair > div {
  display: flex;
  flex-direction: column;
  flex: 1 1 0; /* flexible width */
  max-width: calc(50% - 15px); /* ensures both columns + gap fit in 100% */
  box-sizing: border-box;
}
.age-dropdown {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
}
/* *****************************************************************************
   .field-pair .shrink-field — Allows the left field (e.g. select) to auto-size
-----------------------------------------------------------------------------
Use this class on a child <div> of .field-pair to shrink to content width.
Prevents 50% default flex growth set in .field-pair > div.
***************************************************************************** */
.field-pair .shrink-field {
  flex: 0 0 auto;
  max-width: none;
}
/* *****************************************************************************
   .field-pair .expand-field — Forces the right field to take all remaining space
-----------------------------------------------------------------------------
Used alongside .shrink-field. Ensures the input field grows to fill space
left by the dropdown or other shrinked items.
***************************************************************************** */
.field-pair .expand-field {
  flex: 1 1 0;
  max-width: 100%;
}


/* =============================================================================
   RESPONSIVE HELP SEARCH BOX — Mobile-friendly search form
   Makes the search box stack vertically on small screens
   ============================================================================= */

/* Update existing help search box for responsiveness */
.help-search-box {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
  margin: 1em auto;
  width: 100%;                      /* Changed from fixed 400px to 100% */
  max-width: 400px;                 /* Limit width on larger screens */
  flex-wrap: wrap;                  /* Allow wrapping on small screens */
  padding: 0 1rem;                  /* Add horizontal padding for small screens */
  box-sizing: border-box;           /* Include padding in width calculation */
}

/* Search input field remains flexible */
.help-search-input {
  flex: 1 1 250px;                  /* Grow/shrink with min width of 250px */
  min-width: 0;                     /* Allow shrinking below 250px if needed */
  padding: 6px 8px;
  font-size: 1rem;
  line-height: 1.2;
}

/* Submit button */
.help-search-button {
  flex: 0 0 auto;                   /* Don't grow or shrink */
  padding: 6px 12px;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}



/* shoiwng help children */
.help-links {
    column-count: 3;
    column-gap: 2rem;
}




/* Wrapper for the "forgot your password?" link below the form */
.form-footer-link {
  text-align: right;       /* Align the link to the right side */
  font-size: 0.9em;         /* Slightly smaller font for subtlety */
  margin-top: 0.5em;        /* Space above the link to separate it from the button */
}

/* Styling the actual anchor tag inside the form footer */
.form-footer-link a {
  color: #555;              /* Medium grey for less visual weight than main buttons */
  text-decoration: none;    /* No underline by default for a cleaner look */
}

/* On hover, underline the link to show interactivity */
.form-footer-link a:hover {
  text-decoration: underline;
}




/* ========================================================
   HORIZONTAL SELECT FIELD LAYOUT
   Used when render_select_field() is called with 'horizontal' => true
   Displays label + help to the left, input field to the right
   ======================================================== */

.horizontal-wrapper .horizontal-field {
  box-sizing: border-box;
  display: block;
}
.form-row.horizontal-row .form-field.horizontal-field-container {
  flex: 0 0 100%;
  max-width: 100%;
  align-items: center;
}

.horizontal-field {
  display: grid;
  grid-template-columns: auto 1fr;   /* label takes what it needs, input fills rest */
  gap: 1.5rem;
  align-items: center;
  width: 70%;
}

.field-label {
  display: flex;
  align-items: baseline;         /* align label baseline to input baseline */
  justify-content: flex-end;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.95rem;            /* match Tom Select base font */
  line-height: 1.2;              /* prevent tall line-height from misaligning */
}

.field-input select {
  margin-bottom: 0.1rem;
  width: 100%;
  line-height: 1.2;              /* match label line height */
  font-size: 0.95rem;
}


/* -----------------------------------------------------------------------------  
   #photo-modal — Fullscreen photo overlay
   Covers the entire screen when viewing a photo
   Background darkens page; content is centered
----------------------------------------------------------------------------- */
#photo-modal {
  display: none;                        /* Hidden by default until triggered */
  position: fixed;                      /* Lock to viewport, not scrollable area */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);      /* Semi-transparent black overlay */
  z-index: 1000;                        /* Ensure it's above everything else */

  /* Center the image and controls inside the modal */
  display: flex;
  align-items: center;
  justify-content: center;
}


#photo-modal img {
  max-width: 90vw;      /* max 90% of screen width */
  max-height: 90vh;     /* max 90% of screen height */
  object-fit: contain;  /* ensure it scales nicely */
  border: 4px solid white;
  border-radius: 8px;
  box-shadow: 0 0 20px black;
}


/* -----------------------------------------------------------------------------  
   Modal Viewer Arrows + Close Button
----------------------------------------------------------------------------- */
#photo-modal .modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5em;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

#photo-modal .modal-prev,
#photo-modal .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5em;
  color: white;
  cursor: pointer;
  z-index: 1001;
  user-select: none;
}

#photo-modal .modal-prev {
  left: 30px;
}

#photo-modal .modal-next {
  right: 30px;
}


/* -----------------------------------------------------------------------------
   Modal caption (bottom-left of the image, not the screen)
----------------------------------------------------------------------------- */
.modal-caption {
  position: absolute;
  bottom: 1em;
  left: 1em;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.85);     /* semi-transparent white text */
  background: rgba(0, 0, 0, 0.4);       /* dark background for readability */
  padding: 0.4em 0.8em;
  border-radius: 4px;
  font-family: sans-serif;
  pointer-events: none;                /* clicks go through */
}



/* -----------------------------------------------------------------------------
   Upload List Layouts
----------------------------------------------------------------------------- */

/* Grid layout: used for photo and PDF files */
.upload-list.grid-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  padding: 0;
  list-style: none;
}

/* Vertical layout: used for MP3s or non-grid types */
.upload-list.vertical-layout {
  display: block;
  padding: 0;
  list-style: none;
}

/* Each file block */
.upload-item {
  position: relative;
  width: 150px;
  min-height: 100px;
  background: #f6f6f6;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5em;
  text-align: center;
}

.upload-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.upload-item button.remove-upload {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  font-size: 1.2em;
  color: #c00;
  cursor: pointer;
}

/* -----------------------------------------------------------------------------  
   Upload Block: Add Button — aligned right with spacing
----------------------------------------------------------------------------- */
.upload-add-button {
  display: inline-block;
  margin: 1em 0 1em auto;         /* Top, Right (auto), Bottom, Left (auto) */
  padding: 0.5em 1em;
  background-color: #f3f3f3;
  color: #333;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  float: right;                  /* Push it to the right */
}

.upload-add-button:hover {
  background-color: #e6e6e6;
  border-color: #bbb;
}

.upload-block, .upload-block-showreel {
  margin-bottom: 2.5em; /* Add space below upload block */
}

.upload-block::after, .upload-block-showreel::after {
  content: "";
  display: block;
  clear: both; /* Prevent float collapse */
}

/* ============================================================================
   Showreel Upload Block – Custom Styling
   ============================================================================ */

.upload-block-link .upload-item,
.upload-block-link .upload-new,
.upload-block-showreel .upload-item,
.upload-block-showreel .upload-new {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upload-block-link .upload-item input[type="url"],
.upload-block-link .upload-new input[type="url"],
.upload-block-showreel .upload-item input[type="url"],
.upload-block-showreel .upload-new input[type="url"] {
  width: 100% !important;
  display: block;
  box-sizing: border-box;
}

.upload-new input[type="url"],
.upload-new input[type="text"],
.upload-new select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #222;
  font-size: 0.9375rem;
  line-height: 1.4;
  margin-bottom: 1.2rem;
  box-sizing: border-box;
}



/* -----------------------------------------------------------------------------
   Native File Input Styling (e.g. <input type="file">)
   This affects the browser-rendered upload button
   - Adds margin for spacing
   - Makes it less harsh, more integrated with the layout
----------------------------------------------------------------------------- */
input[type="file"] {
  margin-top: 1.2em;              /* Space above the button */
  margin-bottom: 1em;             /* Space below the button */
  padding: 0.4em 0.8em;           /* Adds space inside the button (some browsers respect it) */
  border: 1px solid #ccc;         /* Light border to define the button shape */
  border-radius: 6px;             /* Rounded edges */
  background-color: #f9f9f9;      /* Light background for a softer appearance */
  font-size: 0.95rem;             /* Slightly smaller text */
  color: #333;                    /* Dark text for readability */
  cursor: pointer;                /* Show pointer on hover */
}




/* ============================================================================
   PDF Modal Viewer — used for displaying PDF documents in a fullscreen overlay
   Triggered by JS when clicking a .pdf-preview-link
============================================================================ */

.pdf-preview-link img {
	max-height: 80px;
	height: 80px;
}

/* --------------------------------------------------------------------------
   Outer Modal Overlay
   - Covers the full viewport
   - Uses flex to center modal-inner
   - Hidden by default until shown via JS
-------------------------------------------------------------------------- */
.file-preview-modal {
  display: none;                            /* hidden initially */
  position: fixed;                          /* lock to viewport */
  top: 0; left: 0; right: 0; bottom: 0;     /* cover entire screen */
  z-index: 10000;                           /* stay above all other elements */
  background: rgba(0, 0, 0, 0.75);          /* semi-transparent dark background */

  align-items: center;                     /* vertical centering (via flex) */
  justify-content: center;                 /* horizontal centering */
}

/* --------------------------------------------------------------------------
   Modal Inner Container
   - Box that holds the PDF and close button
   - Sized like a sheet of paper (max 900px wide or 90vw)
-------------------------------------------------------------------------- */
.file-preview-modal .modal-inner {
  width: min(900px, 90vw);                 /* max 900px or 90% of screen width */
  height: 90vh;                            /* 90% of screen height */
  background: #fff;                        /* white background like paper */
  border-radius: 8px;                      /* soft corners */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* drop shadow */
  display: flex;
  flex-direction: column;
  overflow: hidden;                        /* no scrollbars on outer box */
  position: relative;
}

/* --------------------------------------------------------------------------
   PDF Content Area (via <embed>)
   - Fills the entire modal box
   - Displays the loaded PDF
-------------------------------------------------------------------------- */
#pdf-frame {
  flex: 1;                                 /* fill remaining space */
  width: 100%;
  height: 100%;
  border: none;
}




/* --------------------------------------------------------------------------
   Close Button (top-right corner of modal)
   - Appears above PDF content
   - Allows closing with mouse
-------------------------------------------------------------------------- */
.file-preview-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

/* Tighter spacing for note fields inside upload blocks */
.upload-item input[type="text"] {
margin-top: 10px;
  margin-bottom: 0px;      /* Reduce vertical space under note input */
  padding: 4px 6px;        /* Optional: slightly smaller input padding */
  font-size: 0.95em;       /* Optional: slightly smaller font */
  line-height: 1.2;        /* Optional: compact line height */
}





/* ----------------------------------------------------------------------------- */
/* IMDb Profile Input Row: align all elements perfectly on the same vertical line */
/* ----------------------------------------------------------------------------- */

.imdb-field-wrapper {
  display: flex;
  gap: 6px;
  align-items: baseline; /* Align spans and input to the text baseline */
}

.imdb-field-wrapper input {
  font-size: 1rem;
  line-height: 1.4;
  height: auto;            /* Let it size naturally */
  padding: 2px 6px;
  margin: 0;               /* Remove unexpected alignment offsets */
  position: relative;
  top: 1px;                /* Nudge down to match span visually */
}



/* ==========================================================================
   Responsive Embedded Video Block (Used for full-width showreel)
   ========================================================================== */

/* Container that keeps a 16:9 aspect ratio and full width */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: transparent;
  border-radius: 8px;
  margin: 30px 0 1rem 0;
}

/* The embedded iframe is absolutely positioned inside the wrapper */
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;              /* Fill the wrapper */
  height: 100%;             /* Match height to 16:9 ratio */
  border: 0;                /* Remove default iframe border */
}

.showreel-meta {
  margin-top: 0;
  font-size: 0.95em;
  color: #555;
  text-align: right;
}


/* ==========================================================================
   Showreel Blocks for Additional Videos
   ========================================================================== */

.showreel-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;          /* space between blocks */
  margin-top: 1rem;
}

.showreel-thumb {
  width: 150px;
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showreel-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.showreel-thumb:active {
  transform: scale(0.98);
}

.showreel-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.showreel-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  word-wrap: break-word;
}

.showreel-language {
  font-size: 0.9rem;
  color: #666;
}


/* ==========================================================================
   Video Modal Styling
   ========================================================================== */

#video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#video-modal .modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  z-index: 1;
}

#video-modal .modal-inner {
  width: 90vw;
  max-width: 1000px;
  height: auto;
  position: relative;
  z-index: 2;
  height: auto;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
}

#video-modal .modal-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

#video-modal .modal-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Close button */
#video-modal .modal-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.video-modal,
.photo-modal {
  display: none; /* default for safety */
}

.video-modal.active,
.photo-modal.active {
  display: flex;
}
.hidden {
  display: none !important;
}

/* ==========================================================================
   Full-width sortable layout for showreel entries (video link)
   ========================================================================== */

.upload-block.type-link .upload-list.vertical-layout,
.upload-block.type-showreel .upload-list.vertical-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.upload-block.type-link .upload-item,
.upload-block.type-showreel .upload-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  width: 100%;        /* Full width of parent */
  cursor: grab;       /* Shows as draggable */
}

.link-block .upload-item:active,
.showreel-block .upload-item:active {
  cursor: grabbing;
}

.link-block .upload-item input,
.link-block .upload-item select,
.showreel-block .upload-item input,
.showreel-block .upload-item select {
  width: 100%;        /* Ensure child inputs span full width */
}


/* ==========================================================================
   Full-width sortable layout for PDF and MP3 file upload blocks
   ========================================================================== */

.upload-block.type-pdf .upload-list.vertical-layout,
.upload-block.type-mp3 .upload-list.vertical-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.upload-block.type-pdf .upload-item,
.upload-block.type-mp3 .upload-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  width: 100%;
  cursor: grab;
}

.upload-block.type-pdf .upload-item:active,
.upload-block.type-mp3 .upload-item:active {
  cursor: grabbing;
}

.upload-block.type-pdf .upload-item input,
.upload-block.type-pdf .upload-item select,
.upload-block.type-mp3 .upload-item input,
.upload-block.type-mp3 .upload-item select {
  width: 100%;
}


/* ==========================================================================
   Full-width sortable layout for saved user link
   ========================================================================== */

.link-block.type-link .upload-list.vertical-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.link-block.type-link .upload-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem;
  width: 100%;
  cursor: grab;
}

.link-block.type-link .upload-item:active {
  cursor: grabbing;
}

.link-block.type-link .upload-item input[type="text"],
.link-block.type-link .upload-item input[type="url"] {
  width: 100%;
}




/* ---------------------------------------------------------------------------
   PROFILE PAGE STYLING
--------------------------------------------------------------------------- */

.profile-page {
  max-width: 1200px;
  margin: 0em auto;             /* center the whole section horizontally */
  padding: 2em;
  display: block;               /* not flex — allows child sections to align normally */
}


/* Top section layout: photo + details */
.profile-header {
  display: flex;
  flex-direction: row;
  gap: 2em;
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* -----------------------------------------------------------------------------
   Profile info block (right of the photo)
   Ensures content wraps instead of pushing below the image
----------------------------------------------------------------------------- */
/* Right column: text left-aligned in its half */
.profile-info {
  width: 50%;
  text-align: left;
}
/* -----------------------------------------------------------------------------
   Profile photo (left column)
   Keeps the photo at a consistent size and responsive
----------------------------------------------------------------------------- */
/* Left column: image centered in its half */
.profile-photo {
  width: 50%;
  display: flex;
  justify-content: center;   /* Center image horizontally */
  align-items: flex-start;   /* Align top edge */
}

.profile-photo img {
  width: auto;
  max-width: 500px;       /* Limit image width */
  max-height: 500px;      /* Optional: prevent tall image overflow */
  height: auto;
  display: block;
  border-radius: 8px;
}


.profile-info h2 {
  margin: 0 0 0.5em 0;
  font-size: 1.8em;
}

.profile-info p {
  margin: 0.3em 0;
  font-size: 1em;
  line-height: 1.5;
}

/* Photo Gallery */
.profile-gallery {
	margin-top: 2em; /* or use px: e.g., 40px */
}

/* Thumbnail grid layout */
.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.thumb-grid img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.thumb-grid img:hover {
  transform: scale(1.03);
}



/* =============================================================================
   PDF File Display — Styled Like Showreels
   =============================================================================
   Used for displaying user-uploaded PDF files in a boxed grid layout.
   Replaces all previous .upload-* and .cv-* classes.
============================================================================= */

.profile-pdf-block {
  margin-top: 2em; /* spacing above the whole PDF section */
}

.pdf-list {
  display: flex;        /* lay PDF items side by side */
  flex-wrap: wrap;      /* allow wrapping on small screens */
  gap: 1.5rem;          /* space between items */
  margin-top: 1.5rem;   /* space between heading and items */
}

.pdf-item {
  width: 150px;           /* same size as showreel boxes */
  background: #f6f6f6;    /* light background */
  border: 1px solid #ccc; /* light border */
  border-radius: 6px;     /* rounded corners */
  padding: 1rem;          /* internal spacing */
  text-align: center;     /* center everything inside */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* hover effect */
  cursor: pointer;        /* makes the box feel clickable */
}

.pdf-item:hover {
  transform: scale(1.04);                              /* slight zoom */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);           /* soft shadow */
}

.pdf-icon {
  width: 60px;              /* fixed icon size */
  height: auto;
  margin: 0 auto 0.6rem auto; /* spacing below the icon */
  display: block;
}

.pdf-title {
  font-weight: bold;        /* bold title */
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.pdf-language {
  font-size: 0.85rem;       /* smaller text for language label */
  color: #666;              /* soft gray color */
}


/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
/* CASTING FORM
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------

/* -----------------------------------------------------------------------------
   INLINE INPUTS: Container for playing age min/max fields (side by side)
----------------------------------------------------------------------------- */
.inline-inputs {
  display: flex;                 /* Layout items in a row */
  align-items: baseline;        /* Align inputs and separator to text baseline */
  gap: 0.5rem;                  /* Space between elements */
}

/* -----------------------------------------------------------------------------
   INLINE NUMBER INPUT: Shared styling for age range fields
----------------------------------------------------------------------------- */
.inline-inputs input[type="number"] {
  width: 80px;                  /* Fixed width for consistent layout */
}

/* -----------------------------------------------------------------------------
   AGE SEPARATOR: Dash between min and max age inputs
----------------------------------------------------------------------------- */
.age-separator {
  font-weight: normal;          /* Prevent bold dashes in some fonts */
  line-height: 1;               /* Tight vertical spacing */
  padding-top: 6px;             /* Lift dash to align with number input text */
}


/* -----------------------------------------------------------------------------
   Styles for the email template list table in the admin interface
   ----------------------------------------------------------------------------- */

/* Outer table layout */
.template-list {
  width: 100%;                  /* Full width of container */
  border-collapse: collapse;    /* Remove space between borders */
  margin-top: 1em;              /* Space above the table */
}

/* Table header row */
.template-list th {
  text-align: left;             /* Left-align text */
  padding: 6px;                 /* Uniform cell padding */
  border-bottom: 2px solid #ccc; /* Stronger line under header */
}

/* Table data rows */
.template-list td {
  padding: 6px;                 /* Same padding as header for alignment */
  border-bottom: 1px solid #eee; /* Subtle line between rows */
}


.table-small {
    font-size: 0.85em;
}
.table-small td,
.table-small th {
    white-space: nowrap;
}

/* ==========================================================================
   .cancel-upload-row — Styled cancel button for file upload rows
   Provides clear text button instead of just a symbol
   ========================================================================== */

.remove-role-button,
.cancel-upload-row {
  background-color: #eee;         /* Light background for button feel */
  border: 1px solid #ccc;         /* Soft border for button outline */
  color: #900;                    /* Red text to indicate removal */
  font-size: 0.875rem;            /* Slightly smaller than base */
  padding: 4px 10px;              /* Proper button padding */
  margin-top: 6px;                /* Space from adjacent inputs */
  cursor: pointer;                /* Indicate clickable */
  border-radius: 4px;             /* Rounded corners for consistency */
}



/* ==========================================================================
   Share bar on profile/page/casting
   ========================================================================== */
.share-bar {}
.share-bar a {
	display: inline-block;
	margin: 0 6px;
}
.share-bar img {
	width: 25px;
	height: 25px;
}



/* ==========================================================================
   .anchor-link — Permalink symbol for heading anchors (e.g. #)
   Appears next to H1–H6 when hovered, allowing users to copy section link
   ========================================================================== */

.anchor-link {
  text-decoration: none;    /* Remove underline from the link */
  color: #aaa;              /* Light grey to keep it subtle */
  margin-right: 6px;        /* Space between the # and heading text */
  font-size: 0.9em;         /* Slightly smaller than heading text */
  visibility: hidden;       /* Hidden by default; shown only on hover */
}

/* Show the anchor link only when hovering over the heading */
h1:hover .anchor-link,
h2:hover .anchor-link,
h3:hover .anchor-link,
h4:hover .anchor-link,
h5:hover .anchor-link,
h6:hover .anchor-link {
  visibility: visible;      /* Reveal the # link when hovering the heading */
}

/* ==========================================================================
   Headings with anchor link — adjust scroll position to avoid clipping
   ========================================================================== */
h1[id],
h2[id],
h3[id],
h4[id],
h5[id],
h6[id] {
  scroll-margin-top: 80px;   /* Adjust based on height of fixed header */
}



/* ==========================================================================
   .upload-new label — spacing below all labels inside a new upload row
   ========================================================================== */
.upload-note-label, .upload-lang-label {
	font-size: 0.85em;
  margin-bottom: 8px;

}


/* ==========================================================================
   .wysiwyg — Styling for TinyMCE-enabled textareas
   ========================================================================== */

/* Ensure margin below the label */
.wysiwyg {
  display: block;
  margin-top: 0.5rem;      /* Optional spacing if label is above */
  margin-bottom: 2rem;     /* Space between editor and next element */
}
.tox-tinymce {
  margin-bottom: 1.5em;
}





/* ============================================================================
   A bit of info then a link in the profile edit form
   ============================================================================ */
.profile_info_link {
	margin-bottom: 20px;
}

/* ============================================================================
   Horizontal Rule: .my-line
   Thin, subtle line with 10px vertical spacing
   ============================================================================ */
hr.my-line {
  border: none;                /* remove default border */
  height: 1px;                 /* thin line */
  background-color: #ccc;      /* subtle light grey */
  width: 80%;                  /* set width */
  margin: 20px auto;           /* 20px top/bottom, auto left/right to center */
}


/* ============================================================================
   MP3 Inline Display: Player + Info on same line
   ============================================================================ */

.mp3-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mp3-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  flex-wrap: nowrap;
}

.mp3-item audio {
  width: 250px;
  flex-shrink: 0;
}

.mp3-inline {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9em;
  color: #444;
  flex-wrap: nowrap;
  flex: 1;
  min-width: 0;
}

.mp3-lang {
  flex-shrink: 0;
}

.mp3-divider {
  flex-shrink: 0;
  color: #aaa;
  font-size: 1em;
  user-select: none;
}

.mp3-note {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}


/* Profile Media Blocks */
.media_blocks {
	margin-top: 20px;
	
}



.profile-mp3-block, .profile-pdf-block {
	margin-bottom: 20px;
	
}



.upload-meta-label {
    font-size: 0.90rem;
    /* margin-bottom: 0.25em; */
    text-align: left;
    margin-left: 3px;
}



/* ============================================================
   MAIN NAVIGATION + DROPDOWN STYLES
   - Clean, subtle box-style menu
   - Smaller font size, no underlines
   - Hover highlights, rounded corners
   ============================================================ */

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 1rem;
  padding: 0;
  font-size: 0.95rem; /* Slightly smaller font */
}

/* All top-level menu link */
.main-nav ul > li > a {
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none; /* No underline */
  color: #333;
  background: #f9f9f9; /* Very light background */
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
  vertical-align: middle;
}

/* Hover effect for top-level menu link */
.main-nav ul > li > a:hover {
  background-color: #e6e6e6;
  color: #000;
}

/* Special style for the "Join/Subscribe" button */
.main-nav a.menu-accent {
  background: #0077cc;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.main-nav a.menu-accent:hover {
  background: #005fa3;
}

/* Parent items that have dropdowns */
.has-dropdown {
  position: relative;
}

/* Caret after parent link */
.has-dropdown > a::after {
  content: " ▼";
  font-size: 0.8em;
  margin-left: 6px;
}

/* Dropdown container */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-width: 200px;
  margin: 0;
  padding: 0;
  list-style: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Soft shadow */
  z-index: 1000;
}

/* Show dropdown when hovering */
.has-dropdown:hover .dropdown,
.has-dropdown .dropdown:hover {
  display: block;
}

/* Dropdown list items */
.has-dropdown .dropdown li {
  width: 100%;
}

/* Dropdown link */
.has-dropdown .dropdown li a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  background: #fff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s, color 0.2s;
  border-radius: 0; /* No radius inside the dropdown */
}

/* Last dropdown item — remove bottom border */
.has-dropdown .dropdown li:last-child a {
  border-bottom: none;
}

/* Hover effect for dropdown link */
.has-dropdown .dropdown li a:hover {
  background-color: #f5f5f5;
  color: #000;
}




/* List of official documents */
.official-documents { margin-top: 20px; }


/* Style the native HTML5 date picker input to match other fields */
input[type="date"] {
  width: 100%;              /* Full width like text inputs */
  padding: 0.6rem;          /* Same internal padding */
  border: 1px solid #ccc;   /* Light grey border */
  border-radius: 4px;       /* Slight rounding for consistency */
  margin-bottom: 1.2rem;    /* Standard bottom spacing */
  background-color: #fff;   /* White background */
  color: #222;              /* Dark text for readability */
  font-size: 1rem;          /* Match text input font size */
}



/* ===================================================================================
   .careful-button
   ===================================================================================
   Style for less-critical caution buttons (e.g., Social Media Promote).
   Matches .danger-button in layout but uses a soft orange tone.
   =================================================================================== */

.status-switch-button.careful {
    background-color: #f0ad4e;
}

.status-switch-button.careful:hover {
    background-color: #ec971f;
}


/* ===================================================================================
   .danger-button
   ===================================================================================
   Style for critical/dangerous action buttons (e.g., Delete Account).
   Emphasises the seriousness of the action with red color.
   =================================================================================== */

button.danger-button {
    background-color: #d9534f;
    color: #ffffff;
    border: none;
    padding: 0.75em 1.5em;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.danger-button:hover {
    background-color: #c9302c;
}

button.danger-button:disabled {
    background-color: #e0e0e0;
    color: #aaaaaa;
    cursor: not-allowed;
}

button.danger {
	background-color: #d9534f;
}







/* ===================================================================================
   .warning-message
   ===================================================================================
   Used for displaying serious warnings (e.g., before deleting an account).
   =================================================================================== */

.warning-message {
    background-color: #fff3cd; /* Soft yellow background (warning) */
    color: #856404; /* Dark gold/brown text */
    border: 1px solid #ffeeba; /* Light border matching background */
    padding: 1em;
    margin-bottom: 1.5em;
    border-radius: 5px;
    font-size: 1em;
}




/* Boost Preview Container */
.boost-preview {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px;
}

/* Left: Profile Photo */
.boost-preview-photo {
	flex: 0 0 auto;
	width: 180px;
	max-width: 100%;
}

/* Image should scale inside container */
.boost-preview-photo img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

/* Right: Mini Bio Text */
.boost-preview-bio {
	flex: 1 1 0;
	min-width: 200px;
}



/* ==========================================================================
   TERMS MODAL — Fullscreen Overlay
   ==========================================================================
   A hidden fixed-position modal that covers the entire viewport,
   darkens the background, and centers the modal content box.
========================================================================== */

#terms-modal {
  display: none; /* Initially hidden */
  position: fixed; /* Fixed to viewport */
  top: 0;
  left: 0;
  width: 100vw; /* Full width */
  height: 100vh; /* Full height */
  background: rgba(0, 0, 0, 0.7); /* Dark background overlay */
  z-index: 2000; /* High z-index to appear above everything */
  display: flex; /* Flexbox layout for centering */
  align-items: center; /* Vertical center */
  justify-content: center; /* Horizontal center */
  padding: 2rem;
}

/* ==========================================================================
   Modal Content Box
========================================================================== */
#terms-modal .modal-content {
  background: #fff; /* White background for content */
  padding: 2rem 3rem; /* Internal padding */
  border-radius: 10px; /* Rounded corners */
  width: 90%; /* Responsive width */
  max-width: 800px; /* Maximum width */
  max-height: 90vh; /* Prevent overflow on small screens */
  overflow-y: auto; /* Enable vertical scrolling if needed */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3); /* Soft shadow */
  position: relative; /* Needed for absolutely positioned close "X" */
}

/* ==========================================================================
   Top-right "X" Close Button
========================================================================== */
#terms-modal .modal-close-x {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 2rem;
  font-weight: bold;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

#terms-modal .modal-close-x:hover {
  color: #000; /* Darker on hover */
}

/* ==========================================================================
   Bottom Main Close Button
========================================================================== */
#terms-modal .modal-content button {
  display: inline-block;
  background-color: #0077cc; /* Main site blue */
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 2rem;
  text-align: center;
  transition: background-color 0.2s ease;
}

#terms-modal .modal-content button:hover {
  background-color: #005fa3; /* Darker blue on hover */
}



/* =============================================================================
   Modal Styling — Cancel Confirmation Modal
   enCAST.pro - Unified modal style, background, padding, corners, buttons
============================================================================= */

#cancelConfirmModal .modal-content {
    background-color: #f9f9f9;              /* Light neutral background, not pure white */
    padding: 20px;                          /* Comfortable inner spacing */
    border-radius: 12px;                    /* Soft rounded corners */
    max-width: 500px;
    margin: 100px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Subtle shadow for elevation */
}

/* Standard button styling (reuses existing styles via shared class) */
#cancelConfirmModal .modal-buttons button {
    padding: 10px 20px;
    font-size: 1rem;
    margin-right: 10px;
}

/* Optional: override specific buttons if needed */
#cancelConfirmModal .confirm-button {
    /* You can apply your standard confirm button class here if reused elsewhere */
}

/* Optional: override specific buttons if needed */
#cancelConfirmModal h3 {
    text-align: center;
	margin-bottom: 15px;
}

#cancelConfirmModal input[type="checkbox"] {
    transform: scale(1.4);       /* Increase size by 40% */
    margin-right: 8px;           /* Space between checkbox and label text */
    cursor: pointer;             /* Optional: make it clear it's clickable */
}

#cancelConfirmModal label {
    display: inline-flex;         /* Align checkbox and text horizontally */
    align-items: center;          /* Vertically center checkbox and text */
    gap: 8px;                     /* Optional: spacing between checkbox and text */
    margin-bottom: 10px;          /* Space between rows */
    flex-wrap: nowrap;            /* Prevent wrapping inside the label */
}


/* ============================================================================
   DIVIDER WITH TITLE (e.g. -------- Title --------)
   Creates a centered horizontal rule split by a label or heading.
   Useful for debug output, sections, or visual separators.
============================================================================ */

.hr-with-title {
	display: flex;              /* Use flexbox to align child elements (text + lines) */
	align-items: center;        /* Vertically center the title span with the lines */
	text-align: center;         /* Ensure the title text is centered */
	margin: 1em 0;              /* Add vertical spacing above and below the divider */
}

.hr-with-title::before,
.hr-with-title::after {
	content: '';                /* Generate line elements before and after the title */
	flex: 1;                    /* Allow the lines to expand and fill space equally */
	border-bottom: 1px solid #999;  /* Draw the actual horizontal rule line */
}

.hr-with-title:not(:empty)::before {
	margin-right: 0.5em;        /* Space between the left line and the title */
}

.hr-with-title:not(:empty)::after {
	margin-left: 0.5em;         /* Space between the right line and the title */
}



/* Basic code block styling */
pre code {
  display: block;
  background: #f4f4f4;
  color: #333;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95em;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* Basic syntax simulation */
code span.tag        { color: #008000; } /* green for tags */
code span.attr       { color: #0000cc; } /* blue for attributes */
code span.value      { color: #aa0000; } /* red for values */



/* Styled as a compact, subtle button for admin impersonation action */
/* Subtle button for admin impersonation — styled like a tag/pill */
button.impersonate-trigger[type="submit"], 
.impersonate-trigger,
a.impersonate-trigger {
    all: unset;
    font-size: 0.9em;
    color: #444;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    padding: 6px 10px;                  /* Slightly more padding than before */
    border-radius: 2px;                 /* Square corners */
    cursor: pointer;
    float: right;
    transition: background-color 0.2s, color 0.2s;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
	margin-left: 10px;
}

/* Darker on hover for visual feedback */
.impersonate-trigger:hover {
    background-color: #e2e2e2;
    color: #000;
}

/* Persistent impersonation banner shown during admin shadow sessions */
.impersonation-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffefc4;
    color: #333;
    font-size: 0.9em;
    padding: 8px 12px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
    border-top: 1px solid #ddd;
}

/* Exit button inside impersonation banner */
.impersonation-exit-button {
    font-size: 0.85em;
    margin-left: 12px;
    padding: 3px 8px;
    border: 1px solid #aaa;
    background: #fff;
    color: #444;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.impersonation-exit-button:hover {
    background: #eee;
}

.casting-flag-small {
	text-align: center;
	margin-bottom: 10px;
}




/* ============================================================================
   CASTING DISPLAY PAGE
   ========================================================================== */

/* Container for the full casting page content */
.casting-page {
  max-width: 800px;           /* Limit width for readability */
  margin: 0 auto;             /* Center the content */
  padding: 2rem 1rem;         /* Spacing around content */
  font-family: inherit;       /* Use site-wide font */
}

/* Wrapper for the country flag image */
.casting-flag {
  text-align: center;         /* Center the flag horizontally */
  margin-bottom: 1rem;        /* Spacing under flag */
}

/* Styling for the flag image itself */
.flag-icon {
  height: auto;               /* Maintain aspect ratio */
  display: inline-block;
  border-radius: 4px;         /* Slightly rounded corners */
}

/* Casting title heading */
.casting-title {
  text-align: center;         /* Centered title */
  font-size: 2rem;            /* Large heading */
  margin-bottom: 1.5rem;      /* Space below title */
}

/* Standard spacing for paragraphs inside metadata or overview blocks */
.casting-meta p,
.casting-overview p {
  margin: 0.3rem 0;
}

/* Block containing metadata (location, type, etc.) */
.casting-meta {
  background: #f9f9f9;        /* Light background */
  padding: 1rem;              /* Internal spacing */
  border-left: 4px solid #ccc;/* Emphasised left border */
  margin-bottom: 2rem;        /* Space below the box */
}

/* Section containing the project overview */
.casting-overview {
  margin-bottom: 2rem;
}

/* Section headings for overview and roles */
.casting-overview h2,
.casting-roles h2 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #eee; /* Underline heading */
  padding-bottom: 0.3rem;
}

/* Individual card for each role */
.casting-role-card {
  background: #f5f5f5;        /* Light grey card background */
  border: 1px solid #ddd;     /* Border around card */
  padding: 1rem;              /* Padding inside the card */
  margin-bottom: 1rem;        /* Spacing between cards */
  border-radius: 4px;         /* Rounded corners */
}

/* Role title inside each role card */
.casting-role-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Link shown to admin users only */
.admin-link {
  display: inline-block;
  margin-top: 2rem;
  color: #555;
  font-size: 0.9rem;
  text-decoration: underline;
}

/* Red bold warning for SOS flag */
.sos-flag {
  color: #b30000;             /* Dark red text */
  font-weight: bold;
}





/* ============================== */
/* Apply button block styling    */
/* ============================== */
.apply-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background-color: #0074cc;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.apply-button:hover,
.apply-button:focus {
  background-color: #005fa3;
  outline: none;
}

/* Container to center the button */
.apply-button-container {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}


/* castings search form */
.search-wrapper.hidden {
    display: none;
}



/* ============================================================================
   Clean Compact Form Layout — Side-by-side, stacked labels
   ============================================================================ */

.form-row {
  display: flex;                 /* Horizontal layout */
  flex-wrap: wrap;              /* Wrap on smaller screens */
  gap: 1.5rem;                  /* Consistent spacing between fields */
  margin-bottom: 1rem;          /* Space below each group */
}


.form-row .form-field {
	flex: 0 0 auto;          /* don't grow, don't shrink, size to content */
	max-width: none;         /* remove width cap */
	display: flex;
	flex-direction: column;       /* Ensure label is on top */
	padding-left: 1.5rem;         /* spacing from the border */
	border-left: 1px solid #ddd;  /* subtle vertical divider */
}
.form-row .form-field:first-child {
  border-left: none;             /* Remove divider from the first field */
  padding-left: 0;               /* No offset on the first field */
}

/* Ensure selects and inputs fill the width of their containers */
.form-row select,
.form-row input {
  width: 100%;
  min-height: 34px;
  font-size: 0.95rem;
}

/* Label styling for readability */
.form-row label {
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

/* Form button group */
.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}




/* ==========================================================================
   HOMEPAGE LAYOUT STYLES — enCAST.pro
   ========================================================================== */

.hero-container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1rem 1.5rem;
}


/* ------------------------------
   HERO SECTION WITH OVERLAY
   ------------------------------ */
.hero-section {
  position: relative;
  background: #000 url('/uploads/admin/pages/hero-bg.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* 50% black overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Logo + site name inline */
.hero-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-brand .logo {
  height: 60px;
  width: 60px;
}

.site-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

/* Tagline */
.hero-section h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.25rem;               /* Increase text size */
  font-weight: 500;                 /* Make it medium weight */
  color: #fff;                      /* Force white text */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);  /* Soft shadow for contrast */
  margin-bottom: 2rem;
}


/* Button group */
.hero-buttons a {
  display: inline-block;
  margin: 0.5rem 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero-section .hero-pitch {
  margin-top: 3rem;
}
.hero-section .hero-pitch p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  opacity: 0.8;
  margin-top: 0rem;
}


/* CTA button styles */
.btn.primary {
  background-color: #FFA500;
  color: #000;
}

.btn.primary:hover {
  background-color: #e69500;
}

.btn.secondary {
  background-color: #fff;
  color: #000;
  border: 2px solid #FFA500;
}

.btn.secondary:hover {
  background-color: #f2f2f2;
}

.btn.tertiary {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.btn.tertiary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Special casting submission button (styled like primary but slightly distinct) */
.btn.cast {
  background-color: #ffd700; /* gold-like tone distinct from orange */
  color: #000;
  border: 2px solid #ffa500;
}

.btn.cast:hover {
  background-color: #ffc000; /* slightly darker on hover */
  border-color: #e69500;
}


/* ------------------------------
   STATS SECTION
   ------------------------------ */
.stats-section {
  background: #f7f7f7;
  padding: 1rem 2rem;
  text-align: center;
}

.stats-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.stat-block {
  width: 180px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  padding: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #FFA500;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #333;
}


/* ====================================
   IMPROVED: Info Links Section Styling
   ==================================== */

.info-main-heading {
  font-size: 2rem;
  text-align: center;
  font-weight: 600;
  color: #222;
  margin-bottom: 1.2rem;
}

.info-sub-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.info-sub-links a {
  color: #0077cc;                 /* Match site's primary blue */
  text-decoration: none;
  transition: color 0.2s;
}

.info-sub-links a:hover {
  color: #005fa3;                 /* Slightly darker on hover */
}

.info-sub-links .separator {
  color: #999;                    /* Subtle neutral dot */
  font-size: 1.1rem;
  user-select: none;
}


/* ========================================================
   Refine Search Button — Casting Search Toggle
   ======================================================== */
.search-toggle-wrapper {
  text-align: right;             /* Right-align the button */
  margin-bottom: 1rem;           /* Add spacing below the wrapper */
}

.refine-search-btn {
  background: #f2f2f2;           /* Light subtle background */
  color: #333;                   /* Dark text for readability */
  border: 1px solid #ccc;        /* Soft border */
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.refine-search-btn:hover {
  background: #e6e6e6;           /* Slightly darker on hover */
}


/* ========================================================
   VERIFIED ICON
   ======================================================== */
.verified-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 5px;
}
h1 .verified-icon {
  position: relative;
  top: -12px;             /* move it 4px upward */
  width: 20px;
  height: 20px;
  margin-left: 6px;
}



/* ========================================================
   PROFILE PAGE, SHOWS THE ID
   ======================================================== */

.show-id {
	margin-bottom: 10px;	
}



/* ============================================================================
   CASTING TAGS ROW
   ============================================================================ */
.casting-tags {
  text-align: right;
  font-size: 0.95em;
  margin: 0.5em 0;
  line-height: 1.4;
}

.casting-tag {
  display: inline-block;
  color: #555;
  text-decoration: underline;
  margin-left: 0.5em;     /* spacing from previous tag */
  position: relative;
}

.casting-tag::before {
  content: '•';
  display: inline-block;
  margin-right: 0.5em;    /* space between dot and tag text */
  color: #999;
}

.casting-tag:first-child {
  margin-left: 0;
}

.casting-tag:first-child::before {
  content: '';
  margin-right: 0;
}



/* ============================================================================
   AGE DISPLAYS
   ============================================================================ */
.age-display {
	font-size: 0.75em;
	margin-top: 6px;
}


/* ============================================================================
   SUBSCRIPTION STATUS
   ============================================================================ */
.status-cancelled { color: orange; font-weight: bold; }
.status-expired { color: red; font-weight: bold; }
.status-failed { color: purple; font-weight: bold; }


/* -----------------------------------------------
   Small Inline Admin Action Buttons
   Used for 'drop' and '+6m' in subscriptions list
------------------------------------------------- */
button.subscription-action {
	padding: 2px 6px;
	font-size: 12px;
	font-weight: normal;
	border: 1px solid #999;
	background: #f0f0f0;
	color: #333;
	cursor: pointer;
	border-radius: 3px;
	margin: 0 2px;
}
button.subscription-action:hover {
	background: #e0e0e0;
}



/* ============================================================================
   HELP PAGE TAG STYLING
   Used in: help_children.php — to mark admin-only and tech-only help pages
   Tags: .tag, .tech-tag, .admin-tag, .invisible-tag
   ============================================================================ */

.tag {
  font-size: 0.8em;
  color: #999;
  margin-left: 0.0em;
}

.tech-tag {
  color: black; /* blue for tech */
}

.admin-tag {
  color: #c00000; /* red for admin */
}

.invisible-tag {
  color: #666;
  font-style: italic;
}


/* ============================================================================
   SUBSCRIPTION PLAN
   ============================================================================ */
.subscription-plans-container {
    display: flex;
    flex-wrap: wrap;                /* allow wrapping */
    justify-content: space-between;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

.subscription-plan-box {
    flex: 1 1 300px;               /* responsive flex behaviour with min width */
    min-width: 280px;             /* prevents shrink too far */
    border: 2px solid #ccc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background-color: #f9f9f9;
    transition: border-color 0.2s ease;
}

.subscription-plan-box:hover {
    border-color: #0070f3;
}

.plan-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.plan-subtext {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.plan-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #0070f3;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.plan-button:hover {
    background-color: #0056cc;
}



/* ============================================================================
   enCAST.pro – Subscription Comparison Table Styles
   Applies to the Free vs Pro comparison on the subscription page
   ---------------------------------------------------------------------------
   - Full-width responsive table with max-width constraint
   - Clear section headers for feature categories
   - Uses tick/cross icons or numeric values per feature
   - Special styling for Verified-only features (*✓)
   - Optimised for clarity, balance, and accessibility
============================================================================ */

/* Table Heading */
.compare-heading {
    text-align: center;
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

/* Main Table Wrapper */
.compare-table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    border-collapse: collapse;
    font-size: 0.95rem;
}

/* All table cells and headers */
.compare-table th,
.compare-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

/* Table headers */
.compare-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-transform: uppercase;
}

/* First column (feature names) aligns left */
.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
}

/* Category section rows (e.g. profile, casting) */
.compare-table .compare-section td {
    background-color: #eaeaea;
    font-weight: bold;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

/* Verified-only cell highlight */
.compare-table td:has(span.verified) {
    background-color: #fff8e6; /* light yellow */
    font-style: italic;
}

/* Generic tick symbol styling */
.compare-table td.tick::after {
    content: '✓';
    color: #2e7d32; /* green */
    font-weight: bold;
    font-size: 1.5rem;
}

/* Generic cross symbol styling */
.compare-table td.cross::after {
    content: '✗';
    color: #792020; /* dull red */
    font-weight: bold;
    font-size: 1rem;
}

/* Note below table (e.g. explanation for *✓) */
.compare-note {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    margin-top: 0.5rem;
}

.actor-grid.empty-group {
  font-size: 0.9em;
  color: #777;
  font-style: italic;
  padding: 1rem 0;
}


/* =============================================================================
   CASTING RIBBON — Top-Left Status Banner (Open / Closing Soon / Closed)
   =============================================================================
   Positions a diagonal ribbon in the top-left corner of .casting-page.
   Adjusted for proper size, alignment, and visual clarity.
   ============================================================================= */

.casting-page {
  position: relative; /* Required for ribbon positioning */
}

.casting-ribbon {
  position: absolute;
  top: 80px;
  left: 0;

  /* Offset and angle to sit diagonally in the top-left corner */
  transform: translate(-25%, -25%) rotate(-35deg); /* Moves it inward and rotates */
  transform-origin: top left;

  /* Appearance */
  background: #444;               /* Fallback color */
  color: #fff;
  font-size: 0.95em;              /* Slightly larger for readability */
  font-weight: bold;
  padding: 0.5em 2.5em;           /* Wider ribbon to span the corner more fully */

  box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* Visibility enhancement */
  pointer-events: none;          /* Decorative only */
  z-index: 10;                   /* Above content but not blocking layout */
}

/* Ribbon status colors */
.ribbon-open {
  background: #3c9e3c;
}

.ribbon-soon {
  background: #ffa500;
}

.ribbon-closed {
  background: #777;
}

/* ========================================================================== */
/* Compact Grid Badge for Casting Boxes (used in list view)                  */
/* ========================================================================== */

/* ============================================================================
   COMPACT DIAGONAL RIBBON for GRID view (top-left of casting-item)
============================================================================ */

.casting-badge-compact {
  position: absolute;
  top: 3rem;
  left: -1rem;

  transform: rotate(-35deg);
  transform-origin: top left;

  font-size: 0.7em;
  font-weight: 400;
  padding: 0.3em 2em; /* Wider to span diagonally */
  border-radius: 0;

  color: #fff;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  pointer-events: none; /* Do not block clicks */
}

/* Badge color states (do NOT share with full ribbon system) */
.casting-badge-open   { background-color: #2ecc71; } /* green */
.casting-badge-soon   { background-color: #ffa500; color: white !important; } /* orange */
.casting-badge-closed { background-color: #7f8c8d; } /* grey */

/* Make sure the parent container is relatively positioned */
.casting-item {
  position: relative;
}



/* ============================================================================
   Casting Admin Link — "View Applicants" button shown only to admin or owner
   Appears at the bottom of the full casting page
============================================================================ */

/* Container for the admin-only link */
.casting-admin-link {
  margin-top: 2rem;         /* Spacing above the button */
  text-align: right;        /* Align button to the right side of the page */
  font-size: 0.9em;         /* Slightly smaller text to match UI scale */
}

/* Button style for the link */
.casting-admin-link a {
  display: inline-block;    /* Prevent full-width stretch */
  padding: 0.5em 1em;       /* Add internal padding for click area */
  background-color: #0066cc;/* Primary blue background */
  color: #fff;              /* White text for contrast */
  font-weight: 600;         /* Semi-bold text */
  border-radius: 4px;       /* Soft rounded corners */
  text-decoration: none;    /* Remove underline */
}

/* Hover style to darken the button on interaction */
.casting-admin-link a:hover {
  background-color: #004c99; /* Darker blue on hover */
}


/* =============================================================================
   CASTING APPLICATION PHOTO SELECTION STYLES
   -----------------------------------------------------------------------------
   Photos are shown in a grid with checkboxes displayed underneath each image.
   Only two can be selected. JS handles the enforcement.
   ============================================================================= */

.photo-select-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 1rem;
	align-items: start;
}

.photo-select-thumb {
	display: flex;
	flex-direction: column; /* Image first, checkbox second */
	align-items: center;
	cursor: pointer;
	text-align: center;
}

.photo-select-thumb img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border: 2px solid #ccc;
	border-radius: 6px;
}

/* Checkbox styling */
.photo-select-thumb input[type="checkbox"] {
	margin-top: 0.5rem;
	transform: scale(1.4); /* Increase checkbox size */
	cursor: pointer;
}




/* =============================================================================
   CASTING APPLICATION — CV SELECTION BLOCK
   -----------------------------------------------------------------------------
   A compact, grid-based selector showing all available PDF CVs.
   Each block includes a preview link, note, and language if available.
   Only one can be selected (radio button). Clickable styling applied.
   ============================================================================= */

.pdf-select-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.pdf-select-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	width: 120px;
	text-align: center;
}

.pdf-select-block input[type="radio"] {
	margin-top: 0.5rem;
	transform: scale(1.3);
	cursor: pointer;
}

.pdf-icon-small {
	width: 48px;
	height: auto;
	margin-bottom: 0.25rem;
}

.pdf-title {
	font-size: 0.9rem;
	margin-top: 0.25rem;
}

.pdf-language {
	font-size: 0.8rem;
	color: #666;
}



/* =============================================================================
   CASTING APPLICATION — SHOWREEL SELECTION GRID
   -----------------------------------------------------------------------------
   This grid displays all actor showreels with a modal preview icon and a
   radio input to select exactly one. Clicking the preview triggers the
   modal viewer. Layout is compact, similar to profile.
   ============================================================================= */

.showreel-select-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.showreel-thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: pointer;
	width: 140px;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.showreel-preview-link {
	width: 100%;
	padding: 0.5rem 0;
	cursor: pointer;
}

.showreel-icon {
	font-size: 2rem;
	margin-bottom: 0.3rem;
}

.showreel-title {
	font-size: 0.9rem;
}

.showreel-language {
	font-size: 0.8rem;
	color: #666;
	margin-top: 0.25rem;
}

.showreel-thumb input[type="radio"] {
	margin-top: 0.5rem;
	transform: scale(1.3);
	cursor: pointer;
}



/* =============================================================================
   CASTING APPLICATION — MP3 SELECTION BLOCK
   -----------------------------------------------------------------------------
   Renders MP3 reels in a responsive grid with preview players, language/note,
   and a radio button. Mirrors the layout used for PDFs and showreels.
   ============================================================================= */

.mp3-select-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.mp3-select-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 180px;
	padding: 0.75rem;
	border: 1px solid #ccc;
	border-radius: 6px;
	text-align: center;
	background-color: #fafafa;
	cursor: default;
}

.mp3-select-block audio {
	width: 100%;
	margin-bottom: 0.5rem;
}

.mp3-language {
	font-size: 0.85rem;
	font-weight: bold;
	margin-top: 0.25rem;
}

.mp3-note {
	font-size: 0.8rem;
	color: #555;
}
.mp3-label {
	color: #999;
	font-style: italic;
}

.mp3-radio-container {
	margin-top: 0.5rem;
}

.mp3-radio-container input[type="radio"] {
	transform: scale(1.3);
	cursor: pointer;
}

.mp3-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
}

.mp3-item audio {
  flex-shrink: 0;
}

.mp3-inline {
  flex: 1;
  min-width: 0;
}

.mp3-note,
.mp3-lang {
  word-wrap: break-word;
  overflow-wrap: break-word;
}




.alert-country-select {
  margin-bottom: 20px;	
}

/* =============================================================================
   MODAL: Send Alert Button + Confirmation Dialog
   Used on casting pages to trigger alert emails to matched users.
============================================================================= */

/* Trigger button */
.small-button {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 0.9em;
  border-radius: 4px;
  cursor: pointer;
}

/* Fullscreen modal overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none; /* Hidden by default, shown via JS */
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

/* Inner modal box */
.modal-box {
  background-color: #fff;
  padding: 2em;
  border-radius: 8px;
  text-align: center;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Modal heading (if needed) */
.modal-box h3 {
  margin-top: 0;
  margin-bottom: 1.2em;
  font-size: 1.3rem;
}

/* Modal buttons container (if using separate layout) */
.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2em;
}

/* Confirm + Cancel buttons inside modal */
.confirm-button,
.cancel-button {
  margin: 0 5px;
  padding: 6px 14px;
  font-size: 0.9em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Confirm = primary */
.confirm-button {
  background-color: #007bff;
  color: #fff;
}
.confirm-button:hover {
  background-color: #0056cc;
}

/* Cancel = secondary */
.cancel-button {
  background-color: #ccc;
  color: #000;
}
.cancel-button:hover {
  background-color: #bbb;
}



#city-region {
	margin-top: 15px;
}



/* ==========================================================================
   Choices.js Input Styling — Matches standard input appearance
   ========================================================================== */

/* Wraps entire Choices dropdown or multiselect */
.choices {
  margin-bottom: 1.2rem;         /* Aligns with normal input spacing */
  text-align: left;
}

/* Inner control box (text input or select replacement) */
.choices__inner {
  padding: 0.6rem 0.75rem;       /* Match standard input padding */
  border: 1px solid #ccc;        /* Light grey border for consistency */
  border-radius: 4px;            /* Rounded edges */
  background-color: #fff;        /* White background like inputs */
  font-size: 1rem;               /* Same text size as other fields */
  min-height: 44px;              /* Matches normal input height */
  line-height: 1.4;              /* Vertical alignment for text */
}

/* Tags shown in multi-select mode */
.choices__list--multiple .choices__item {
  background-color: #eee;        /* Light grey tag background */
  border: 1px solid #ccc;        /* Match field borders */
  padding: 0.3rem 0.5rem;        /* Compact tag size */
  margin-right: 0.3rem;
  margin-top: 0.3rem;
  border-radius: 3px;            /* Slight rounding */
  font-size: 0.9rem;             /* Slightly smaller text */
}



/* ============================================================================
   Native Button-Radio Group Styling
   Replaces old .button-option logic with accessible radio fields
   ============================================================================ */

/* Outer container for the radio button group */
.button-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  border: none;
  padding: 0;
}

/* Each clickable button-like label */
.button-radio {
  display: inline-block;
  cursor: pointer;
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.95rem;
  user-select: none;
  transition: background-color 0.2s, border-color 0.2s;
}

/* Hide the native radio input */
.button-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* When radio is checked, style the parent label */
.button-radio:has(input[type="radio"]:checked) {
  background-color: #fcecd4;   /* soft orange */
  border-color: #e0c080;
  font-weight: bold;
  color: #222;
}

.button-radio:hover {
  background-color: #fcecd4;     /* Lighter orange hint */
  border-color: #e0c080;
}


/* Report a casting to us */
.report-casting {
	margin-top: 4em;
	text-align: left;
	font-size: 0.8em;
	font-style: italic;
}

.casting-edit-link {
	margin-top: 1em;
	text-align: right;
	font-size: 0.8em;
}



/* Flex row container for admin buttons */
.casting-admin-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;  /* space between buttons */
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Shared button style */
.admin-button {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border: none; /* REMOVE border for buttons */
}
.admin-button:hover {
  background-color: #0056b3;
}



.profile-edit-imdb-block {
	margin-top: 2em;
	margin-bottom: 2em;
}



/* Checkbox Group Fieldset */
.checkbox-group {
  margin-bottom: 1.5em;
  border: none;
  padding: 0;
}

/* Default style for all checkbox buttons */
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5em 0.5em 0;
  padding: 0.4em 1.2em;
  font-size: 0.95em;
  font-weight: 500;
  border: 1px solid #ccc;
  border-radius: 2em;
  background: #f8f8f8;
  color: #333;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

/* Hide checkbox input */
.checkbox-inline input[type="checkbox"] {
  display: none;
}

/* NEW: When checkbox is checked — style the entire label */
.checkbox-inline:has(input[type="checkbox"]:checked) {
  background-color: #fcecd4;  /* soft orange */
  border-color: #e0c080;
  color: #000;
  font-weight: bold;
}



/* ============================================================================
   .admin-page-visibility — Admin-only visibility label (top-right)
   Shows a small label like: "Page Visible to: Guests / CDs / TAs"
   Used for debugging who has access to the page, based on bitfield flags
============================================================================ */
.admin-page-visibility {
  text-align: right;        /* Align the whole string to the right side */
  font-size: 0.8em;          /* Smaller font for unobtrusive metadata */
  margin-bottom: 0.5em;      /* Space below the line to separate from content */
}


/* ============================================================================
   Fix: Force white background for Choices.js select boxes in upload blocks
   ============================================================================ */

/* The visible Choices.js container */
.upload-block .choices__inner {
  background-color: #ffffff !important; /* force white background */
  color: #000000 !important;            /* readable text */
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Also apply to dropdown list (hovered/active) */
.upload-block .choices__list--dropdown {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Make all text inputs (e.g. for title/note) taller and clear background */
.upload-block input[type="text"] {
  background-color: #ffffff !important; /* override grey from container */
  padding: 0.5em 0.6em;                  /* increase height */
  line-height: 1.4;                      /* improve vertical alignment */
  font-size: 0.8rem;                       /* match normal form input */
}



/* Main subscription message container */
.subscribed-message {
	background-color: #e8f5e9; /* soft green background to indicate success/subscription */
	border: 1px solid #c8e6c9; /* matching green border tone */
	border-radius: 8px;        /* slightly rounded corners for visual softness */
	padding: 1.5rem;           /* internal spacing for readability */
	margin: 2rem auto;         /* spacing from other content, centered horizontally */
	max-width: 700px;          /* cap width to maintain focus */
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* subtle shadow to lift from background */
}

/* Main heading/notice text */
.subscribed-message p {
	font-size: 1.2rem;       /* slightly larger for prominence */
	font-weight: 600;        /* semi-bold for emphasis */
	color: #2e7d32;          /* dark green for positive tone */
	margin-bottom: 1rem;     /* spacing from list below */
}

/* Remove bullets and spacing from list */
.subscribed-message ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Each subscription detail row */
.subscribed-message li {
	font-size: 1rem;         /* standard text size */
	margin-bottom: 0.5rem;   /* spacing between rows */
}

/* Strong label text */
.subscribed-message strong {
	font-weight: 600;        /* emphasize field labels */
	color: #1b5e20;          /* darker green to separate from values */
}



/* Scoped container for subscription actions */
.subscription-actions {
  text-align: center;
  margin-top: 2em;
}

/* Style only the cancel subscription button within this container */
.subscription-actions form.cancel-subscription-form button {
  padding: 0.6em 1.5em;
  font-size: 1rem;
  background-color: #c0392b;      /* Soft red */
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Hover state for cancel button */
.subscription-actions form.cancel-subscription-form button:hover {
  background-color: #e74c3c;
}

/* Optional: message display */
.subscription-actions .notice {
  margin-top: 1em;
  margin-bottom: 2em;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  padding: 1em;
  font-size: 1rem;
  display: inline-block;
  color: #333;
}






/* Container for the entire manual subscription form */
.manual-subscription-form {
    max-width: 640px;           /* Constrain width for readability */
    margin: 2em auto;           /* Center on page with spacing */
    padding: 1.5em;             /* Internal padding */
    background: #f9f9f9;        /* Light background for separation */
    border: 1px solid #ddd;     /* Subtle border */
    border-radius: 6px;         /* Rounded corners */
    font-size: 0.95rem;         /* Slightly smaller text */
}

/* Centered heading for form */
.manual-subscription-form h3 {
    text-align: center;
    margin-bottom: 1.5em;
}

/* Grid layout: 2 columns with spacing */
.manual-subscription-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Two equal-width columns */
    gap: 1em 2em;                    /* Row and column gap */
}

/* Label styling: slight emphasis */
.manual-subscription-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3em;
}

/* Shared input and select styling */
.manual-subscription-form input,
.manual-subscription-form select {
    width: 100%;
    padding: 0.4em;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Submit button styling */
.manual-subscription-form button {
    margin-top: 2em;
    padding: 0.6em 1.5em;
    font-size: 1rem;
    background: #2980b9;       /* Primary blue */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Button hover state */
.manual-subscription-form button:hover {
    background: #3498db;
}



/* Change selected item background in multi-select */
.choices__list--multiple .choices__item {
  background-color: #fcecd4 !important;  /* desired dark background */
  color: black !important;             /* white text */
  border: 1px solid #e0c080 !important;
  font-size: 1.1em !important;
  padding: 6px 12px !important;
  font-weight: 400 !important;
}




.guide-nav {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 25px 20px;
    border-top: 2px solid #d4c49a;
    border-bottom: 2px solid #d4c49a;
}

.guide-nav a {
    color: #6b5b3d;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.guide-nav a:hover {
    color: #8b7d46;
    text-decoration: underline;
}

.guide-nav .divider {
    margin: 0 40px;
    color: #d4c49a;
    font-weight: 300;
}

.guide-nav .page-info {
    font-size: 0.9em;
    color: #8a7c5e;
    margin-top: 15px;
    font-style: italic;
}





/* ---------------------------------------------------------------------------
   Override the default remove "×" injected by Choices.js on multi-select tags
--------------------------------------------------------------------------- */
.choices[data-type*=select-multiple] .choices__button {
  border-left: none !important;        /* Remove vertical separator line */
  filter: brightness(0) saturate(100%) invert(25%) sepia(96%) saturate(749%) hue-rotate(338deg) brightness(93%) contrast(91%) !important;
  /* ↑ This changes the SVG color to red without needing to replace the image */
  opacity: 1 !important;               /* Make it fully visible */
}

.choices__list--multiple .choices__item {
  line-height: 1.2;            /* Tighter line height to center text */
  padding-top: 0.3em;          /* Adjust top/bottom padding */
  padding-bottom: 0.3em;       /* Slightly smaller bottom padding */
  display: inline-flex;        /* Ensures consistent vertical alignment */
  align-items: center;         /* Vertically center contents within the box */
}


/* =============================================================================
   Template List Table Styling
   Reduces font size for admin canned text listing table
   ============================================================================= */

/* Applies only to tables with class 'template-list' */
.template-list {
  font-size: 0.80em;  /* Use a smaller font size to fit more text compactly */
}




/* Modal hidden by default */
.modal-overlay.hidden {
  display: none;
}

/* Flexbox layout for button row */
.modal-button-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}


.col-width-25  { width: 25%; }
.col-width-33  { width: 33.3333%; }
.col-width-50  { width: 50%; }
.col-width-100 { width: 100%; }


.textarea-note {
  width: 100%;
  resize: vertical;
}

.audio-player-fullwidth {
  width: 100%;
}


.inline-label {
  display: inline;
}


.pagination-centered {
  text-align: center;
  margin: 2em 0;
}


.casting-summary-overview {
  margin: 0.5em 0 1em 0;
  font-size: 0.9em;
  color: #444;
}

.casting-summary-rolelist {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9em;
}

.casting-summary-paid {
  margin: 1em 0 0 0;
  font-size: 0.75em;
  font-style: italic;
  color: #777 !important;
  text-align: right;
}


.flag-icon-inline {
  margin-right: 4px;
}


.actor-headshot-image {
  max-width: 150px;
  height: auto;
}


.profile-incomplete-message {
  max-width: 700px;
  margin: 3em auto;
  text-align: center;
}

.inline-form {
  display: inline;
}

.admin-reimport-form {
  margin-top: 2rem;
}


.border-top-highlight {
  border-top: 2px solid #999;
}

.subscription-edit-button {
  margin-right: 6px;
}

.inline-form {
  display: inline;
}

.margin-left-4 {
  margin-left: 4px;
}

.margin-left-8 {
  margin-left: 8px;
}


.inline-icon {
  vertical-align: text-bottom;
}

.ml-6 {
  margin-left: 6px;
}

.text-right {
  text-align: right;
}
.help-icon-svg {
  vertical-align: middle;
}


.modal-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.left-align {
	text-align: left;
}
.right-align {
	text-align: right;
}

.learn-more {
	font-size: 0.85em;
	margin-top: 15px;
	text-align: center;
}

.recent-searches {
	font-size: 0.85em;
	margin-top: 15px;
	font-weight: bold;
}
.recent-search-item  {
	margin-top: 10px;
	padding-left: 10px;
	font-size: 0.9em;
	font-style: italic;
	text-align: left;
	font-weight: normal;
}

/* COLLAPSIBLE RECENT SEARCHES */
.recent-searches-wrapper {
	margin-top: 20px;
}

.recent-searches-toggle {
	cursor: pointer;
	display: flex;
	align-items: center;
	font-style: italic;
	gap: 8px;
	font-size: 0.85em;
}

.recent-searches-toggle .arrow-down {
	transition: transform 0.2s ease;
}

.recent-searches.open .arrow-down {
	transform: rotate(180deg);
}

#recent-searches-box {
	margin-top: 10px;
	display: none;
}

.search-stats-table {
	margin-top: 20px;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	padding: 12px 16px;
	background-color: #fafafa;
}

.search-stats-table table {
	width: 100%;
	border-collapse: collapse;
}

.search-stats-table td {
	padding: 6px 10px;
}

/* ==========================================================================
   ==========================================================================	
   ==========================================================================
   BLOCKS BELOW ARE ORGANISED AND CONFIRMED
   ==========================================================================
   ==========================================================================
   ========================================================================== */



/* ==========================================================================
   Styled Code Example Block
   ========================================================================== */

code {
    margin: 20px 0 20px 20px;       /* Indent block to the right (20px) */
    padding: 10px 20px;             /* Internal spacing */
    background-color: #f9f7f4;      /* Soft beige/grey background */
    border-left: 5px solid #bbb;    /* Thick grey left border */
    font-family: monospace;         /* Code-style font */
    white-space: pre-wrap;          /* Preserve formatting */
    overflow-x: auto;               /* Allow horizontal scroll if needed */
}





/* ==========================================================================
   HOMEPAGE
   ========================================================================== */


/* Homepage Highlight Box */
.homepage-box {
    max-width: 600px;              /* Prevents it from becoming too wide */
    margin: 40px auto;             /* Center horizontally with spacing above/below */
    padding: 30px;                 /* Internal spacing */
    border: 2px solid #333;        /* Dark border to stand out */
    background-color: #ffffffdd;   /* Semi-transparent white background for contrast */
    border-radius: 12px;           /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Soft shadow for depth */
    text-align: center;            /* Center text */
    font-size: 1.1rem;             /* Slightly larger text for emphasis */
}

/* Homepage Button Links */
.homepage-button {
    text-align: center;             /* Center the button row */
    margin-top: 20px;               /* Space above the buttons */
}
.homepage-button a {
    display: inline-block;          /* Let links behave like buttons */
    margin: 8px 10px;               /* Space between buttons */
    padding: 10px 20px;             /* Internal padding for size */
    background-color: #0055cc;      /* Primary button color */
    color: #fff;                    /* White text */
    text-decoration: none;          /* Remove underline */
    border-radius: 6px;             /* Rounded corners */
    font-weight: bold;              /* Emphasise text */
    transition: background-color 0.2s ease;
}
.homepage-button a:hover {
    background-color: #003d99;      /* Darker on hover */
}

.homepage-button-red a {
    background-color: #cc3333;      /* Reddish button */
    color: #fff;                    /* White text */
}
.homepage-button-red a:hover {
    background-color: #b30000;      /* Darker red on hover */
}


/* ============================
   WAIT ON Button Styling (Yellow)
   ============================ */
.casting-wait-button {
  background-color: yellow;
  color: black;
  font-weight: bold;
}

/* ============================
   Status Display Overrides
   ============================ */
.status-waiting_on {
  color: red;
  font-weight: bold;
}

.form-field {
  margin-bottom: 2rem;
}
.form-field input[type="checkbox"][name="mark_manual"] {
  transform: scale(1.2);
  margin-right: 1rem;
  margin-left: 0.4rem;
  accent-color: #0077cc;
}


/* ==========================================================================
   .table-standard — Clean, responsive table styling for admin use
   - Used for admin logs, subscription lists, or structured reports
   - Includes zebra striping, wrapping logic, and hover effect
   ========================================================================== */

.table-standard {
  width: 100%;                     /* Full width of parent container */
  border-collapse: collapse;       /* Remove spacing between cells */
  table-layout: auto;              /* Allow columns to size naturally */
  font-family: sans-serif;         /* Consistent font across platforms */
  font-size: 14px;                 /* Base text size */
  margin-bottom: 1.5rem;           /* Space below the table */
}
.table-standard th,
.table-standard td {
  padding: 8px 10px;               /* Uniform padding */
  border-bottom: 1px solid #eee;  /* Light separator between rows */
  vertical-align: top;            /* Align cell content to top */
  color: #555;                    /* Standard text color for cells */

  /* Wrapping and breaking support for long content */
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Header cell specific styling */
.table-standard th {
  background-color: #f2f4f7;       /* Subtle grey background for header */
  color: #333;                     /* Darker text for contrast */
  font-weight: bold;
  text-align: left;
  border-bottom: 2px solid #ddd;   /* Stronger border below headers */
  padding: 10px;                   /* Slightly more padding for headers */
}

/* Zebra striping for readability */
.table-standard tbody tr:nth-child(odd) {
  background-color: #fcfcfc;       /* Alternating background */
}

/* Hover highlight for interactive tables */
.table-standard tbody tr:hover {
  background-color: #fafcff;       /* Very light blue tint on hover */
}


.source-url-list {
	margin-top: 20px;	
}
/* Only apply max-width override in castings-raw table */
.table-castings-raw td.nowrap {
  width: 25%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}


.raw-castings-db {
	text-align: center;
    margin-bottom: 30px;
    font-size: 0.85em;	
}


/* ==========================================================================
   Admin User Lookup Form
   ========================================================================== */

.admin-user-lookup-form {
    text-align: center;                /* Center the entire form */
    margin: 30px 0;                    /* Vertical spacing */
}

.admin-user-lookup-form input[type="text"] {
    width: 300px;                      /* Limit input width */
    padding: 8px 12px;                 /* Internal spacing */
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.admin-user-lookup-form button {
    padding: 8px 16px;
    margin-left: 10px;
    font-size: 1rem;
    background-color: #0055cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.admin-user-lookup-form button:hover {
    background-color: #003d99;
}


/* ==========================================================================
   Admin Data Table
   ========================================================================== */

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
    background-color: #fff;
    border: 1px solid #ccc;
}

.admin-data-table th,
.admin-data-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.admin-data-table th {
    background-color: #f0f0f0;
    font-weight: bold;
    width: 200px;
}


/* ==========================================================================
   General TABLE classes 
   ========================================================================== */

td.nowrap, th.nowrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;  /* Optional: show "…" if content too wide */
}



/* Connect to Agent Button - Orange Theme */
.btn-connect-agent {
  display: inline-block;
  padding: 10px 20px;
  margin: 8px 10px;
  background-color: #FFA500;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-connect-agent:hover {
  background-color: #e69500;
  text-decoration: none;
}




/* ==========================================================================
   Profile Edit Page
   ========================================================================== */

/* Thumbnail Image */
.file-thumb-img {
  height: 80px !important;
}

/* Horizontal alignment for public/private checkbox block */
.upload-meta.private-box {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.85em;
	font-weight: 100;
	justify-content: center;    /* horizontal centering */
	margin-top: 1em;
	white-space: nowrap;
}
.upload-meta.private-box label {
	display: flex;
	align-items: center;
	gap: 0.5em;
	white-space: nowrap;
}
.upload-meta.private-box input[type="checkbox"] {
	margin: 0;
}
.upload-meta.private-box label {
	font-weight: 200;
	margin-bottom: 2px;
}
.upload-meta.private-box .field-help-icon {
	margin-left: 0px;
	top: 2px;
}


/* Archive button: styled like delete, but neutral icon */
.archive-button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #666;
  padding: 2px 6px;
  transition: color 0.2s;
}

.archive-button:hover {
  color: #000;
}

/* VERIFIED ACTORS PAGE STYLES */
/* ---------------------------- */

/* Hidden by default: loading screen shown during evaluation */
#loadingOverlay {
    display: none;
	text-align: center;
    padding: 40px 0;
}

/* Report list: unstyled bullets and spacing */
.verification-report {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

/* Individual report items */
.verification-report li {
    margin: 10px 0;
}

/* Spacing for the reassess form button */
.reassess-form {
    margin-top: 20px;
}
/* Button centering for verified actors form only */
.verified-actors-form form {
    text-align: center;
}

.verified-actors-form .btn {
    display: inline-block;
    margin-top: 20px;
}

.verification-step-label {
    font-size: 1rem;
    margin-top: 20px;
	font-weight: bold;	
}

.circle-loader {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.circle-loader div {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    animation: circleLoader 1.2s linear infinite;
}

/* Position and delay each dot on the circle */
.circle-loader div:nth-child(1)  { top: 0%;   left: 50%; transform: translate(-50%, 0);    animation-delay: -1.1s; }
.circle-loader div:nth-child(2)  { top: 14%;  left: 85%; transform: translate(-50%, -50%); animation-delay: -1.0s; }
.circle-loader div:nth-child(3)  { top: 50%;  left: 100%;transform: translate(-50%, -50%); animation-delay: -0.9s; }
.circle-loader div:nth-child(4)  { top: 85%;  left: 85%; transform: translate(-50%, -50%); animation-delay: -0.8s; }
.circle-loader div:nth-child(5)  { top: 100%; left: 50%; transform: translate(-50%, -100%);animation-delay: -0.7s; }
.circle-loader div:nth-child(6)  { top: 85%;  left: 14%; transform: translate(-50%, -50%); animation-delay: -0.6s; }
.circle-loader div:nth-child(7)  { top: 50%;  left: 0%;  transform: translate(0, -50%);    animation-delay: -0.5s; }
.circle-loader div:nth-child(8)  { top: 14%;  left: 14%; transform: translate(-50%, -50%); animation-delay: -0.4s; }
.circle-loader div:nth-child(9)  { top: 0%;   left: 50%; transform: translate(-50%, 0);    animation-delay: -0.3s; }
.circle-loader div:nth-child(10) { top: 14%;  left: 85%; transform: translate(-50%, -50%); animation-delay: -0.2s; }
.circle-loader div:nth-child(11) { top: 50%;  left: 100%;transform: translate(-50%, -50%); animation-delay: -0.1s; }
.circle-loader div:nth-child(12) { top: 85%;  left: 85%; transform: translate(-50%, -50%); animation-delay:  0s; }

@keyframes circleLoader {
    0%, 20% { opacity: 1; }
    100%    { opacity: 0; }
}


/* =============================================================================
   Floating Raw Text Box — Admin-Only Fixed Panel
   ============================================================================= */
/* =============================================================================
   Draggable Floating Raw Text Box for Admins
   ============================================================================= */
#rawTextFloatingBox {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 25%;
  height: 75%;
  z-index: 9999;
  border: 1px solid #ccc;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  resize: both;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#rawTextDragHandle {
  background: #444;
  color: #fff;
  padding: 8px;
  font-weight: bold;
  cursor: move;
  user-select: none;
}

#raw_text_floating {
  flex: 1;
  width: 100%;
  border: none;
  padding: 8px;
  resize: none;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.4;
  background: #f9f9f9;
}



.casting-images {
  display: block;  /* not flex if used inside a <td> */
  max-width: 100%;
  padding-top: 6px;
}

.casting-images img {
  display: block;
  max-width: 100%;   /* fit width of td */
  height: auto;
  margin-bottom: 6px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}




/* Tooltip shown when a Choices.js field is invalid */
.field-error-tooltip {
  position: absolute;
  display: none;               /* JS will toggle to 'flex' */
  flex-direction: row;         /* ← horizontal layout */
  align-items: center;         /* vertical centering */
  gap: 8px;                    /* spacing between icon and text */
  background-color: #fff;
  color: #000;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(-50%);
  max-width: 240px;
  pointer-events: none;
}

.upload-block .field-error-tooltip {
  top: 240px !important;
}

/* Optional arrow under the tooltip */
.field-error-tooltip::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #fff transparent;
  z-index: 1001;
}

/* Logo inside tooltip */
.tooltip-logo {
  display: inline-block;   /* horizontal, not block */
  margin: 0;               /* remove auto-centering */
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

/* Text block */
.tooltip-text {
  display: block;
  font-weight: normal;
}




.admin-status-banner {
  padding: 10px 20px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #fff;
  border-radius: 5px;
  text-align: center;
  font-size: 18px;
}

.admin-status-banner.status-approved {
  background-color: #2d9c45;
}

.admin-status-banner.status-pending {
  background-color: #d87f0b;
}

.admin-status-banner.status-rejected {
  background-color: #cc3333;
}


/* =============================================================================
   Admin-only status switch button inside the casting status banner
   ========================================================================== */

.status-switch-button {
  display: inline-block;
  margin-left: 20px;        /* Spacing from the status text */
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: normal;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  height: 30px;
  vertical-align: middle;
}

.status-switch-button:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}


.indent-quote {
	font-style: italic;
	margin-left: 40px;	
	margin-top: 10px;
	margin-bottom: 10px;
}

/* This CSS forces the dropdown list (.choices__list--dropdown) to auto-size to the length of the longest visible item instead of defaulting to full input width. This improves usability by reducing overlap with nearby fields or buttons.
=== Shrink Choices.js dropdown width to match longest item === */
.choices__list--dropdown,
.choices__list[aria-expanded="true"] {
  min-width: 50%;                 /* Enforce minimum width at 50% of container */
  width: max-content !important; /* Allow growth to fit longest item */
  max-width: 100%;               /* Prevent overflowing the container */
  box-sizing: border-box;        /* Account for padding and border */
  overflow-wrap: break-word;     /* Wrap long text where appropriate */
  z-index: 100 !important;
}


/* ===== Local Development Mode Styling ===== */

/* Banner shown at the top of the page in local mode */
.local-dev-warning {
  background-color: #ff0000; /* bright red background */
  color: #ffffff;            /* white text */
  font-weight: bold;
  text-align: center;
  padding: 12px 20px;
  font-size: 1.2em;
  z-index: 9999;
  position: relative;
}

/* Optional: change background color for local mode (visual cue) */
body:has(.local-dev-warning) {
  background-color: #fff0f0;
}


/* on the casting page, the user application at the end */
.application-table { margin-top: 20px; }




/* ============================================================================
   RAW CASTINGS
============================================================================ */
.raw-text-block {
  margin-bottom: 1em;
  font-size: 0.95em;
  line-height: 1.5;
}

.parsed-json-block {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 0.8em;
  font-size: 0.85em;
  color: #333;
}

button.casting-action-check {
  all: unset;                       /* removes inherited button[type=submit] styles */
  background-color: #ffcc00;
  color: #000;
  border: 1px solid #999;
  border-radius: 4px;
  padding: 4px 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
}
button.casting-action-check:hover {
  background-color: #ffbb00;
}



/* ============================
   ACTION BUTTON ROW
   ============================
   - Buttons on one line (✖ ⬇ Publish / Spec Email)
   - All buttons same padding (NOT fixed width)
   - Each button has its own color
   ============================ */

.unified-action-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;             /* Wrap if space is too narrow */
  align-items: center;
}

/* Shared base: reset and consistent layout */
button.casting-action-button,
a.casting-action-button {
  all: unset;                  /* Remove all browser default styles */
  display: inline-block;
  text-align: center;
  padding: 4px 10px;           /* Uniform padding for all buttons */
  font-weight: bold;
  font-size: 1rem;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  color: white;
}

button.email-fix-button {
  all: unset;
  display: inline-block;
  text-align: center;
  padding: 4px 10px;               /* Same padding as other buttons */
  font-weight: bold;
  font-size: 1rem;
  border: 1px solid #999;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  background-color: #339999;       /* Distinct teal tone */
  color: white;
}

button.email-fix-button:hover {
  background-color: #227777;       /* Darker on hover */
}

/* === INDIVIDUAL COLORS === */

button.casting-delete-button,
a.casting-delete-button {
  background-color: #cc3333;
}
button.casting-delete-button:hover,
a.casting-delete-button:hover {
  background-color: #b30000;
}

button.casting-bump-button,
a.casting-bump-button {
  background-color: #3366cc;
}
button.casting-bump-button:hover,
a.casting-bump-button:hover {
  background-color: #254ba1;
}

button.casting-publish-button,
a.casting-publish-button {
  background-color: #33aa33;
}
button.casting-publish-button:hover,
a.casting-publish-button:hover {
  background-color: #228822;
}

button.casting-spec-button,
a.casting-spec-button {
  background-color: #999900;
}
button.casting-spec-button:hover,
a.casting-spec-button:hover {
  background-color: #666600;
}


.status-not_casting,
.status-blocked_word {
  color: #b30000;
  font-weight: bold;
}

/* Spec Email Button Style */
.casting-spec-button {
  display: inline-block;
  padding: 4px 10px;
  margin-left: 5px;
  font-size: 0.9em;
  background-color: #0057b7;     /* Dark blue for clarity */
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.casting-spec-button:hover {
  background-color: #003f8f;     /* Slightly darker on hover */
}

/* ============================
   WAIT ON Button Styling (Yellow)
   ============================ */
button.casting-wait-button {
  background-color: #eb83cc;
  color: white;
  font-weight: bold;
}

/* ============================
   Status Display Overrides
   ============================ */
.status-waiting_on {
  color: red;
  font-weight: bold;
}



/* ============================
   EMAIL FIX FORM STYLES
   ============================
   - Styles used when an email has a bad domain (e.g., xx.xx)
   - Replaces the email display with a small form to correct it
   ============================ */

.email-fix-form {
  display: flex;              /* Horizontal layout */
  gap: 6px;                   /* Spacing between input and button */
  margin-top: 4px;            /* Slight separation from label */
  align-items: center;        /* Vertically center input and button */
}

.email-fix-input {
  font-size: 12px;            /* Small input */
  padding: 2px 4px;           /* Compact padding */
  width: 100px;               /* Reasonable width */
}





.casting-preview-box {
  max-height: 300px;
  overflow-y: auto;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.casting-preview-box hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px dashed #ccc;
}
.casting-preview-box::-webkit-scrollbar {
  width: 20px; /* Increase scrollbar width */
}
.casting-preview-box::-webkit-scrollbar-thumb {
  background-color: #ccc;       /* Scroll thumb color */
  border-radius: 6px;           /* Rounded edges */
}
.casting-preview-box::-webkit-scrollbar-track {
  background-color: #f1f1f1;    /* Track background */
}
.preview-json {
  font-size: 11px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 8px;
  margin-top: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* =============================================================================
   CLOSED ROLE STYLING - Makes closed roles visually distinct
   ============================================================================= */

.casting-role-card.role-closed {
    position: relative;
    opacity: 0.6;                      /* Fade the entire card */
    background-color: #f8f8f8;         /* Slightly grey background */
}

/* Optional: Add a diagonal "CLOSED" watermark */
.casting-role-card.role-closed::before {
    content: "CLOSED";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 3em;
    font-weight: bold;
    color: rgba(200, 0, 0, 0.15);     /* Very faint red */
    pointer-events: none;
    z-index: 1;
}

/* Make the closed message stand out */
.casting-role-card.role-closed .form-neutral {
    opacity: 1;                        /* Keep the "closed" message fully visible */
    background-color: #fff5f5;         /* Light red background */
    border-color: #d99;                /* Reddish border */
}

/* ==========================================================================
   Email Blast Button (Admin only, on actor search page)
   ========================================================================== */

.email-blast-button-wrapper {
  text-align: center;
  margin: 2rem 0 1rem 0;
}

.email-blast-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #ff6600;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.email-blast-btn:hover {
  background-color: #e65500;
  text-decoration: none;
}


/* ==========================================================================
   Email Blast Form Styling
   ========================================================================== */

.email-blast-summary {
  margin-bottom: 2rem;
}

.recipient-count {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.criteria-details {
  font-size: 0.95rem;
}

.back-link-centered {
  text-align: center;
  margin-top: 2rem;
}

/* ============================================================================
   MOBILE MENU SYSTEM — Hamburger Toggle + Fullscreen Overlay
   Target: screen ≤768px
============================================================================ */

/* --------------------------------------------------
   HAMBURGER ICON (hidden by default)
-------------------------------------------------- */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

/* --------------------------------------------------
   MOBILE OVERLAY NAVIGATION (initially hidden)
-------------------------------------------------- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  box-sizing: border-box;

  /* hidden state */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-nav.visible {
  transform: translateY(0);
  opacity: 0.9;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
  background-color: #fff8dc;
}


/* --------------------------------------------------
   CLOSE BUTTON (top-right X)
-------------------------------------------------- */
.mobile-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------
   MENU LIST STYLING
-------------------------------------------------- */
.mobile-nav-list {
  width: 100%;
  max-width: 600px;
  margin-top: 2rem;
  font-size: 1.2rem;
  list-style: none;
  padding: 0;
  text-align: center;
}

.mobile-nav-list li {
  margin: 1rem 0;
}

.mobile-nav-list a {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-weight: bold;
  text-decoration: none;
  color: #000;
  transition: background 0.2s;
}

.mobile-nav-list a:hover {
  background: #f2f2f2;
  border-radius: 4px;
}


/* ==========================================================================
   FORUM COMMENTS — Article discussion section
   ========================================================================== */

/* Overall comments container */
.forum-comments {
  max-width: 700px;
  margin: 0 auto;
}

.forum-comments h3 {
  font-size: 1.3em;
  margin-bottom: 1rem;
}

/* Individual comment block */
.forum-comment {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.forum-comment:last-of-type {
  border-bottom: none;
}

/* Author name and date line */
.forum-comment-meta {
  font-size: 0.9em;
  margin-bottom: 0.3rem;
}

/* Comment text */
.forum-comment-body {
  font-size: 0.95em;
  line-height: 1.6;
  color: #333;
}

/* Empty state message */
.forum-no-comments {
  font-style: italic;
  color: #888;
  margin: 1rem 0;
}

/* Link to full forum thread */
.forum-thread-link {
  font-size: 0.85em;
  margin: 1rem 0;
  color: #888;
  text-align: right;
}

.forum-thread-link a {
  color: #888;
}

.forum-thread-link a:hover {
  color: #555;
}

/* Reply form */
.forum-reply-form {
  margin-top: 1.5rem;
}

.forum-reply-form label {
  font-size: 0.95em;
  font-weight: 500;
}

/* Guest login prompt */
.forum-login-prompt {
  margin-top: 1.5rem;
  font-size: 0.95em;
  font-style: italic;
  color: #666;
}



/* ============================================================================
   MEDIA QUERIES (≤768px): Hide desktop nav, show hamburger
============================================================================ */
@media (max-width: 768px) {
  .mobile-nav-list {
    text-align: left;         /* Align all items left */
    padding-left: 1rem;       /* Optional: slight inset */
  }

  .mobile-nav-list a {
    text-align: left;         /* Ensure links align left */
    padding-left: 0.5rem;     /* Uniform padding for primary links */
  }

  .mobile-nav-list .dropdown a {
    padding-left: 2rem;       /* Indent sub-items */
  }

  .main-nav {
    display: none !important;
  }

  .hamburger-toggle {
    display: flex !important;
  }

  .profile-page {
    padding: 0px;
  }
  
  .profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;         /* Center all children */
    text-align: center;
	width: 95%;
  }

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

  .profile-photo img {
    max-width: 90vw;
    height: auto;
  }

  .profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;         /* Center all children */
    text-align: left;
	width: 95%;
  } 
  .subscription-plan-box {
    flex: 1 1 100%;                 /* full width on small screens */
  }

  .mp3-item {
    flex-wrap: wrap;
  }

  .mp3-item audio {
    width: 100%;
  }

  .mp3-inline {
    width: 100%;
  }
}


/* ============================================================================
   MEDIA QUERIES (≤575px)
============================================================================ */
@media (max-width: 575px) {
  .horizontal-field {
    display: flex;             /* switch to flex layout */
    flex-direction: column;   /* stack label above input */
    gap: 0.3rem;               /* tighten vertical spacing */
    width: 100%;               /* full width on small screens */
  }

  .field-label {
    justify-content: flex-start;  /* left-align the label */
    text-align: left;
  }
  .form-tabs {
    width: 100%;             /* use full container width */
    padding: 0 1rem;         /* optional: side padding for visual balance */
    justify-content: space-between;  /* spread tabs if multiple */
	margin-left: 0px;
  }
}


/* For smaller mobile screens, add padding so images don't touch edges */
@media (max-width: 768px) {
  .page-body img {
    max-width: calc(100% - 2rem); /* Account for container padding */
    margin: 1rem auto;             /* Slightly reduced margins on mobile */
  }
   .help-search-box {
    max-width: 100%;                /* Use full available width */
    padding: 0 1rem;
  }
  
  .help-search-input {
    flex: 1 1 0px;                /* Can shrink more on tablets */
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .page-body img {
    max-width: 100%;               /* Full width on tiny screens */
    margin: 0.75rem auto;          /* Even smaller margins */
  }
  .help-search-box {
    flex-direction: column;         /* Stack vertically */
    align-items: stretch;           /* Full width elements */
    gap: 10px;                      /* Vertical spacing between elements */
    padding: 0 0.5rem;              /* Reduce padding on very small screens */
  }
  
  .help-search-input {
    width: 100%;                    /* Full width on mobile */
  }
  
  .help-search-button {
    width: 100%;                    /* Full width button on mobile */
    padding: 10px 12px;             /* Slightly taller button for easier tapping */
  }
}