@import url("./eisolar-colours.ae59271f8766.css");

@font-face {
    font-family: 'St Ryde';
    src: url("/static/eisolar/fonts/StRyde-Regular.58ce2d33977b.otf") format('opentype');
}

/* Use helvitica for numbers */
.num-font {
    font-family: 'Helvetica', sans-serif;
}

body {
    font-family: 'St Ryde', 'Helvetica', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */

header {
    box-shadow: 0 4px 2px -2px lightgray;
}

#return-to-solar-header-link {
    font-size: 1.7em;
    color: var(--deep-blue);
    text-decoration: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: end;
}

.ei-logo-container,
.yrf-logo-container {
    flex-grow: 1;
    padding: 5px;
}

.solar-home-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    padding-right: 2em;
}

#yrf-logo,
#ei-logo {
    max-width: 100%;
}

@media (max-width: 820px) {
    .header-container {
        flex-direction: column;
    }

    .logo-container {
        display: flex;
        justify-content: space-between;
        align-items: end;
    }

    .ei-logo-container,
    .yrf-logo-container {
        flex-grow: 0;
        padding: 5px;
    }

    .solar-home-container {
        padding-right: none;
        padding: 10px;
    }
}

/* Form Progress */
.form-progress-icon {
    height: 65px;
    width: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-progress-icon svg {
    fill: var(--medium-grey);
    height: 90%;
    width: 90%;
}

.form-progress-icon.active svg {
    fill: var(--electric-blue);
}


/* EI Landing Form Styles */

#mprn-ber-error-explainer {
    color: white;
    display: flex;
}

.midform-text {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--light-grey);
}

#ei-landing-form-container {
    padding: 1.5em;
    max-width: 1100px;
}

#ei-landing-form-container .form-section {
    min-height: 420px;
    flex-direction: column;
    align-items: center;
}

#ei-landing-form-container .form-section-inner {
    height: 100%;
}

.form-section-subtitle {
    font-size: 1.5em;
    font-weight: bold;
}

.form-section-title {
    display: flex;
    justify-content: center;
    color: var(--deep-blue);
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    padding-bottom: 1em;
}

/* For extra wide monitors */
@media screen and (min-width: 1600px) {

    #form-progress-container {
        padding-top: 1em;
    }

    .form-section-title {
        padding-top: 1em;
        padding-bottom: 1.5em;
    }
}

@media screen and (min-width: 1900px) {

    #form-progress-container {
        padding-top: 1.5em;
    }

    .form-section-title {
        padding-bottom: 2.5em;
        padding-top: 1.5em;
    }
}


.errorlist {
    color: white;
}

/* No BER Buttons */
#ei-landing-form-container .question-button-container .button-row {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

#ei-landing-form-container .question-button-container .button-row button {
    font-family: 'Helvetica', sans-serif;
    width: 120px;
    height: 120px;
    border: none;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#ei-landing-form-container .question-button-container .button-row button.year-btn {
    width: 140px;
    height: auto;
}

#ei-landing-form-container .question-button-container .icon-button-row img {
    height: 60px;
    max-height: 60px;
    max-width: 100px;
}

#ei-landing-form-container .question-button-container .icon-button-row button {
    width: 150px;
    height: 150px;
}



#ei-landing-form-container .question-button-container .button-inner {
    width: 100%;
    height: 100%;
    border: 2px solid var(--deep-blue);
    color: var(--deep-blue);
    border-radius: 10px;
    padding: 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Custom hover state */
#ei-landing-form-container .question-button-container .button-row button.year-btn:hover,
#ei-landing-form-container .question-button-container .button-row button:hover,
#ei-landing-form-container .question-button-container .button-row button:focus,
#ei-landing-form-container .question-button-container .button-row button.active {
    padding: 7px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

#ei-landing-form-container .question-button-container .button-row button:hover .button-inner,
#ei-landing-form-container .question-button-container .button-row button:focus .button-inner {
    border: 4px solid var(--electric-blue);
}

/* Custom active/selected state */
#ei-landing-form-container .question-button-container .button-row button.active .button-inner {
    border: 4px solid var(--burnt-orange);
    /* Active state border color */
    color: var(--burnt-orange);
    /* Change text color if needed */

}

/* Filter to colour the icons, can use direct svg instead if needed */
/* NOTE: This won't work for the fuel type icons because they are not correctly designed for svg*/
/* TODO: Fix the fuel type icons */
#ei-landing-form-container .question-button-container .button-row .button-inner img {
    /* Target Hex: electric blue #00a0da */
    /* filter: invert(58%) sepia(79%) saturate(5200%) hue-rotate(168deg) brightness(99%) contrast(102%); */
    /* Alternative for deep blue 0, 117, 176 #0075b0 */
    /* filter: invert(29%) sepia(96%) saturate(1297%) hue-rotate(175deg) brightness(92%) contrast(102%); */
}



