/* ---------- Base ---------- */

*{
    box-sizing:border-box;
}

body{
    margin:0;
    padding:30px;
    font-family:Arial,Helvetica,sans-serif;
    background:#f5f7fa;
    color:#333;
}

form{
    max-width:1000px;
    margin:auto;
    background:#fff;
    padding:30px;
    border-radius:8px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

#financeOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

#financeDrawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(500px, 90%);
    height: 100%;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#financeDrawer.open{
    right:0;
}

#financeOverlay.open {
    opacity: 1;
    visibility: visible;
}

#drawerBackdrop{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
}

#drawerBackdrop.open{
    display:block;
}

#closeFinanceDrawer {
	margin:10px;
}

#financeDrawer h3, #financeDrawer h2 {
	border: 1px solid #000;
	text-align: center;
	background: #ADD8E6;
	border-radius: 5px;
}

/*	guidelines	*/

#extrasWrap label, #guidelines label, .consent label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#extrasWrap input[type="checkbox"], #guidelines input[type="checkbox"], .consent input[type="checkbox"] {
    flex-shrink: 0;
}
/*
#extrasWrap input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
}
*/


#extrasWrap label, #guidelines label, .consent label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#extrasWrap input[type="checkbox"], #guidelines input[type="checkbox"], .consent input[type="checkbox"] {
    width: auto;
    flex: 0 0 auto;
}

#extrasWrap label span, #guidelines label span, .consent label span {
    flex: 1;
}

/*--- for dropdowns - progress ---*/

.form-select {
    border: 1px solid #ccc;
    transition: border-color .2s ease;
}

.form-select.complete {
    border-color: #2e7d32;
}

.form-select.complete::after {
    content: "✔";
}

/*--- CSS for the tick ---*/
.selectHolder{
    position:relative;
}

.selectHolder select{
    width:100%;
    padding-right:40px;
}

.tick{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    color:#2e7d32;
    font-weight:bold;
    opacity:0;
    transition:opacity .2s;
    pointer-events:none;
}

.form-select.complete + .tick{
    opacity:1;
}

/*
#lease-request-form h2{
    margin-top:0;
    color:#0b4b72;
	text-decoration: underline;
}

#lease-request-form h3{
    margin-top:30px;
    margin-bottom:15px;
    color:#0b4b72;
	text-decoration: underline;
}

#lease-request-form h4{
    margin-top:20px;
	text-decoration: underline;
}
*/
/* ---------- Layout ---------- */


.row1{
    display:flex;
    gap:10px;
    margin-bottom:15px;
	align-items: center;
}

.field{
    flex:1;
    display:flex;
    flex-direction:column;
	width:100%;
}

/* ---------- Inputs ---------- */

label{
    display:block;
    margin-bottom:6px;
    font-weight:bold;
}

input,
select,
textarea{
    width:100%;
    padding:10px;
    font-size:15px;
    border:1px solid #c8d0d8;
    border-radius:4px;
    background:white;
}

#message-group {
	padding:0;	
}

input:focus,
select:focus,
textarea:focus{
    outline:none;
    border-color:#2f80ed;
    box-shadow:0 0 4px rgba(47,128,237,.3);
}

textarea{
    resize:vertical;
}

/* ---------- Slider ---------- */

input[type=range]{
    padding:0;
    margin:5px 0;
}

#monthsLabel{
    margin-left:8px;
    font-weight:bold;
    color:#0b4b72;
}

/* ---------- Buttons ---------- */

button.financeBtn, button#closeFinanceDrawer, button#addItemBtn, #btnAnotherProduct, #btnReviewApplication {
    padding:10px 18px;
    border:none;
    border-radius:4px;
    background:#0b4b72;
    color:white;
    cursor:pointer;
    font-size:16px;
	font-weight:bold;
    margin:5px 5px 5px 0;
}

button.financeBtn:hover, button#closeFinanceDrawer:hover, button#addItemBtn:hover, #btnAnotherProduct:hover, #btnReviewApplication:hover {
    background:#15608d;
}

button.financeBtn:disabled, button#closeFinanceDrawer:disabled, button#addItemBtn:disabled, #btnAnotherProduct:disabled, #btnReviewApplication:disabled {
    opacity:.6;
    cursor:not-allowed;
}

button#closeFinanceDrawer {
	margin:5px 5px 5px 5px;
}

