body {
	margin:  0;
}
.page-content {
	width: 100%;
	margin:  0 auto;
	display: flex;
	display: -webkit-flex;
	justify-content: center;
	-o-justify-content: center;
	-ms-justify-content: center;
	-moz-justify-content: center;
	-webkit-justify-content: center;
	align-items: center;
	-o-align-items: center;
	-ms-align-items: center;
	-moz-align-items: center;
	-webkit-align-items: center;
	/* background: #383a4f; */
	background: #f4f4f4;
	flex-direction: column;
	-o-flex-direction: column;
	-ms-flex-direction: column;
	-moz-flex-direction: column;
	-webkit-flex-direction: column;
}
.wizard-heading {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 30px;
    padding-top: 85px;
    padding-bottom: 55px;
}
.wizard-v6-content   {
	width: 910px;
	box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
	-o-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
	-ms-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
	-moz-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
	-webkit-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	-o-border-radius: 10px;
	-ms-border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	margin: 0 0 90px;
	font-family: 'Open Sans', sans-serif;
	font-size: 18px;
	font-weight: 400;
	position: relative;
	display: flex;
	display: -webkit-flex;
}
.wizard-v6-content .wizard-form {
	width: 100%;
	/* background: #525575; */
	background: #062c6c;
	border-radius: 10px;
	-o-border-radius: 10px;
	-ms-border-radius: 10px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
}
.form-register .steps {
	padding:  35px 50px 20px;
}
.form-register .steps ul {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    -o-justify-content: space-between;
    -ms-justify-content: space-between;
    -moz-justify-content: space-between;
    -webkit-justify-content: space-between;
    list-style: none;
    padding-left: 0;
    margin-top: 0;
    width: 100%;
}
.form-register .steps li,
.form-register .steps li.current {
	outline: none;
	-o-outline: none;
    -ms-outline: none;
    -moz-outline: none;
    -webkit-outline: none;
    border-radius: 5px;
    -o-border-radius: 5px;
    -ms-border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    position: relative;
    width: 33.33%;
    margin-right: 20px;
    background: #fff;
}
.form-register .steps li:last-child {
	margin-right: 0;
}
.form-register .steps li .current-info {
	display: none;
}
.form-register .steps li a {
	text-decoration: none;
	outline: none;
	-o-outline: none;
    -ms-outline: none;
    -moz-outline: none;
    -webkit-outline: none;
}
.form-register .steps li a .title {
	display: flex;
	display: -webkit-flex;
}
.form-register .steps li a .title .step-icon { 
    position: relative;
    outline: none;
    -o-outline: none;
    -ms-outline: none;
    -moz-outline: none;
    -webkit-outline: none;
    box-shadow: 0px 4px 11px 0px rgba(0, 0, 0, 0.14);
    -o-box-shadow: 0px 4px 11px 0px rgba(0, 0, 0, 0.14);
    -ms-box-shadow: 0px 4px 11px 0px rgba(0, 0, 0, 0.14);
    -moz-box-shadow: 0px 4px 11px 0px rgba(0, 0, 0, 0.14);
    -webkit-box-shadow: 0px 4px 11px 0px rgba(0, 0, 0, 0.14);
    font-size: 18px;
    color: #04368a;
    font-size: 25px;
    background: #ccc;
    padding: 30px;
    margin: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.form-register .steps li a .step-icon span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}
.form-register .steps li.current a .step-icon,
.form-register .steps li.current a:active .step-icon,
.form-register .steps li.done a .step-icon,
.form-register .steps li.done a:active .step-icon {
	background: #fdcf04;
}
.form-register .steps li a .step-text {
	color: #04368a;
	font-size: 16px;
	font-weight: 400;
	padding-top: 18px;
	padding-left: 20px;
}
.form-register .content {
	padding:  0 50px;
}
.form-register .content h2 {
	display: none;
}
.inner .form-heading {
	display: flex;
	display: -webkit-flex;
	justify-content: space-between;
	-o-justify-content: space-between;
    -ms-justify-content: space-between;
    -moz-justify-content: space-between;
    -webkit-justify-content: space-between;
}
.inner .form-heading h3 {
	font-weight: 700;
	font-size: 30px;
	color: #fff;
	margin: 0;
    padding: 0 0 35px;
}
.inner .form-heading span {
	font-weight: 400;
	font-size: 18px;
	color: #ccc;
}
.inner .form-row {
    display: flex;
    margin: 0 -15px;
    position: relative;
    margin-bottom: 25px;
}
.inner .form-row .form-row-inner {
    position: relative;
}
.inner .form-row .form-holder {
    width: 50%;
    padding: 0 15px;
    position: relative;
}
.inner .form-row .form-holder.form-holder-2 {
	width: 100%;
	position: relative;
}
.inner .form-row .form-holder .label {
    position: absolute;
    top: 6px;
    left: 10px;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    transform-origin: 0 0;
    transition: all .2s ease;
    -moz-transition: all .2s ease;
    -webkit-transition: all .2s ease;
    -o-transition: all .2s ease;
    -ms-transition: all .2s ease;
    pointer-events: none;
    z-index: 1;
}
.inner .form-row .form-holder label.special-label {
    display: block;
    float: none;
    padding-right: 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}
.inner .form-row .form-holder label.special-label-1 {
	font-weight: 600;
	font-size: 14px;
	color: #fdcf04;
}
.inner .form-images {
    margin-bottom: 20px;
}
.inner .form-row .form-holder input,
.inner .form-row .form-holder select {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 11.5px 20px;
    border: none;
    appearance: unset;
    -moz-appearance: unset;
    -webkit-appearance: unset;
    -o-appearance: unset;
    -ms-appearance: unset;
    outline: none;
    -moz-outline: none;
    -webkit-outline: none;
    -o-outline: none;
    -ms-outline: none;
    background: transparent;
    border-bottom: 1px solid;
    border-bottom-color: rgba(255,255,255,0.3);
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #fff;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
}
.inner .form-row .form-holder .form-control:focus + .label, 
.inner .form-row .form-holder .form-control:valid + .label,
.inner .form-row .form-holder .form-control:not(:placeholder-shown) + .label {
    transform: translateY(-34px) scale(0.9);
    -moz-transform: translateY(-34px) scale(0.9);
    -webkit-transform: translateY(-34px) scale(0.9);
    -o-transform: translateY(-34px) scale(0.9);
    -ms-transform: translateY(-34px) scale(0.9);
    color: #fdcf04;
}

