/* ============================================================
   CFA PITCH EDIT — Wizard Page Polish
   Scope: .mrportedit (pitch creation/editing wizard)
   Requires: cfa-tokens.css + cfa-buttons.css loaded first
   ============================================================ */


/* ================================================================
   1. RIGHT CONTENT PANEL
   ================================================================ */

.mrportedit .ac-rightcontainer {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
  padding: 32px !important;
}

.mrportedit .ac-rightcontainer h3 {
  font-family: var(--cfa-font-body) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 12px !important;
  margin-top: 0 !important;
}

.mrportedit p.bi-info {
  font-family: var(--cfa-font-body) !important;
  font-size: 14px !important;
  color: #6B7280 !important;
  line-height: 1.65 !important;
  margin-bottom: 10px !important;
}

/* Horizontal dividers */
.mrportedit .myaccount_horizontal_line,
.mrportedit hr.dirnteam-hr,
.mrportedit hr {
  border: none !important;
  border-top: 1px solid #E5E7EB !important;
  margin: 24px 0 !important;
}

/* Hide decorative left-arrow images */
.mrportedit .basicinfo-selector,
.mrportedit .basicinfo-selector2,
.mrportedit .about_the_company-selector,
.mrportedit .financials-selector,
.mrportedit .director-and-team-pitch-selector,
.mrportedit .director-and-team-selector,
.mrportedit .upload-pictures-selector,
.mrportedit .upload-videos-selector,
.mrportedit .upload-documents-selector,
.mrportedit .basicinfo-selector5,
.mrportedit .basicinfo-selector6 {
  display: none !important;
}


/* ================================================================
   2. SIDEBAR CONTAINER
   ================================================================ */

.mrportedit .abtcompany-leftnav {
  background: #ffffff !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 16px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
}


/* ================================================================
   3. SIDEBAR NAV BUTTONS
   ================================================================ */

/* All nav items — cobalt background, no margin gap */
.mrportedit .ac-leftnavmenu a {
  display: block !important;
  text-decoration: none !important;
  background: transparent !important;
}

.mrportedit .ac-leftnavmenu div {
  background-color: #2451D1 !important;
  border-radius: 0 !important;
  padding: 12px 16px 12px 44px !important;
  margin-top: 1px !important;
  transition: background-color 0.15s ease !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.mrportedit .ac-leftnavmenu a:first-child div {
  margin-top: 0 !important;
}

/* Hover — slightly lighter cobalt */
.mrportedit .ac-leftnavmenu div:hover {
  background-color: #1A40B0 !important;
}

/* ACTIVE step — navy, high specificity to win over all other rules */
.mrportedit .ac-leftnavmenu div.abtcomp-abtn,
.mrportedit .ac-leftnavmenu a .abtcomp-abtn {
  background-color: #1B2B6B !important;
}

/* Active label — force white, override any legacy rules */
.mrportedit .ac-leftnavmenu div.abtcomp-abtn label,
.mrportedit .ac-leftnavmenu a .abtcomp-abtn label {
  color: #ffffff !important;
  opacity: 1 !important;
}

.mrportedit .ac-leftnavmenu div.abtcomp-abtn::after,
.mrportedit .ac-leftnavmenu a .abtcomp-abtn::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255,255,255,0.30);
}

/* Nav label */
.mrportedit .ac-leftnavmenu div label {
  font-family: var(--cfa-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  letter-spacing: 0.01em !important;
  position: relative !important;
  cursor: pointer !important;
}

/* SVG status icon */
.pitch-step-svg {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  width: 22px !important;
  height: 22px !important;
  pointer-events: none !important;
}

.pitch-step-svg svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
}


/* ================================================================
   4. SIDEBAR LEGEND & LISTING AGREEMENT
   ================================================================ */

.mrportedit .navbtn-info {
  padding: 14px 14px 10px !important;
  background: #F9FAFB !important;
  border-top: 1px solid #E5E7EB !important;
  margin-top: 0 !important;
}

.mrportedit .navbtn-info > div {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 7px !important;
}

.mrportedit .navbtn-info > div:last-child {
  margin-bottom: 0 !important;
}

