/* Step container - Updated to match screenshot */
#vrm-journey {
	width:640px;
  padding: 20px;
  text-align: center;
  color: #fff;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

#vrm, #postcode {
    width: 100%;
    padding: 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 2px solid #000;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    box-sizing: border-box;
}
body.journey-started
  .elementor-15 .elementor-element.elementor-element-46a8c671::before {
  background-image: none !important;
}

button.vrm-btn {
  width: 100%;
  background: var(--e-global-color-secondary);
  color: white;
  border: none;
  height: 49px;
  font-family: 'Cal Sans';
  font-size: 16px;
  font-weight: 400;
  border-radius: 8px;
}
.address-dropdown {
  max-height:200px;
  overflow-y:auto;
}
.address-option:hover { background:#f5f5f5; }
/* your form-group or wrapper around the postcode/address inputs */
.address-wrapper { 
    position: relative;  /* <— this creates a positioning context */
}
.address-dropdown {
    top: 100%;           /* show immediately below input */
    left: 0;
}

input#vrm::placeholder {
    color: #000;
    font-weight: 600;
}
button.vrm-btn:hover {
  width: 100%;
  background: var(--e-global-color-secondary);
  color: white;
  border: none;
  height: 49px;
  font-size: 16px;
  font-weight: 600;
}
button.vrm-btn:active {
    width: 100%;
    background: var(--e-global-color-secondary);
    color: white;
    border: none;
    height: 49px;
    font-size: 16px;
    font-weight: 600;
}
button.vrm-btn:focus {
    width: 100%;
    background: var(--e-global-color-secondary);
    color: white;
    border: none;
    height: 49px;
    font-size: 16px;
    font-weight: 600;
}
form#vrm-form {
  padding: 16px;
  background-color: #012214;
  border-radius: 12px;
}
input#vrm {
  background-color: #FFEB00;
  color: #000;
  font-size:20px;
  border-radius:8px;
  border: 2px solid #000;
  font-weight: 900;
  font-family: monospace;
  height:48px;
}
input#email {
    height: 48px;
    font-family:'DM Sans', sans-serif;
    background-color: #fff;
    color: #000;
    border-radius:8px;
    border: 2px solid #000;
    font-weight: 600;
}
input#email::placeholder {
  font-weight: 400;
}
/* VRM button styling */
.vrm-btn {
  width: 100%;
  background: var(--e-global-color-secondary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
  letter-spacing: 1px;
  margin-top: 8px;
}
.vrm-btn:hover {
  background: var(--e-global-color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}
/* Hide hero elements when search is active */
body.vrm-search-active .hero-section,
body.vrm-search-active .elementor-section.hero-section {
    display: none !important;
}

/* Hide specific elementor element always */
.elementor-15 .elementor-element.elementor-element-7d30450::before {
    display: none !important;
}

.elementor-15 .elementor-element.elementor-element-7d30450 {
    display: none !important;
}
body.journey-started .elementor-390 .elementor-element.elementor-element-43ff33cb::before {
    background-image: none !important;
}
body.journey-started .hero-title {
    visibility: hidden !important;
}

/* Hide hero title only when search is active */
body.vrm-search-active .hero-title {
    display: none !important;
}

/* H3 titles - white color only, no other styling */
.vrm-step h3 {
  color: #fff;
}

/* Button row layout */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
	flex-direction:column;
}

/* Yes/No buttons - special styling for factory questions */
.factory-btn, .keytype-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 100px;
  padding: 15px 30px;
}

/* Error message styling */
.error-message {
  background-color: #ff4444;
  color: white;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

/* Address container and dropdown styling */
.address-container {
    position: relative;
    width: 100%;
}

.address-dropdown {
  position: absolute;
  top: 75%;
  left: 0;
  text-align: left;
  color: #000;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.address-option {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.address-option:hover {
    background-color: #f5f5f5;
}

.address-option:last-child {
    border-bottom: none;
}

input[readonly] {
    background-color: #f9f9f9;
    cursor: pointer;
}

input:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Reason and urgency buttons */
.reason-btn, .urgency-btn, .factory-btn, .keytype-btn {
  background: transparent;
  color: white;
  border: 1px solid #fff;
  padding: 12px 37px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
  margin: 5px;
  min-width: 120px;
}

.reason-btn:hover, .urgency-btn:hover, .factory-btn:hover, .keytype-btn:hover {
  background: white;
  color: #012214;
  border-color: #fff;
  transform: translateY(-2px);
}

/* Input fields for client details */
#client-name, #client-phone, #client-location, #confirm-name, #client-postcode, #client-address, #otp-code, #vehicle-postcode, #confirm-title, #confirm-firstname, #confirm-lastname {
  width: 100% !important;
  padding: 12px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50px !important;
  background: #012214 !important;
  color: white !important;
  font-size: 16px !important;
  margin-bottom: 16px !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Style for select dropdown arrow */
#confirm-title {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 20px !important;
  padding-right: 40px !important;
  cursor: pointer;
}

/* Style select options */
#confirm-title option {
  background: #012214;
  color: white;
  padding: 10px;
}

/* Container for title and name on same line */
.name-title-row {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 0 !important;
}

.name-title-row #confirm-title {
  width: 100% !important;
  margin-bottom: 16px !important;
}

/* First and last name row - flex container */
.name-fields-row {
  display: flex !important;
  gap: 2% !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
}

.name-fields-row #confirm-firstname,
.name-fields-row #confirm-lastname {
  width: 49% !important;
}