/* JavaScript-controlled label positioning */
.inner .form-row .form-holder .label.label-up {
    transform: translateY(-34px) scale(0.9);
    -moz-transform: translateY(-34px) scale(0.9);
    -webkit-transform: translateY(-34px) scale(0.9);
    -o-transform: translateY(-34px) scale(0.9);
    -ms-transform: translateY(-34px) scale(0.9);
    color: #fdcf04;
}

input::placeholder {
    color: #fff;
}
input:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color: #fff;
}
input::-ms-input-placeholder { /* Microsoft Edge */
   color: #fff;
}
.inner .form-row .form-holder select {
    background: #fff url('../images/wizard_v6_icon.png') no-repeat scroll;
    background-position: right 16px center;
    z-index: 1;
    cursor: pointer;
    color: #04368a;
    position: relative;
    font-weight: 400;
    font-size: 14px;
}
.inner .form-row .form-holder select#room,
.inner .form-row .form-holder #day,
.inner .form-row .form-holder select#time {
	background: transparent;
    border-bottom: 1px solid;
    border-bottom-color: rgba(255,255,255,0.3);
    color: #fff;
    position: relative;
    background: 0 0;
    z-index: 1;
    cursor: poiter;
}
.inner .form-row .form-holder .select-btn {
    z-index: 0;
    position: absolute;
    top: 54.5%;
    right: 6%;
    font-size: 19px;
    cursor: pointer;
    color: #fff;
}
.inner .form-row .form-holder.form-holder-2 .select-btn {
	right: 3.5%;
}
.inner .form-row.form-row-date .form-holder select {
	float: none;
    width: 12.4%;
    margin-right: 20px;
    border-radius: 5px;
    -o-border-radius: 5px;
    -ms-border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
.inner .form-row.form-row-date .form-holder select#year {
	width: 13.6%;
}
.inner .form-row .form-holder select option {
	background: #fff;
	color: #04368a;
}
.inner .form-row .form-holder .ui-datepicker-trigger {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 19px;
    position: absolute;
    cursor: pointer;
    right: 5%;
    top: 54.5%;
    outline: none;
    -o-outline: none;
    -ms-outline: none;
    -moz-outline: none;
    -webkit-outline: none;
}
.inner .table-responsive {
    border: none;
}
.inner .table-responsive .table {
	width: 100%;
}
.inner .table-responsive tbody {
	text-align: left;
}
.inner .table-responsive tr.space-row {
    display: block;
}
.inner .table-responsive tbody th {
	display: block;
	font-size: 16px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.5);
	padding-bottom: 0;
}
.inner .table-responsive tbody td {
	color: #fdcf04;
	font-size: 18px;
	font-weight: 700;
	padding-bottom: 25px;
}
.form-register .actions {
	padding: 0 45px 45px;
}
.actions ul {
	list-style: none;
	padding-left: 0;
    margin: 15px 0 0;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -o-justify-content: center;
    -ms-justify-content: center;
    -moz-justify-content: center;
    -webkit-justify-content: center;
}
.actions ul li.disabled {
	display: none;
}
.actions ul li {
	padding: 0;
    border: none;
    display: inline-flex;
    height: 50px;
    min-width: 160px;
    justify-content: center;
    -o-justify-content: center;
    -ms-justify-content: center;
    -moz-justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -o-align-items: center;
    -ms-align-items: center;
    -moz-align-items: center;
    -webkit-align-items: center;
    border-radius: 12px;
    -o-border-radius: 12px;
    -ms-border-radius: 12px;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    background: linear-gradient(135deg, #fdcf04 0%, #f4c430 100%);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 8px;
    box-shadow: 0 4px 15px rgba(253, 207, 4, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.actions ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.actions ul li:hover {
	background: linear-gradient(135deg, #f4c430 0%, #e6b800 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(253, 207, 4, 0.6);
}

.actions ul li:hover::before {
    left: 100%;
}

.actions ul li:active {
    transform: translateY(0px);
    box-shadow: 0 2px 10px rgba(253, 207, 4, 0.5);
}

.actions ul li:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.actions ul {
    gap: 16px;
    flex-wrap: wrap;
}
.actions ul li a {
	color: #04368a;
	text-decoration: none;
    padding: 14px 30px;
    font-weight: 700;
    text-transform: inherit;
    letter-spacing: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transition: all 0.3s ease;
}

/* Different styling for Back button */
.actions ul li:first-child {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.actions ul li:first-child:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    box-shadow: 0 6px 25px rgba(108, 117, 125, 0.6);
}

.actions ul li:first-child a {
    color: #ffffff;
}

/* Enhanced styling for Confirm button */
.actions ul li:last-child {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.actions ul li:last-child:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.6);
}

.actions ul li:last-child a {
    color: #ffffff;
}

/* Add icon-like elements to buttons */
.actions ul li a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 0;
    transition: all 0.3s ease;
}

/* Back button arrow */
.actions ul li:first-child a::before {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 8px solid #ffffff;
    margin-right: 8px;
}

/* Next button arrow */
.actions ul li:not(:first-child):not(:last-child) a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #04368a;
    margin-left: 8px;
    transition: all 0.3s ease;
}

/* Confirm button checkmark */
.actions ul li:last-child a::before {
    width: 6px;
    height: 12px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-right: 8px;
}

/* Enhanced breakpoints for better device coverage */
@media screen and (max-width: 1024px) {
    .wizard-v6-content {
        width: 95%;
        margin: 0 0 60px;
    }
    
    .form-register .steps {
        padding: 30px 40px 15px;
    }
    
    .wizard-heading {
        font-size: 24px;
        padding-top: 60px;
        padding-bottom: 40px;
    }
}

/* Responsive */
@media screen and (max-width: 991px) {
	.wizard-v6-content {
		width: 95%;
        padding-top: 2%;
        margin: 0 0 50px;
	}
	
	.form-register .steps li a .title {
		flex-direction: column;
		-o-flex-direction: column;
		-ms-flex-direction: column;
		-moz-flex-direction: column;
		-webkit-flex-direction: column;
		align-items: center;
		-o-align-items: center;
		-ms-align-items: center;
		-moz-align-items: center;
		-webkit-align-items: center;
	}
	
	.form-register .steps li a .title .step-icon {
		border-top-left-radius: 0;
    	border-bottom-left-radius: 0;
	}
	
	.form-register .steps li a .step-text {
		padding-bottom: 20px;
		padding-left: 0;
        text-align: center;
        font-size: 14px;
	}
	
	.inner .form-row.form-row-date .form-holder select,
	.inner .form-row.form-row-date .form-holder select#year {
		width: 25%;
	}
	
	.header-container {
	    padding-top: 3%;
	}
	
	.heading h1 {
	    font-size: 1.8rem;
	}
}