.mrportedit .navbtn-info label {
  font-family: var(--cfa-font-body) !important;
  font-size: 12px !important;
  color: #6B7280 !important;
  cursor: default !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Hide old PNG images in legend */
.mrportedit .navbtn-info div img,
.mrportedit .incomplete-class img {
  display: none !important;
}

.legend-svg {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
}

.legend-svg svg {
  display: block !important;
}

/* Listing agreement */
.mrportedit .listing-agreement {
  padding: 10px 14px !important;
  background: #F9FAFB !important;
  border-top: 1px solid #E5E7EB !important;
  margin-top: 0 !important;
}

.mrportedit .listing-agreement a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  color: #2451D1 !important;
  font-family: var(--cfa-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.mrportedit .listing-agreement a:hover {
  color: #1A40B0 !important;
}

.mrportedit .listing-agreement img {
  display: none !important;
}

.mrportedit .listing-agreement label {
  cursor: pointer !important;
  margin: 0 !important;
}

.listing-svg {
  display: inline-flex !important;
  flex-shrink: 0 !important;
  align-items: center !important;
}


/* ================================================================
   5. SIDEBAR ACTION BUTTONS (Submit for Review / Preview Pitch)
   ================================================================ */

.mrportedit .ac-buttons {
  display: flex !important;
  gap: 6px !important;
  padding: 10px 10px 8px !important;
  background: #ffffff !important;
  border-top: 1px solid #E5E7EB !important;
  flex-wrap: wrap !important;
}

.mrportedit .review-btn,
.mrportedit .previewpitch-btn {
  float: none !important;
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
}

.mrportedit .review-btn input[type="button"],
.mrportedit .previewpitch-btn input[type="button"] {
  display: block !important;
  width: 100% !important;
  font-family: var(--cfa-font-body) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 8px !important;
  height: 36px !important;
  min-height: 36px !important;
  line-height: 36px !important;
  text-align: center !important;
  white-space: nowrap !important;
  transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.mrportedit .review-btn input[type="button"] {
  background-color: #2451D1 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(36,81,209,0.30) !important;
}

.mrportedit .review-btn input[type="button"]:hover {
  background-color: #1A40B0 !important;
}

.mrportedit .previewpitch-btn a {
  display: block !important;
  width: 100% !important;
  text-decoration: none !important;
}

.mrportedit .previewpitch-btn input[type="button"] {
  background-color: transparent !important;
  color: #2451D1 !important;
  border: 1.5px solid #93A9F0 !important;
}

.mrportedit .previewpitch-btn input[type="button"]:hover {
  background-color: #EEF2FF !important;
}


/* ================================================================
   6. FORM ACTION BUTTONS — Back / Save / Save & Continue
   ================================================================ */

/* Universal base for all .bi-btn inside pitch editing */
.mrportedit .bi-btn,
.mrportedit button.bi-btn,
.mrportedit input.bi-btn {
  display: inline-block !important;
  text-align: center !important;
  font-family: var(--cfa-font-body) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 46px !important;
  padding: 0 24px !important;
  min-height: 46px !important;
  height: 46px !important;
  width: 100% !important;
  max-width: 220px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  /* Default: cobalt primary (overridden per wrapper below) */
  background-color: #2451D1 !important;
  color: #ffffff !important;
  border: 1.5px solid transparent !important;
  box-shadow: 0 2px 8px rgba(36,81,209,0.25) !important;
}

/* Back button — secondary outline */
.mrportedit .bi-back .bi-btn,
.mrportedit .bi-back button.bi-btn,
.mrportedit .bi-back input.bi-btn {
  background-color: transparent !important;
  color: #374151 !important;
  border: 1.5px solid #9CA3AF !important;
  box-shadow: none !important;
}

.mrportedit .bi-back .bi-btn:hover,
.mrportedit .bi-back button.bi-btn:hover,
.mrportedit .bi-back input.bi-btn:hover {
  border-color: #2451D1 !important;
  color: #2451D1 !important;
  background-color: transparent !important;
}

/* Override the old #4793c0 hover from plainlayout-style.css */
.mrportedit .bi-back input[type="button"]:hover {
  background-color: transparent !important;
}

/* Save — cobalt */
.mrportedit .bi-save .bi-btn:hover,
.mrportedit .bi-save button.bi-btn:hover,
.mrportedit .bi-save input.bi-btn:hover {
  background-color: #1A40B0 !important;
  box-shadow: 0 4px 14px rgba(36,81,209,0.35) !important;
}

/* Save & Continue — cobalt */
.mrportedit .bi-save-cont .bi-btn:hover,
.mrportedit .bi-save-cont button.bi-btn:hover,
.mrportedit .bi-save-cont input.bi-btn:hover {
  background-color: #1A40B0 !important;
  box-shadow: 0 4px 14px rgba(36,81,209,0.35) !important;
}

/* .bi-btn-new (edit0 page) */
.mrportedit .bi-btn-new {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--cfa-font-body) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 12px 24px !important;
  min-height: 46px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  background-color: #2451D1 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(36,81,209,0.25) !important;
  transition: background-color 0.15s ease !important;
  margin: 0 auto !important;
  display: block !important;
}

.mrportedit .bi-btn-new:hover {
  background-color: #1A40B0 !important;
}

/* Back wrapped in a link */
.mrportedit a:has(> .bi-btn-new) .bi-btn-new,
.mrportedit a .bi-btn-new:only-child {
  background-color: transparent !important;
  color: #374151 !important;
  border: 1.5px solid #9CA3AF !important;
  box-shadow: none !important;
}

/* Action row separator */
.mrportedit .row.mx-0:has(.bi-back),
.mrportedit .row:has(.bi-back) {
  margin-top: 32px !important;
  padding-top: 24px !important;
  border-top: 1px solid #E5E7EB !important;
  align-items: center !important;
}

/* File upload button */
.mrportedit .bi-fileupload-btn,
.mrportedit input.bi-fileupload-btn,
.mrportedit input[type="button"].bi-fileupload-btn {
  background-color: #2451D1 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--cfa-font-body) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 0 18px !important;
  min-height: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-align: center !important;
  transition: background-color 0.15s ease !important;
  white-space: nowrap !important;
  margin-bottom: 8px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.mrportedit .bi-fileupload-btn:hover,
.mrportedit input.bi-fileupload-btn:hover,
.mrportedit input[type="button"].bi-fileupload-btn:hover {
  background-color: #1A40B0 !important;
}

/* Embed button */
.mrportedit .embed-btn,
.mrportedit input.embed-btn,
.mrportedit button.embed-btn {
  background-color: #2451D1 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--cfa-font-body) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 0 18px !important;
  min-height: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  width: auto !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-align: center !important;
  transition: background-color 0.15s ease !important;
  margin-top: 6px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.mrportedit .embed-btn:hover {
  background-color: #1A40B0 !important;
}


/* ================================================================
   7. DIRECTORS TABLE BUTTONS
   ================================================================ */

/* Add Director */
.mrportedit .add-dir-btn,
.mrportedit input.add-dir-btn,
.mrportedit button.add-dir-btn {
  background-color: #2451D1 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--cfa-font-body) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 0 20px !important;
  min-height: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  cursor: pointer !important;
  display: inline-block !important;
  text-align: center !important;
  transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
  box-shadow: 0 2px 8px rgba(36,81,209,0.25) !important;
  white-space: nowrap !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.mrportedit .add-dir-btn:hover {
  background-color: #1A40B0 !important;
  box-shadow: 0 4px 14px rgba(36,81,209,0.35) !important;
}

/* Edit / Delete row buttons */
.mrportedit .dnt-abtn,
.mrportedit input.dnt-abtn,
.mrportedit button.dnt-abtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--cfa-font-body) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 6px 14px !important;
  min-height: 32px !important;
  border-radius: 6px !important;
  border: 1.5px solid #93A9F0 !important;
  background: transparent !important;
  color: #2451D1 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

.mrportedit .dnt-abtn:hover {
  background: #EEF2FF !important;
  border-color: #2451D1 !important;
}

.mrportedit td:last-child .dnt-abtn {
  border-color: #D1D5DB !important;
  color: #6B7280 !important;
}

.mrportedit td:last-child .dnt-abtn:hover {
  background: #FEF2F2 !important;
  border-color: #EF4444 !important;
  color: #EF4444 !important;
}

/* Directors table */
.mrportedit .dirnteam-table th {
  font-family: var(--cfa-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #6B7280 !important;
  background: #F9FAFB !important;
  border-bottom: 1px solid #E5E7EB !important;
  padding: 10px 14px !important;
}

.mrportedit .dirnteam-table td {
  font-family: var(--cfa-font-body) !important;
  font-size: 14px !important;
  color: #111827 !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #E5E7EB !important;
  vertical-align: middle !important;
}


/* ================================================================
   8. FORM INPUTS, SELECTS & LABELS
   ================================================================ */

/* Form group spacing */
.mrportedit .form-group,
.mrportedit .editpitc-inouts > div {
  margin-bottom: 20px !important;
}

/* Labels */
.mrportedit .editpitc-inouts > div > label,
.mrportedit .form-group > label,
.mrportedit .required_label label,
.mrportedit label.required,
.mrportedit .containerlabel-input label:not(.error-msg) {
  font-family: var(--cfa-font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin-bottom: 6px !important;
  display: block !important;
  line-height: 1.4 !important;
}

/* Text inputs, selects, textareas — consistent, no pill shape */
.mrportedit input[type="text"],
.mrportedit input[type="email"],
.mrportedit input[type="tel"],
.mrportedit input[type="number"],
.mrportedit input[type="url"],
.mrportedit input[type="date"],
.mrportedit textarea,
.mrportedit select,
.mrportedit .bi-compname,
.mrportedit .editpitc-inouts input[type="text"],
.mrportedit .editpitc-inouts select,
.mrportedit .containerlabel-input input[type="text"],
.mrportedit .containerlabel-input select {
  font-family: var(--cfa-font-body) !important;
  font-size: 15px !important;
  color: #111827 !important;
  background: #ffffff !important;
  border: 1.5px solid #D1D5DB !important;
  border-radius: 8px !important;
  padding: 11px 14px !important;
  height: auto !important;
  min-height: 46px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* Focus ring */
.mrportedit input[type="text"]:focus,
.mrportedit input[type="email"]:focus,
.mrportedit input[type="tel"]:focus,
.mrportedit input[type="number"]:focus,
.mrportedit input[type="url"]:focus,
.mrportedit input[type="date"]:focus,
.mrportedit textarea:focus,
.mrportedit select:focus {
  border-color: #2451D1 !important;
  box-shadow: 0 0 0 3px rgba(36,81,209,0.12) !important;
}

/* Filename read-only */
.mrportedit .filename.form-control {
  background: #F3F4F6 !important;
  border-color: #E5E7EB !important;
  color: #9CA3AF !important;
  cursor: default !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  border-radius: 8px !important;
  min-height: 46px !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
}

/* Select dropdown arrow — keep native arrow visible */
.mrportedit select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 40px !important;
}

/* Textarea */
.mrportedit textarea {
  width: 100% !important;
  min-height: 120px !important;
  resize: vertical !important;
  line-height: 1.6 !important;
}

/* File upload row */
.mrportedit .editpit-formgrp {
  margin-bottom: 20px !important;
  padding-bottom: 20px !important;
  border-bottom: 1px solid #E5E7EB !important;
}

.mrportedit p.guide-text,
.mrportedit .guide-text {
  font-size: 12px !important;
  color: #9CA3AF !important;
  margin-top: 4px !important;
}

/* Error messages */
.mrportedit .error-msg,
.mrportedit label.error-msg {
  font-family: var(--cfa-font-body) !important;
  font-size: 12px !important;
  color: #EF4444 !important;
  margin-top: 4px !important;
  display: block !important;
}


/* ================================================================
   9. INDUSTRY MULTI-CHECKBOX LIST
   ================================================================ */

.mrportedit .multicheck_field {
  border: 1.5px solid #D1D5DB !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  max-height: 190px !important;
  overflow-y: auto !important;
  background: #ffffff !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mrportedit .multicheck_field::-webkit-scrollbar {
  width: 5px;
}

.mrportedit .multicheck_field::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 10px;
}

.mrportedit .multicheck_field::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 10px;
}

.mrportedit .multicheck_field label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 0 !important;
  font-family: var(--cfa-font-body) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #374151 !important;
  cursor: pointer !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.mrportedit .multicheck_field label:hover {
  color: #2451D1 !important;
}

.mrportedit .multicheck_field input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  border-radius: 4px !important;
  accent-color: #2451D1 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.mrportedit .jform-btn_label.industry_label > label {
  font-family: var(--cfa-font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  display: block !important;
  margin-bottom: 6px !important;
}


/* ================================================================
   10. COMPANY LOGO / IMAGE PREVIEW
   ================================================================ */

.mrportedit .pitedit-comlogo img,
.mrportedit #default_img,
.mrportedit #default_bgimg {
  max-width: 100% !important;
  height: auto !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  display: block !important;
  background: #F9FAFB !important;
  padding: 8px !important;
}


/* ================================================================
   11. EDIT0 PAGE — intro/guidelines
   ================================================================ */

.mrportedit input[type="checkbox"][name="hide"] {
  accent-color: #2451D1 !important;
  width: 15px !important;
  height: 15px !important;
  cursor: pointer !important;
  vertical-align: middle !important;
}


/* ================================================================
   12. RESPONSIVE
   ================================================================ */

@media (max-width: 991px) {
  .mrportedit .ac-rightcontainer {
    padding: 20px !important;
    margin-top: 16px !important;
  }

  .mrportedit .bi-btn,
  .mrportedit button.bi-btn,
  .mrportedit input.bi-btn {
    max-width: 100% !important;
    margin-bottom: 8px !important;
  }
}

@media (max-width: 576px) {
  .mrportedit .ac-buttons {
    flex-direction: column !important;
  }

  .mrportedit .review-btn,
  .mrportedit .previewpitch-btn {
    flex: none !important;
    width: 100% !important;
  }
}