#cart button {
	padding:10px 18px;
    border:none;
    border-radius:4px;
    background:#0b4b72;
    color:white;
    cursor:pointer;
    font-size:15px;
    margin:5px 5px 5px 0;
}
/* ---------- Finance ---------- */

.financeSummary{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:20px;
    padding:20px;
    background:#eef5fb;
    border-radius:6px;
}

.financeSummary div:nth-child(odd){
    font-weight:bold;
}

#total,
#quote{
    text-align:right;
    font-weight:bold;
    color:#0b4b72;
}

.sliderLabels{
    display:flex;
    justify-content:space-between;
    margin-top:0px;
    padding:0 10px;
    font-size:13px;
    color:#666;
}

/* ---------- Extras ---------- */

#extrasWrap{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:8px;
    margin-bottom:20px;
}

#extrasWrap label{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:normal;
}

/* ---------- Cart ---------- */

#cart{
    border:1px solid #d8dee5;
    border-radius:6px;
    padding:15px;
    background:#fafafa;
    min-height:80px;
}

/* ---------- Rules ---------- */

hr{
    border:none;
    border-top:1px solid #ddd;
    margin:10px 0;
}

/* ---------- Submit ---------- */

#submitFinanceEnquiry{
    width:100%;
    margin-top:20px;
    padding:14px;
    font-size:17px;
    background:#0b4b72;
	color: #fff;
	font-weight: bold;
	border-radius: 3px;
}

#submitFinanceEnquiry:hover{
    background:#15608d;
}

#submitFinanceEnquiry:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Validation ---------- */

input:invalid,
select:invalid,
textarea:invalid{
    border-color:#d9534f;
}

input:valid,
select:valid,
textarea:valid{
    border-color:#5cb85c;
}

input.error, .error {
    outline: 2px solid red;
}

.error{
    border-color:#c00;
}

.field-error {
    display: block;
    margin-top: 6px;
	margin-bottom: 6px;
    padding: 6px 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #b42318;
    background: #fff1f0;
    border-left: 3px solid #b42318;
    border-radius: 3px;
}

.finance-errors {
    background: #fee;
    border: 1px solid #c00;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.finance-errors p {
    margin: 4px 0;
}

.finance-errors a {
    color: #b00020;
    text-decoration: underline;
    cursor: pointer;
}

.finance-errors a:hover {
    text-decoration: none;
}

#guidelines.error {
    border: 1px solid #c00;
    padding: 10px;
    border-radius: 5px;
}
/*
.finance-success {
    text-align: center;
    padding: 40px 20px;
}

.finance-success h2 {
    margin: 0 0 20px;
    font-size: 1.6rem;
}

.finance-success p {
    margin: 10px 0;
    line-height: 1.5;
}
*/

.finance-success {
    text-align: center;
    padding: 40px 25px;
    border-radius: 8px;
    margin: 20px;
    background: #f4f8f5;
    border: 1px solid #b7d8be;
}

.finance-success h2 {
    color: #2d6a3a;
}

.finance-success::before {
    content: "✓";
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    color: #2d6a3a;
}
/* ---------- Mobile ---------- */

@media (max-width:700px){

    .row1{
        flex-direction:column;
        gap:10px;
    }

    .financeSummary{
        grid-template-columns:1fr;
    }

    #total,
    #quote{
        text-align:left;
    }

}

/* ------- Finance Helper ------- */

#financeHelper{
    margin:0 0 20px;
    padding:14px 18px;
    border-radius:8px;
    background:#eef6ff;
    border-left:5px solid #0d6efd;
    font-size:0.95rem;
    line-height:1.5;
    font-weight:500;
}

/* ------- Application Summary ------- */

#applicationSummary {
	text-align: center;
	margin: -10px 0 10px 0;
}

/* ----------- Toasts ----------- */

#toast{
    position:fixed;
    top:25px;
    right:25px;
    min-width:260px;
    padding:16px 22px;
    border-radius:8px;
    color:white;
    font-family:Arial,sans-serif;
    font-size:15px;
    opacity:0;
    transform:translateX(80px);
    transition:
        opacity .35s,
        transform .35s;
    z-index:9999;
    box-shadow:0 8px 24px rgba(0,0,0,.25);
}

#toast.show{
    opacity:1;
    transform:translateX(0);
}

#toast.success{
    background:#198754;
}

#toast.error{
    background:#dc3545;
}

#toast.info{
    background:#0d6efd;
}