@media screen and (max-width: 768px) {
    .wizard-v6-content {
        width: 98%;
        margin: 0 0 30px;
        border-radius: 8px;
    }
    
    .form-register .steps {
        padding: 25px 20px 15px;
    }
    
    .form-register .steps li {
        width: 30%;
        margin-right: 15px;
    }
    
    .form-register .steps li a .title {
        flex-direction: column;
        align-items: center;
    }
    
    .form-register .steps li a .step-text {
        font-size: 12px;
        padding-left: 0;
        padding-bottom: 15px;
    }
    
    .form-register .steps li a .title .step-icon {
        padding: 15px;
        font-size: 18px;
    }
    
    .inner .content {
        padding: 0 20px;
    }
    
    .inner .form-heading h3 {
        font-size: 24px;
    }
    
    .inner .form-heading span {
        font-size: 14px;
    }
    
    .header-container {
        padding-top: 4%;
        flex-direction: column;
        text-align: center;
    }
    
    .heading h1 {
        font-size: 1.6rem;
        margin-top: 15px;
    }
    
    .logo img {
        max-height: 70px;
        margin: 0 auto;
    }
    
    .wizard-heading {
        font-size: 20px;
        padding-top: 40px;
        padding-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    .wizard-v6-content {
        width: 100%;
        border-radius: 0;
        margin: 0;
        box-shadow: none;
    }
    
    .form-register .steps {
        padding: 20px 15px 10px;
    }
    
    .form-register .steps li {
        width: 28%;
        margin-right: 8px;
    }
    
    .form-register .steps li a .title .step-icon {
        padding: 12px;
        font-size: 16px;
    }
    
    .form-register .steps li a .step-text {
        font-size: 11px;
        padding-bottom: 10px;
    }
    
    .actions ul li a {
        padding: 10px 25px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .inner .content {
        padding: 0 15px;
    }
    
    .inner .form-heading h3 {
        font-size: 20px;
    }
    
    .inner .form-heading span {
        font-size: 12px;
    }
    
    .header-container {
        padding-top: 5%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .heading h1 {
        font-size: 1.4rem;
        margin-top: 10px;
    }
    
    .logo img {
        max-height: 60px;
    }
    
    .wizard-heading {
        font-size: 18px;
        padding-top: 30px;
        padding-bottom: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Enhanced mobile form field handling */
@media screen and (max-width: 575px) {
    .inner .form-row {
        flex-direction: column;
        -o-flex-direction: column;
        -ms-flex-direction: column;
        -moz-flex-direction: column;
        -webkit-flex-direction: column;
        margin: 0;
    }
    
    .inner .form-row .form-holder {
        width: 100%;
        padding: 0;
        margin-bottom: 25px;
    }
    
    /* Special handling for date of birth row */
    .inner .form-row:has(.form-holder-3) {
        flex-direction: column;
    }
    
    .inner .form-row:has(.form-holder-3) .form-holder {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .inner .form-row:has(.form-holder-3) .form-holder-3 {
        width: 100%;
        margin-top: 10px;
        padding: 0 15px 20px;
    }
    
    .inner .form-row.form-row-date .form-holder select,
    .inner .form-row.form-row-date .form-holder select#year {
        float: none;
        width: 100%;
        margin-bottom: 15px;
        min-height: 44px;
    }
    
    .inner .form-row .form-holder .label {
        font-size: 14px;
        top: 8px;
    }
    
    .inner .form-row .form-holder .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .inner .form-row .form-holder .form-control:focus + .label, 
    .inner .form-row .form-holder .form-control:valid + .label,
    .inner .form-row .form-control:not(:placeholder-shown) + .label {
        transform: translateY(-32px) scale(0.8);
        -webkit-transform: translateY(-32px) scale(0.8);
    }
    
    #contact_number + .label {
        font-size: 13px;
    }
    
    .inner .form-heading span {
        display: none;
    }
    
    	.inner .form-images {
		display: none;
	}
	
		/* Enhanced mobile button styling */
	.actions ul li {
		height: 48px !important;
		min-width: 140px !important;
		margin: 0 6px !important;
		font-size: 14px !important;
		letter-spacing: 0.6px !important;
	}
	
	.actions ul li a {
		padding: 12px 20px !important;
		font-size: 14px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}
	
	/* Adjust arrows for mobile */
	.actions ul li:first-child a::before {
		border-right-width: 6px !important;
		border-top-width: 4px !important;
		border-bottom-width: 4px !important;
		margin-right: 6px !important;
	}
	
	.actions ul li:not(:first-child):not(:last-child) a::after {
		border-left-width: 6px !important;
		border-top-width: 4px !important;
		border-bottom-width: 4px !important;
		margin-left: 6px !important;
	}
	
	.actions ul li:last-child a::before {
		width: 5px !important;
		height: 10px !important;
		margin-right: 6px !important;
	}
	
	/* Mobile responsive fixes for "Order a Plan" step */
	.inner .form-row .form-holder label.special-label-2 {
		font-size: 18px !important; /* Reduce from 30px */
		margin-bottom: 15px !important;
		line-height: 1.3 !important;
	}
	
	#plan-description-2 {
		font-size: 14px !important;
		margin: -20px 0px 20px !important;
		padding: 0 5px !important;
	}
	
	/* Ensure plan dropdowns are mobile-friendly */
	#plan, #phone-plan {
		font-size: 14px !important;
		min-height: 44px !important;
		padding: 10px 35px 10px 15px !important;
	}
	
	/* AVC ID field mobile styling */
	#avc_id {
		font-size: 14px !important;
		min-height: 44px !important;
		padding: 10px 15px !important;
	}
	
	/* Mobile layout for EzPhone and AVC ID row */
	.inner .form-row:has(#phone-plan) {
		flex-direction: column !important;
		gap: 20px !important;
	}
	
	.inner .form-row:has(#phone-plan) .form-holder {
		width: 100% !important;
		margin-bottom: 0 !important;
	}
	
	/* Error message styling for plan fields on all screens */
	#plan_error, #phone_plan_error, #avc_id_error {
		display: block !important;
		font-size: 12px !important;
		color: #dc3545 !important;
		margin-top: 5px !important;
		min-height: 16px !important;
	}
	
	/* Error state styling for plan dropdowns */
	#plan.error, #phone-plan.error {
		border-color: #dc3545 !important;
		box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
	}
	
	/* Confirm Details step - Company fields visibility */
	.company-row, .abn-acn-row {
		transition: all 0.3s ease !important;
	}
	
	.company-row.hidden, .abn-acn-row.hidden {
		display: none !important;
	}
}

