/* ================================
   WPBS Passport Upload — FINAL CSS
   - Keeps MD custom button when it exists
   - If it disappears after validation, shows a clean fallback (no long rectangle)
   - Square corners, dark grey text, invert on hover
   ================================ */

/* 1) MAIN PLUGIN BUTTON */
.passport-upload .md-upload-trigger {
	text-transform: capitalize !important;
  background: #ffffff !important;
  color: #353030 !important;
  border: 1px solid #353030 !important;
  border-radius: 0 !important;
  padding: 10px 18px !important;
  font-size: 16px !important;
  font-family: "Source Sans Pro", sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: .3px !important;
  cursor: pointer !important;
  transition: all .25s ease !important;
  display: inline-block !important;
  line-height: 1 !important;
}

.passport-upload .md-upload-trigger:hover {
  background: #353030 !important;
  color: #ffffff !important;
}

/* 2) WHEN CUSTOM BUTTON EXISTS → HIDE NATIVE INPUT */
.passport-upload:has(.md-upload-trigger) input[type="file"] {
  position: absolute !important;
  left: -9999px !important;
  width: 100% !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Hide plugin filename text */
.passport-upload .md-upload-filename {
  display: none !important;
}

/* 3) FALLBACK MODE (when button disappears after validation) */
/* Added .wpbs-main-wrapper .wpbs-form-container to crush the plugin's default CSS */
.wpbs-main-wrapper .wpbs-form-container .passport-upload:not(:has(.md-upload-trigger)) input[type="file"] {
  display: inline-block !important;
  height: 38px !important;
  line-height: 17px !important;
  overflow: visible !important; /* FIX 1: Changed from hidden so borders don't get chopped off */
  white-space: nowrap !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  cursor: pointer !important;
  border-radius: 0px !important; /* Added 'px' so the browser reads it correctly */
  box-shadow: none !important;
}

/* Make the native "Choose File" part match your button */
.wpbs-main-wrapper .wpbs-form-container .passport-upload:not(:has(.md-upload-trigger)) input[type="file"]::-webkit-file-upload-button {
  -webkit-appearance: none !important; /* FIX 2: Forces the browser to show your borders */
  appearance: none !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  color: #353030 !important;
  border: 1px solid #353030 !important;
  border-radius: 0 !important;
  padding: 10px 18px !important;
  margin-right: 10px !important; /* FIX 3: Adds a tiny gap before the 'no file selected' text */
  font-size: 16px !important;
  font-family: "Source Sans Pro", sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: .3px !important;
  cursor: pointer !important;
  transition: all .25s ease !important;
}

.contact-outline-btn{
  display:inline-block;
  margin-top:12px;
  padding:8px 25px; /* thinner height */
  background:#ffffff;
  color:#353030;
  border:1px solid #353030;
  text-decoration:none;
  font-family:'Source Sans Pro', sans-serif;
  font-size:16px;
  font-weight:500;
  letter-spacing:0.3px;
	 line-height:1.2;   
  text-align:center;
  transition:all .25s ease;
}

.contact-outline-btn:hover{
  background:#353030;
  color:#ffffff;
}

.contact-outline-btn,
.contact-outline-btn:hover{
  text-decoration: none !important;
}

/* =========================================
   Review Form Submit Button
   - Default: Dark grey background, white text
   - Hover: White background, dark grey text & border
   ========================================= */

/* 1) DEFAULT STATE */
.wpmtst-submit input.wpmtst_submit_testimonial {
    background-color: #353030 !important;
    color: #ffffff !important;
    border: 1px solid #353030 !important;
    border-radius: 0 !important;
    padding: 10px 24px !important; /* Made it slightly wider than the upload button for visual balance */
    font-size: 14px !important;
    font-family: "Source Sans Pro", sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: .3px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    -webkit-appearance: none !important; /* Stops iPhones/Macs from turning it into a round pill */
    appearance: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

/* 2) HOVER STATE (Invert colors) */
.wpmtst-submit input.wpmtst_submit_testimonial:hover {
    background-color: #ffffff !important;
    color: #353030 !important;
    border: 1px solid #353030 !important;
}