.cntres {
  counter-reset: section;           /* Set a counter named 'section', and its initial value is 0. */
}
.cnt::before {
  counter-increment: section;                  
  content: counter(section) ": "; 
font-weight:700;
margin-left:-20px;
}
.cnt {margin-left:20px; margin-bottom:5px;}
#form-leasing {
    margin: 15px;
    background-color: #555;
    padding: 20px;
    color: #fff;
}

/* ----------- Highlight ----------- */

.highlight{
    animation:flash .8s;
}

@keyframes flash{

	0%{
		background:#fff9d6;
	}

	100%{
		background:transparent;
	}

}

@keyframes highlightField {

    0%{
        box-shadow:0 0 0 0 rgba(46,125,50,.8);
        border-color:#2e7d32;
    }

    50%{
        box-shadow:0 0 0 8px rgba(46,125,50,.25);
        border-color:#2e7d32;
    }

    100%{
        box-shadow:0 0 0 0 rgba(46,125,50,0);
        border-color:#ced4da;
    }

}

.field-highlight{
    animation:highlightField 2.5s ease 2;
}

/* ----------- Help User ----------- */
/*
.next-step-panel{

    margin:20px 0;

    padding:18px;

    border:2px solid #28a745;

    border-radius:8px;

    background:#f7fff9;

    animation:fadeIn .35s ease;

}

.next-step-header{

    color:#1d6b34;

    font-size:18px;

    font-weight:700;

    margin-bottom:10px;

}

.next-step-panel p{

    margin:0 0 15px;

}

.next-step-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.next-step-actions button{
    flex:1;
    min-width:220px;
}
*/
.next-step-panel{
    margin:20px 0;
    padding:20px;
    border:2px solid #28a745;
    border-radius:8px;
    background:#f7fff9;
}

.next-step-header{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:20px;
    font-weight:600;
    color:#1d6b34;
    margin-bottom:15px;
}

.success-icon{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#28a745;
    color:#fff;
    font-weight:bold;
}

.next-step-intro{
    margin-bottom:20px;
    font-size:16px;
}

.next-step-option{
    margin-bottom:20px;
}

.next-step-btn{
    width:100%;
}

.next-step-help{
    margin:8px 0 0;
    padding-left:5px;
    color:#666;
    font-size:.9rem;
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(-10px);
    }

    to{
        opacity:1;
        transform:none;
    }

}

.field-highlight{
    animation:fieldHighlight 2s ease;
}

@keyframes fieldHighlight{

    0%{
        box-shadow:0 0 0 0 rgba(40,167,69,.75);
    }

    50%{
        box-shadow:0 0 0 8px rgba(40,167,69,.20);
    }

    100%{
        box-shadow:none;
    }

}

/* ----------- Privacy ----------- */

.consent{
    margin:25px 0;
    padding:15px;
    background:#f8f9fa;
    border-left:4px solid #0d6efd;
    border-radius:4px;
}
/*
.checkbox{
    display:flex;
    align-items:flex-start;
    gap:12px;
}

.checkbox input{
    margin-top:3px;
}

.checkbox span{
    line-height:1.5;
}
*/

.finance-submit-panel{
    margin:30px 0;
    padding:24px;
    background:#f8f9fa;
    border:1px solid #d8dee4;
    border-radius:8px;
}

.finance-submit-panel h3{
    margin:0 0 10px;
    color:#1d3557;
}

.finance-intro{
    margin:0 0 20px;
    color:#555;
}

.finance-consent{
    display:flex;
    align-items:flex-start;
    gap:12px;
/*    margin-bottom:20px;
    cursor:pointer;
	*/
}

.finance-consent input[type="checkbox"]{
    flex:0 0 auto;
    width:18px;
    height:18px;
    margin-top:3px;
}

.finance-consent span{
	flex:1;
    line-height:1.6;
}

.finance-reassurance{
    padding:15px;
    background:#eef8ff;
    border-left:4px solid #2b7de9;
    border-radius:4px;
}

.finance-reassurance strong{
    display:block;
    margin-bottom:8px;
    color:#1d3557;
}

.finance-reassurance p{
    margin:0;
    line-height:1.5;
    color:#555;
}

.finance-reassurance a{
    font-weight:600;
    text-decoration:none;
}

.finance-reassurance a:hover{
    text-decoration:underline;
}

.submit-note{
    margin:20px 0 15px;
    text-align:center;
    color:#666;
    font-size:.95rem;
}