/* Extra small devices */
@media screen and (max-width: 360px) {
    .form-register .steps li {
        width: 26%;
        margin-right: 6px;
    }
    
    .form-register .steps li a .title .step-icon {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-register .steps li a .step-text {
        font-size: 10px;
        padding-bottom: 8px;
    }
    
    .inner .content {
        padding: 0 10px;
    }
    
    .inner .form-heading h3 {
        font-size: 18px;
    }
    
    .header-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .heading h1 {
        font-size: 1.2rem;
    }
    
    .wizard-heading {
        font-size: 16px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Targeted fix for mobile number field only */
#contact_number:focus + .label,
#contact_number:not(:placeholder-shown) + .label {
    transform: translateY(-34px) scale(0.9);
    -moz-transform: translateY(-34px) scale(0.9);
    -webkit-transform: translateY(-34px) scale(0.9);
    -o-transform: translateY(-34px) scale(0.9);
    -ms-transform: translateY(-34px) scale(0.9);
    color: #fdcf04;
}

@media screen and (max-width: 575px) {
    .inner .form-row .form-holder .label {
        font-size: 14px;
        top: 8px;
    }
    
    .inner .form-row .form-holder .form-control:focus + .label, 
    .inner .form-row .form-holder .form-control:valid + .label,
    .inner .form-row .form-holder .form-control:not(:placeholder-shown) + .label {
        transform: translateY(-32px) scale(0.8);
        -webkit-transform: translateY(-32px) scale(0.8);
    }
    
    #contact_number + .label {
        font-size: 13px;
    }
}

@media screen and (max-width: 575px) {
	.form-register .steps {
	    padding: 35px 30px 20px;
	}
	.form-register .steps li a .title .step-icon {
		padding:  20px;
		font-size: 20px;
	}
	.form-register .content {
		padding: 0 30px;
	}
	.inner .form-heading span {
		display: none;
	}
	.inner .form-images {
		display: none;
	}
	.inner .form-row {
		flex-direction: column;
		-o-flex-direction: column;
		-ms-flex-direction: column;
		-moz-flex-direction: column;
		-webkit-flex-direction: column;
		margin: 0;
	}
	.inner .form-row .form-holder {
		width: 100%;
		padding: 0;
		margin-bottom: 30px;
	}
	.inner .form-row.form-row-date .form-holder select,
	.inner .form-row.form-row-date .form-holder select#year {
	    float: none;
	    width: 100%;
	    margin-bottom: 20px;
	    margin-right: 0;
	    display: block;
	}
	.inner .form-row .form-holder .ui-datepicker-trigger {
		right: 0;
	}
	.inner .form-row .form-holder .select-btn {
		right: 2%;
	}
	
} 

/* Date of Birth field - simple styling to match other form fields */
#dob {
    /* Inherit all styling from standard form controls */
}

#dob + .label {
    /* Inherit all styling from standard form labels */
}

#dob:focus + .label,
#dob:valid + .label,
#dob:not(:placeholder-shown) + .label {
    /* Inherit all styling from standard label animation */
}

/* Ensure Date of Birth label moves up when there's content */
#dob:not([value=""]) + .label {
    transform: translateY(-34px) scale(0.9);
    -moz-transform: translateY(-34px) scale(0.9);
    -webkit-transform: translateY(-34px) scale(0.9);
    -o-transform: translateY(-34px) scale(0.9);
    -ms-transform: translateY(-34px) scale(0.9);
    color: #fdcf04;
}

/* Ensure datepicker appears above other elements */
.ui-datepicker {
    z-index: 9999 !important;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ui-datepicker .ui-datepicker-header {
    background: #fdcf04;
    color: #333;
    border: none;
    border-radius: 4px 4px 0 0;
}

.ui-datepicker .ui-datepicker-title {
    color: #333;
    font-weight: 600;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 3px;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(0, 0, 0, 0.2);
}

.ui-datepicker .ui-datepicker-calendar th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.ui-datepicker .ui-datepicker-calendar td a {
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.ui-datepicker .ui-datepicker-calendar td a:hover {
    background: #fdcf04;
    color: #333;
}

.ui-datepicker .ui-datepicker-calendar .ui-state-active {
    background: #fdcf04;
    color: #333;
    font-weight: 600;
}

.error {
    border: 1px solid red;
    border-radius: 4px;
}

.error-message {
    color: red;
    font-size: 10px;
    margin-top: 4px;
    display: block;
}

/* Enhanced consent checkbox styling */
.form-row-inner {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 20px 0 !important;
    cursor: pointer !important;
}

/* Custom checkbox styling */
#consent {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #fdcf04;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    transition: all 0.3s ease;
}

#consent:hover {
    border-color: #f4c430;
    box-shadow: 0 0 8px rgba(253, 207, 4, 0.3);
}

#consent:checked {
    background: linear-gradient(135deg, #fdcf04 0%, #f4c430 100%);
    border-color: #fdcf04;
}