/* Loading Styles */
.loading-overlay {
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--light-grey-75);
    z-index: 1100;
}

.custom-spinner.spinner-border {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 35%;
    bottom: 50%;
    margin-top: -50px;
    margin-bottom: -50px;
    left: 50%;
    margin-left: -100px;
    text-align: center;
    color: var(--deep-blue);
}


.loading-text {
    position: absolute;
    top: 65%;
    bottom: 50%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    color: var(--deep-blue);
    font-size: larger;
    font-weight: bold;
    width: 300px;
    justify-content: center;
}

/* Arc Styles */
#form-container-row {
    background-image: url("/static/eisolar/images/footer-arc.016ca6cb6c3d.svg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}



/* Additional media queries to handle spacing on smaller devices */
/*Iphone SE sixes w375*/
/* 555 down, add extra padding to the bottom of the container - or move the image down slightly*/

.pt-4rem {
    padding-top: 4rem;
}

#fuel-type-button-row {
    padding-top: 4rem !important;
}

@media screen and (max-width: 576px) {
    #form-container-row {
        background-image: url("/static/eisolar/images/footer-arc.016ca6cb6c3d.svg"), linear-gradient(to bottom, white 150px, #31b2e1 150px);
        background-size: 100%;
        /* background-position: center top 28%; */
        background-position: center top 110px;
    }

    #ei-landing-form-container .question-button-container .button-row {
        padding-top: 4rem;
    }

    #fuel-type-button-row {
        padding-top: 5rem !important;
    }

}

@media screen and (max-width: 378px) {

    #yoc-button-row {
        padding-top: 3rem !important;
    }

    #property-type-button-row {
        padding-top: 2rem !important;
    }
}


/* The issue with tablets
We have the arc background set to cover.
Meaning the image will always cover the entire container.
And the container is set to fill height (flex-grow-1)
On a portrait tablet the screen is taller than it is wide.
So the image will cover the entire height of the container.

Use orientation portrait for tablets
*/

@media screen and (orientation: portrait) and (min-width: 768px) {
    #form-container-row {
        background-image: url("/static/eisolar/images/footer-arc.016ca6cb6c3d.svg"), linear-gradient(to bottom, white 120px, #31b2e1 120px);
        background-size: 100%;
        background-position: center top 60px;
    }

}

/* EI Button Styles */
.btn-green {
    position: relative;
    width: 280px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 100px;
    background-color: var(--ei-btn-green);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    display: block;
    border-color: none;

}

.btn-green svg {
    position: absolute;
    right: 3px;
    top: 3px;
    fill: var(--ei-btn-green);
    height: 38px;
    width: 38px;
    border-radius: 20px;
    background-color: white;
}

.form-back-btn.btn-green svg {
    right: none;
    left: 3px;
}

/* Use helvetica for inputs */
.form-section input {
    font-family: 'Helvetica', sans-serif;
}


/* Privacy language */
#intro-privacy-language {
    text-align: center;
    color: white;
}

#consent-message {
    color: white;
}

#homeowner-message {
    color: white;
}


/* Custom styles for the Bootstrap slider */
.range-descriptor {
    color: white;
    font-size: 1.2em;
}

/* Styles for the thumb */
.form-range {
    /* Increase the size of the thumb */
    /* --bs-range-thumb-width: 1.5rem;
    --bs-range-thumb-height: 1.5rem; */
}

.form-range::-webkit-slider-thumb {
    background-color: var(--burnt-orange);
    /* width: 1.5rem;
    height: 1.5rem; */
}

.form-range::-moz-range-thumb {
    background-color: var(--burnt-orange);
    /* width: 1.5rem;
    height: 1.5rem; */
}

.form-range:focus::-webkit-slider-thumb {
    background-color: var(--bright-orange);
    box-shadow: 0 0 0 0.2rem var(--bright-orange);
}

.form-range:focus::-moz-range-thumb {
    background-color: var(--bright-orange);
    box-shadow: 0 0 0 0.2rem var(--bright-orange);
}

/* Optional: Custom styles for the thumb when hovering */
.form-range:hover::-webkit-slider-thumb {
    background-color: var(--bright-orange);
}

.form-range:hover::-moz-range-thumb {
    background-color: var(--bright-orange);
}

/* Increase thumb size for WebKit and Mozilla browsers */
.form-range::-webkit-slider-thumb {
    /* width: 1.5rem;
    height: 1.5rem; */
}

.form-range::-moz-range-thumb {
    /* width: 1.5rem;
    height: 1.5rem; */
}


#privacy-links-container {
    background-color: #31b2e1;
    color: white;
    box-shadow: 0 -4px 2px -2px lightgray;
}

#privacy-links-container a:link {
    color: white;
}

#privacy-links-container a:visited {
    color: white;
}

#privacy-links-container a:active {
    color: white;
}