#client-name::placeholder, #client-phone::placeholder, #client-location::placeholder, 
#confirm-name::placeholder, #otp-code::placeholder, #client-postcode::placeholder, #client-address::placeholder,
#confirm-firstname::placeholder, #confirm-lastname::placeholder {
  color: #ccc !important;
  font-size: 16px !important;
}

.vrm-input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  background: #012214;
  color: white;
  font-size: 16px;
  margin-bottom: 31px;
  transition: all 0.3s ease;
}

/* Branch options styling */
#branch-options button {
  width: 100%;
  background: transparent;
  color: #fff;
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  border: 1px solid #fff;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

#branch-options button:hover {
  background: #fff;
  color: #013220;
  transform: translateY(-2px);
}

/* Back link styling */
.back-link {
  text-align: center;
  margin-top: 20px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
}

.back-link:hover {
  color: #ccc;
}

/* Loader enhancement */
.vrm-loader {
  border: 6px solid rgba(255,255,255,0.2);
  border-top: 6px solid #00ff88;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: 40px auto;
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Vehicle Confirmation Header */
.vehicle-confi.vrm-step {
  display: none;
  text-align: center;
}

input#client-postcode {
    width: 49.5% !important;
}
input#client-phone {
    width: 49.5% !important;
}
#step-5 .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: flex-start;
    flex-direction: row;
}

button.reason-btn {
    width: 30%;
}
/* Vehicle found page styling */
.vehicle-detail {
  text-align: left;
}

.vehicle-detail a {
  color: white;
  text-decoration: underline;
}

.vehicle-detail .tick {
  background-color: var(--e-global-color-primary);
  background-image: url('/wp-content/uploads/2025/09/check.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 24px;
  height: 24px;
  display: inline-block;
}

.vehicle-detail .detail-item {
  padding: 0 24px;
}

.vehicle-detail .detail-title {
  font-weight: bold;
}

.vehicle-confirmation-header {
  text-align: center;
  margin-bottom: 25px;
}

.confirmation-tick {
  width: 50px;
  height: 50px;
  background: var(--e-global-color-primary);
  background-image: url('/wp-content/uploads/2025/09/check.svg');
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.vehicle-confirmation-header h3 {
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}

/* Vehicle Details - Horizontal layout */
.vrm-vehicle-details {
  background: #013220;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0px;
}

.vehicle-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  row-gap: 5px;
  padding: 0;
  border-right: 1px solid #fff;
}

.vehicle-detail:last-child {
  border-right: none;
}
.detail-label {
  color: #fff;
  font-weight: 500;
  font-size: 20px;
  font-family: 'Cal Sans';
}

.detail-value {
  color: #fff;
  font-weight: 300;
  font-size: 16px;
  font-family: 'Cal Sans';
}

/* Only capitalize vehicle registration */
#res-vrm {
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Vehicle wrong link styling */
.vehicle-wrong-link {
	margin-top:16px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-family: 'Cal Sans', sans-serif;
}

.vehicle-wrong-link a {
  color: #fff;
  text-decoration: underline !important;
  font-size:14px !important;
  font-family: 'Cal Sans', sans-serif;
}


/* container row */
.quote-options-row{
  display:flex;
  gap:20px;
  flex-wrap:nowrap;
  margin:20px 0;
}

/* each card */
.quote-card{
  flex:1 1 200px;
  max-width:250px;
  border:2px solid rgba(255,255,255,0.2);
  border-radius:10px;
  padding:20px;
  background:transparent;
  color:#fff;
  text-align:left;
  cursor:pointer;
  position:relative;
  transition:all .2s ease-in-out;
}
.quote-card:hover{
  box-shadow:0 0 10px rgba(0,0,0,0.2);
  border-color:#008853;
}
.quote-card input[type=radio]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.quote-card input[type=radio]:checked + .quote-title,
.quote-card input[type=radio]:checked ~ .quote-price{
  color:#008853;
  font-weight:700;
}
.quote-title{
  margin-top:0;
  margin-bottom:10px;
  font-size:1.2em;
}
.quote-desc{
  font-size:.9em;
  margin:0 0 10px 0;
}
.quote-price{
  font-size:1.4em;
  font-weight:600;
  margin-bottom:15px;
}
.quote-select{
  display:inline-block;
  background:rgba(255,255,255,0.2);
  color:#fff;
  padding:10px 24px;
  border-radius:20px;
  font-weight:600;
  font-size:.9em;
}
label.quote-card:has(input[type="radio"]:checked) {
    background-color: #fff;
    color: var(--e-global-color-primary);
    border: 2px solid var(--e-global-color-primary);
    box-shadow: 0 0 8px rgba(0,0,0,.2);
}

@media only screen and (max-width:1024px){
	button.reason-btn {
    width: 45%;
}
	.detail-label {

    font-size: 16px;
}
	.detail-value {

    font-size: 14px;
}

}
@media only screen and (max-width:767px){
	input#client-phone,input#client-postcode {
    width: 100% !important;
}
	/* Stack first and last name on mobile */
	.name-fields-row {
		flex-direction: column !important;
		gap: 0 !important;
	}
	
	.name-fields-row #confirm-firstname,
	.name-fields-row #confirm-lastname {
		width: 100% !important;
	}
	.quote-card {
    max-width: 100%;
	}
	.quote-options-row {
 
    flex-wrap: wrap;
}
	#vrm-journey {
	width:400px;
	}
	.vehicle-detail {
    flex-direction: row;
    align-items: center;
    text-align: center;
    gap: 5px;
    border-right: 0px solid #fff;
    flex-wrap: wrap;
}
	.vrm-vehicle-details {

    gap: 5px;
    flex-direction: column;
}
}