#consent:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #04368a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Enhanced label styling */
#consent + .label {
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
    flex: 1 !important;
    margin: 0 !important;
    cursor: pointer !important;
    display: block !important;
}

/* Enhanced link styling */
.terms-link {
    color: #fdcf04 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.terms-link:hover {
    color: #f4c430 !important;
    text-decoration: none !important;
}

/* Focus state for accessibility */
#consent:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Mobile responsiveness for consent */
@media screen and (max-width: 768px) {
    .form-row-inner {
        gap: 10px !important;
        padding: 15px 0 !important;
    }
    
    #consent {
        width: 18px !important;
        height: 18px !important;
    }
    
    #consent:checked::after {
        left: 5px !important;
        top: 1px !important;
        width: 5px !important;
        height: 8px !important;
    }
    
    #consent + .label {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
}

.logo {
}

.heading {
    margin-left: 0;
}

/* Ensure the logo and heading are responsive */
.logo img {
    height: auto;
    max-height: 100px;
}

.heading h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #04368a;
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
    .heading h1 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .logo img {
        max-height: 80px;
        margin-right: 0px;
    }

    .heading h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .logo img {
        max-height: 60px;
        margin-right: 0px;
    }

    .heading h1 {
        font-size: 1.5rem;
    }

    .header-container {
        flex-direction: column;
        padding-top: 2%;
    }
}

.form-holder-3 {
    width: 40%; /* Reduced from 50% to give more space for date of birth */
    padding: 0 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-holder-3 .label {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    margin-right: 20px;
}

.radio-group {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 16px;
    color: #fdcf04;
    user-select: none;
}

.radio-group label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fdcf04;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.radio-group input[type="radio"]:checked + label:before {
    background-color: #fdcf04;
}

.radio-group label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.radio-group input[type="radio"]:checked + label:after {
    transform: translateY(-50%) scale(1);
}

/* Mobile optimizations for form-holder-3 and radio buttons */
@media screen and (max-width: 768px) {
    .form-holder-3 {
        width: 45%; /* Slightly wider on tablets */
        padding: 0 10px;
    }
    
    .radio-group {
        margin-right: 15px;
    }
    
    .radio-group label {
        font-size: 15px;
        padding-left: 30px;
    }
}

@media screen and (max-width: 575px) {
    .form-holder-3 {
        width: 100%; /* Full width on mobile for better layout */
        padding: 0 15px 20px;
        position: relative;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-around;
        gap: 15px;
        margin-top: 15px; /* Add space above client type section */
    }
    
    .radio-group {
        margin-right: 15px;
        margin-bottom: 10px;
    }
    
    .radio-group label {
        font-size: 14px;
        padding-left: 25px;
        min-height: 40px;
        display: flex;
        align-items: center;
    }
    
    .radio-group label:before {
        width: 18px;
        height: 18px;
    }
    
    .radio-group label:after {
        width: 8px;
        height: 8px;
        left: 4px;
    }
}

#plan {
    display: block;
    visibility: visible;
}

/* Description style */
#plan-description-2 {
    font-size: 1rem;
    color: #999999;
    margin: -30px 0px 30px;
    line-height: 1.5;
}

#plan-description-2 .inner .form-heading h3 {
	font-weight: 700;
	font-size: 30px;
	color: #fff;
	margin: 0;
}

.inner .form-row .form-holder label.special-label-2 {
    font-weight: 700;
    font-size: 30px;
    color: #fff;
    margin: 0;
}

.error {
    border-color: red;
}

.hidden {
    display: none;
}

/* Enhanced form row with CSS Grid fallback */
.inner .form-row {
    display: flex;
    display: -webkit-flex;
    /* CSS Grid fallback for modern browsers */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* Changed from 1fr 1fr to support 3 columns */
    gap: 20px; /* Reduced gap for better fit */
    
    /* Flexbox fallback */
    flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    margin: 0 0 27px;
}

/* Grid support detection */
@supports (display: grid) {
    .inner .form-row {
        display: grid;
    }
    
    .inner .form-row .form-holder {
        width: auto;
        padding: 0;
    }
    
    /* Special handling for rows with 2 fields */
    .inner .form-row:has(.form-holder:nth-child(2):last-child) {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Special handling for rows with 1 field */
    .inner .form-row:has(.form-holder:nth-child(1):last-child) {
        grid-template-columns: 1fr;
    }
}

/* Fallback for older browsers */
@supports not (display: grid) {
    .inner .form-row {
        display: flex;
        display: -webkit-flex;
    }
}

/* Orientation handling for tablets */
@media screen and (max-width: 1024px) and (orientation: landscape) {
    .wizard-v6-content {
        width: 85%;
    }
    
    .form-register .steps li {
        width: 30%;
    }
    
    .inner .form-row {
        flex-direction: row;
        -webkit-flex-direction: row;
    }
}

@media screen and (max-width: 768px) and (orientation: portrait) {
    .header-container {
        padding-top: 5%;
    }
    
    .wizard-v6-content {
        margin: 20px 0 40px;
    }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
    .header-container {
        padding-top: 1%;
    }
    
    .wizard-heading {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* IE11 and older browser support */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    /* IE11 specific styles */
    .page-content {
        display: block;
        text-align: center;
    }
    
    .wizard-v6-content {
        display: inline-block;
        vertical-align: top;
    }
    
    .form-register .steps ul {
        display: block;
    }
    
    .form-register .steps li {
        display: inline-block;
        vertical-align: top;
        width: 30%;
    }
}

/* Fallback for browsers without flexbox support */
.no-flexbox .inner .form-row {
    display: block;
}

.no-flexbox .inner .form-row .form-holder {
    display: inline-block;
    width: 48%;
    vertical-align: top;
}

.no-flexbox .actions ul {
    text-align: center;
}

.no-flexbox .actions ul li {
    display: inline-block;
    margin: 0 10px;
}

/* Touch feedback for mobile */
.radio-group label.touch-active {
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

/* Mobile-specific improvements */
@media screen and (max-width: 768px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Better touch targets */
    .form-control, select, input[type="text"], input[type="email"], input[type="tel"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 6px;
    }
    
    /* Enhanced focus states for mobile */
    .form-control:focus, select:focus {
        outline: none;
        border-color: #fdcf04;
        box-shadow: 0 0 0 2px rgba(253, 207, 4, 0.2);
    }
    
    /* Better button styling on mobile */
    .actions ul li a {
        border-radius: 8px;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
    }
    
    .actions ul li a:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* Improved step navigation on mobile */
    .form-register .steps li a {
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .form-register .steps li a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Better form field spacing on mobile */
    .inner .form-row .form-holder {
        margin-bottom: 20px;
    }
    
    /* Enhanced mobile validation */
    .form-control.error {
        border-color: #dc3545;
        box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
    }
    
    .error-message {
        color: #dc3545;
        font-size: 12px;
        margin-top: 5px;
        display: block;
    }
}

/* Extra mobile optimizations */
@media screen and (max-width: 480px) {
    /* Optimize for very small screens */
    .wizard-v6-content {
        margin: 0;
        border-radius: 0;
    }
    
    /* Better form field layout */
    .inner .form-row .form-holder {
        margin-bottom: 15px;
    }
    
    /* Improved button sizing */
    .actions ul li a {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* Better step navigation spacing */
    .form-register .steps {
        margin-bottom: 20px;
    }
    
    /* Enhanced mobile typography */
    .inner .form-heading h3 {
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    /* Better mobile form validation */
    .form-control:invalid {
        border-color: #dc3545;
    }
    
    /* Mobile-friendly date picker */
    input[type="date"] {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Landscape orientation optimizations */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .wizard-heading {
        padding-top: 20px;
        padding-bottom: 15px;
        font-size: 18px;
    }
    
    .header-container {
        padding-top: 2%;
    }
    
    .wizard-v6-content {
        margin: 10px 0 20px;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .form-control, select, .actions ul li a {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Mobile-specific form field optimizations */
@media screen and (max-width: 575px) {
    /* Optimize prefix field for mobile */
    #prefix {
        font-size: 14px;
        min-height: 40px;
        padding: 8px 12px;
    }
    
    /* Ensure all form fields have proper mobile sizing */
    .form-control, select, input[type="text"], input[type="email"], input[type="tel"] {
        font-size: 14px;
        min-height: 40px;
        padding: 8px 12px;
        border-radius: 6px;
    }
    
    /* Separate date of birth and client type rows on mobile */
    .dob-customer-type-row {
        flex-direction: column !important;
        gap: 20px !important; /* Add gap between rows */
        align-items: stretch !important;
    }
    
    .dob-customer-type-row .form-holder {
        width: 100% !important;
        margin-bottom: 0 !important; /* Remove bottom margin since we're using gap */
        flex: 1 1 100% !important;
    }
    
    .dob-customer-type-row .form-holder-3 {
        width: 100% !important;
        margin-top: 0 !important; /* Remove top margin since we're using gap */
        padding: 20px 20px 25px !important; /* Increase padding for better separation */
        border-top: 2px solid rgba(253, 207, 4, 0.3) !important; /* More visible separator */
        background-color: rgba(0, 0, 0, 0.05) !important; /* Subtle background for client type section */
        border-radius: 8px !important;
        margin-top: 10px !important;
    }
    
    /* Better mobile form field spacing */
    .inner .form-row .form-holder {
        margin-bottom: 25px; /* Increase spacing between form rows */
    }
    
    /* Enhanced mobile validation display */
    .error-message {
        font-size: 12px;
        margin-top: 5px;
        color: #dc3545;
    }
    
    /* Better mobile button sizing */
    .actions ul li a {
        min-height: 44px;
        font-size: 14px;
        padding: 12px 20px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    

}

/* Desktop layout for date of birth and client type */
@media screen and (min-width: 576px) {
    .dob-customer-type-row {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .dob-customer-type-row .form-holder {
        width: 60%;
        margin-bottom: 0;
    }
    
    .dob-customer-type-row .form-holder-3 {
        width: 40%;
        margin-top: 0;
        padding: 0 15px;
        border-top: none;
        background-color: transparent;
        border-radius: 0;
    }
}

/* Force stacking of DOB and client type up to small laptops */
@media screen and (max-width: 1199px) {
	.dob-customer-type-row {
		display: -webkit-box !important;
		display: -ms-flexbox !important;
		display: flex !important;
		-webkit-flex-direction: column !important;
		-ms-flex-direction: column !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 18px !important;
	}
	.dob-customer-type-row .form-holder,
	.dob-customer-type-row .form-holder-3 {
		-webkit-box-flex: 0 !important;
		-ms-flex: 0 0 100% !important;
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
	}
	.dob-customer-type-row .form-holder-3 {
		justify-content: flex-start !important;
	}
}

/* Business fields styling */
#business-fields {
    transition: all 0.3s ease;
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(253, 207, 4, 0.05);
    border: 1px solid rgba(253, 207, 4, 0.2);
    border-radius: 8px;
}

/* Business fields visibility - ensure proper show/hide */
#business-fields {
    display: none !important;
    opacity: 0;
    transition: all 0.3s ease;
}

#business-fields:not(.hidden) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#business-fields.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Force show when not hidden - highest specificity */
#business-fields.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mobile-specific business fields visibility */
@media screen and (max-width: 768px) {
    #business-fields.show {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    #business-fields.hidden {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Override jQuery Steps or other plugin interference */
.wizard-form #business-fields.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.wizard-form #business-fields.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Ultra-high specificity for mobile */
@media screen and (max-width: 768px) {
    .wizard-v6-content .wizard-form #form-total #business-fields.show {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .wizard-v6-content .wizard-form #form-total #business-fields.hidden {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Business fields layout and styling */
#business-fields .form-row {
    margin-bottom: 20px;
}

#business-fields .form-row:last-child {
    margin-bottom: 0;
}

/* Company name and ABN fields styling - match other form fields */
#company_name, #abn_acn {
    /* Match standard form field styling */
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    transition: border-color 0.3s ease;
}

#company_name:focus, #abn_acn:focus {
    /* Match standard form field focus styling */
    outline: none;
    border-bottom-color: #fdcf04;
    box-shadow: 0 0 5px rgba(253, 207, 4, 0.3);
}

/* Ensure Company Name and ABN/ACN labels move up properly */
#company_name:focus + .label,
#company_name:valid + .label,
#company_name:not(:placeholder-shown) + .label,
#abn_acn:focus + .label,
#abn_acn:valid + .label,
#abn_acn:not(:placeholder-shown) + .label {
    /* Match standard form field label animation */
    transform: translateY(-34px) scale(0.9);
    -moz-transform: translateY(-34px) scale(0.9);
    -webkit-transform: translateY(-34px) scale(0.9);
    -o-transform: translateY(-34px) scale(0.9);
    -ms-transform: translateY(-34px) scale(0.9);
    color: #fdcf04;
}

/* Force labels up when there's content */
#company_name:not([value=""]) + .label,
#abn_acn:not([value=""]) + .label {
    transform: translateY(-34px) scale(0.9);
    -moz-transform: translateY(-34px) scale(0.9);
    -webkit-transform: translateY(-34px) scale(0.9);
    -o-transform: translateY(-34px) scale(0.9);
    -ms-transform: translateY(-34px) scale(0.9);
    color: #fdcf04;
}

/* Prefix field specific styling - reduce width to fit content */
/* Only target the specific prefix field, not all first children */
.form-row:has(.form-holder:first-child #prefix) .form-holder:first-child {
    width: 20% !important; /* Only for prefix field */
    min-width: 120px !important;
    max-width: 150px !important;
}

/* Responsive adjustments for prefix field only */
@media screen and (max-width: 768px) {
    .form-row:has(.form-holder:first-child #prefix) .form-holder:first-child {
        width: 25% !important;
        min-width: 100px !important;
        max-width: 130px !important;
    }
}

@media screen and (max-width: 575px) {
    .form-row:has(.form-holder:first-child #prefix) .form-holder:first-child {
        width: 30% !important;
        min-width: 90px !important;
        max-width: 120px !important;
    }
}

@media screen and (max-width: 480px) {
    .form-row:has(.form-holder:first-child #prefix) .form-holder:first-child {
        width: 35% !important;
        min-width: 80px !important;
        max-width: 110px !important;
    }
} 

/* Specific styling for the Prefix, First Name, Last Name row */
.form-row:has(.form-holder:first-child #prefix) {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 20px !important;
}

.form-row:has(.form-holder:first-child #prefix) .form-holder:first-child {
    flex: 0 0 auto !important;
    width: 20% !important;
    min-width: 120px !important;
    max-width: 150px !important;
}

.form-row:has(.form-holder:first-child #prefix) .form-holder:nth-child(2) {
    flex: 1 1 auto !important;
    width: auto !important;
}

.form-row:has(.form-holder:first-child #prefix) .form-holder:nth-child(3) {
    flex: 1 1 auto !important;
    width: auto !important;
} 

/* Complete responsive layout for all form fields */
/* Desktop and Tablet - Multi-column layout */
@media screen and (min-width: 576px) {
    /* Row 1: Prefix, First Name, Last Name - 3 columns */
    .form-row:has(.form-holder:first-child #prefix) {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    
    .form-row:has(.form-holder:first-child #prefix) .form-holder {
        flex: 1 1 0 !important; /* All fields flexible */
        width: auto !important;
    }
    
    /* Row 2: Email, Mobile Number - 2 columns */
    .form-row:has(.form-holder #email_address) {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    
    .form-row:has(.form-holder #email_address) .form-holder {
        flex: 1 1 0 !important;
        width: auto !important;
    }
    
    /* Row 3: Mobile Number - 1 column (full width) */
    .form-row:has(.form-holder #contact_number) {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }
    
    .form-row:has(.form-holder #contact_number) .form-holder {
        flex: 1 1 0 !important;
        width: 100% !important;
    }
    
    /* Row 4: Address - 1 column (full width) */
    .form-row:has(.form-holder #address) {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }
    
    .form-row:has(.form-holder #address) .form-holder {
        flex: 1 1 0 !important;
        width: 100% !important;
    }
    
    /* Row 5: Suburb - 1 column (full width) */
    .form-row:has(.form-holder #city) {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }
    
    .form-row:has(.form-holder #city) .form-holder {
        flex: 1 1 0 !important;
        width: 100% !important;
    }
    
    /* Row 6: State, Post Code - 2 columns */
    .form-row:has(.form-holder #state_province) {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 20px !important;
    }
    
    .form-row:has(.form-holder #state_province) .form-holder {
        flex: 1 1 0 !important;
        width: auto !important;
    }
    
    /* Row 7: Date of Birth - 1 column (full width) */
    .form-row:has(.form-holder #dob) {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }
    
    .form-row:has(.form-holder #dob) .form-holder {
        flex: 1 1 0 !important;
        width: 100% !important;
    }
    
    /* Row 8: Customer Type Radio Buttons - centered */
    .form-row:has(.form-holder-3) {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .form-row:has(.form-holder-3) .form-holder-3 {
        flex: 0 0 auto !important;
        width: auto !important;
        display: flex !important;
        gap: 30px !important;
    }
    
    /* Row 9: Business Fields - if Business selected */
    #business-fields:not(.hidden) {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    #business-fields.show {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    #business-fields:not(.hidden) .form-row,
    #business-fields.show .form-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px !important;
    }
    
    #business-fields:not(.hidden) .form-holder,
    #business-fields.show .form-holder {
        flex: 1 1 0 !important;
        width: auto !important;
    }
}

/* Mobile - Stack all fields vertically */
@media screen and (max-width: 575px) {
    /* Row 1: Prefix only */
    .form-row:has(.form-holder:first-child #prefix) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .form-row:has(.form-holder:first-child #prefix) .form-holder {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Row 2: First Name, Last Name - 2 columns */
    .form-row:has(.form-holder #first_name) {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .form-row:has(.form-holder #first_name) .form-holder {
        flex: 1 1 0 !important;
        width: auto !important;
    }
    
    /* Row 3: Email only */
    .form-row:has(.form-holder #email_address) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .form-row:has(.form-holder #email_address) .form-holder {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Row 4: Mobile Number only */
    .form-row:has(.form-holder #contact_number) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .form-row:has(.form-holder #contact_number) .form-holder {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Row 5: Address - full width */
    .form-row:has(.form-holder #address) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .form-row:has(.form-holder #address) .form-holder {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Row 6: Suburb only */
    .form-row:has(.form-holder #city) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .form-row:has(.form-holder #city) .form-holder {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Row 7: State, Post Code - 2 columns */
    .form-row:has(.form-holder #state_province) {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .form-row:has(.form-holder #state_province) .form-holder {
        flex: 1 1 0 !important;
        width: auto !important;
    }
    
    /* Row 8: Date of Birth - full width */
    .form-row:has(.form-holder #dob) {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .form-row:has(.form-holder #dob) .form-holder {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Row 9: Customer Type Radio Buttons - centered */
    .form-row:has(.form-holder-3) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .form-row:has(.form-holder-3) .form-holder-3 {
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
    }
    
    /* Row 10: Business Fields - if Business selected */
    #business-fields:not(.hidden) {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    #business-fields.show {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    #business-fields:not(.hidden) .form-row,
    #business-fields.show .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    #business-fields:not(.hidden) .form-holder,
    #business-fields.show .form-holder {
        width: 100% !important;
        flex: none !important;
    }
} 

/* Mobile-specific datepicker fixes */
@media screen and (max-width: 768px) {
    /* Compact mobile datepicker styling */
    .ui-datepicker {
        font-size: 14px !important;
        width: 95% !important;
        max-width: 300px !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
        border: 1px solid #ddd !important;
        background: #fff !important;
        overflow: hidden !important;
    }
    
    .ui-datepicker-header {
        padding: 8px 10px !important;
        font-size: 14px !important;
        background: #fdcf04 !important;
        color: #333 !important;
        border-radius: 8px 8px 0 0 !important;
        font-weight: bold !important;
        text-align: center !important;
    }
    
    .ui-datepicker-calendar {
        width: 100% !important;
        margin: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        padding: 8px !important;
        table-layout: fixed !important;
    }
    
    .ui-datepicker-calendar td {
        padding: 1px !important;
        text-align: center !important;
        border: none !important;
        width: calc(100% / 7) !important;
        box-sizing: border-box !important;
        vertical-align: middle !important;
    }
    
    .ui-datepicker-calendar th {
        padding: 1px !important;
        text-align: center !important;
        border: none !important;
        width: calc(100% / 7) !important;
        box-sizing: border-box !important;
        font-size: 12px !important;
        font-weight: bold !important;
        color: #666 !important;
    }
    
    .ui-datepicker-calendar td a {
        padding: 6px 2px !important;
        font-size: 13px !important;
        height: 28px !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 3px !important;
        margin: 0 !important;
        text-decoration: none !important;
        color: #333 !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
        transition: all 0.2s ease !important;
        box-sizing: border-box !important;
    }
    
    .ui-datepicker-calendar td a:hover {
        background: #fdcf04 !important;
        color: #333 !important;
        transform: scale(1.05) !important;
    }
    
    .ui-datepicker-calendar .ui-datepicker-today a {
        background: #e3f2fd !important;
        border-color: #2196f3 !important;
        color: #1976d2 !important;
        font-weight: bold !important;
    }
    
    .ui-datepicker-calendar .ui-datepicker-current-day a {
        background: #fdcf04 !important;
        color: #333 !important;
        font-weight: bold !important;
    }
    
    /* Navigation buttons (compact) */
    .ui-datepicker-prev, .ui-datepicker-next {
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 4px !important;
        background: rgba(255,255,255,0.2) !important;
        border: none !important;
        color: #333 !important;
        font-size: 14px !important;
        cursor: pointer !important;
    }
    
    .ui-datepicker-prev:hover, .ui-datepicker-next:hover {
        background: rgba(255,255,255,0.4) !important;
    }
    
    /* Month/Year dropdowns (compact) */
    .ui-datepicker-month, .ui-datepicker-year {
        font-size: 14px !important;
        padding: 4px 6px !important;
        border-radius: 4px !important;
        border: 1px solid #ccc !important;
        background: #fff !important;
        margin: 0 2px !important;
        color: #333 !important;
    }
    
    /* Week headers (compact) */
    .ui-datepicker-calendar th {
        padding: 5px 2px !important;
        font-size: 12px !important;
        font-weight: bold !important;
        color: #666 !important;
        text-align: center !important;
    }
    
    /* Ensure date input works on mobile */
    #dob {
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-height: 44px !important; /* Touch target size */
        cursor: pointer !important;
    }
    
    /* Override any jQuery Steps interference with datepicker */
    .wizard-form #dob {
        pointer-events: auto !important;
        user-select: auto !important;
        -webkit-user-select: auto !important;
        -moz-user-select: auto !important;
        -ms-user-select: auto !important;
    }
    
    /* Ensure datepicker div is always on top */
    #ui-datepicker-div {
        z-index: 99999 !important;
        position: fixed !important;
    }
}

@media screen and (max-width: 575px) {
    /* Ensure datepicker is visible on mobile */
    .ui-datepicker {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 320px !important;
        z-index: 99999 !important;
        font-size: 14px !important;
    }
    
    .ui-datepicker .ui-datepicker-header {
        padding: 10px !important;
    }
    
    .ui-datepicker .ui-datepicker-title {
        font-size: 16px !important;
    }
    
    .ui-datepicker .ui-datepicker-calendar {
        font-size: 14px !important;
    }
    
    .ui-datepicker .ui-datepicker-calendar th,
    .ui-datepicker .ui-datepicker-calendar td {
        padding: 8px 4px !important;
    }
    
    .ui-datepicker .ui-datepicker-calendar td a {
        padding: 8px 6px !important;
        display: block !important;
        text-align: center !important;
    }
    
    /* Ensure the date input is properly styled on mobile */
    #dob {
        /* Inherit from standard .form-control styling */
    }
    
    #dob:focus {
        /* Inherit from standard .form-control:focus styling */
    }
    
    #dob + .label {
        /* Inherit from standard label styling */
    }
    
    #dob:focus + .label,
    #dob:valid + .label,
    #dob:not(:placeholder-shown) + .label {
        /* Inherit from standard label animation styling */
    }
}
