:root {
    --primary-color: #1B3A57;
    --secondary-color: #FFC107;
    --text-color: #333;
    --background-color: #FAFAFA;
    --border-color: #ddd;
    --button-red: #D32F2F;
    --footer-color: #D9D9D9;
    --input-background-color: #F5F6F5;
    --progress-color: #2ECC71;
}
  
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* div {
        background-color: rgba(255, 255, 0, 0.19)!important;
}

section {
    background-color: rgba(0, 0, 255, 0.211)!important;;
} */

input {
    background-color: var(--input-background-color);
}

/* Fade transition styles */
.form-step {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.form-step.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* Address section transitions */
.postcode-search,
.address-select,
.manual-address,
.selected-address {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.postcode-search.hidden,
.address-select.hidden,
.manual-address.hidden,
.selected-address.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* Progress bar styles - removed transition */
.progress-bar {
    position: relative;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.progress {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
}

.progress-bar.hidden {
    display: none;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1040px!important;
    margin: 0 auto;
    /* padding: 2rem; */
}

#form-container {
    padding: 2rem;
    max-width: 1040px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

#form-container.initial {
    background: #FAFAFA;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main-container.with-progress {
    background: #FAFAFA;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin: 0;
    margin-top: 1rem;
    max-width: none;
}

/* Postcode Step Styles */
#step-postcode {
    text-align: center;
    padding: 2rem 0;
}

h1 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 2.5rem;
}

.postcode-section {
    margin-bottom: 2rem;
}

.postcode-section h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.postcode-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.postcode-input {
    width: 100%;
    padding: 1rem;
    font-size: 18px;
    border: 2px solid #1B3A57;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 3px 5px 0px #00000030;
}

.postcode-input::placeholder {
    color: #999;
}

.compare-energy-btn {
    width: 100%;
    padding: 1rem;
    font-size: 20px;
    font-weight: 600;
    background-color: var(--button-red);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.compare-energy-btn:hover {
    background-color: #D32F2F;
}

.manual-address-link {
    display: inline-block;
    margin-top: 1rem;
    color: #666;
    text-decoration: none;
    font-size: 16px;
}

.manual-address-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.reviews-badge {
    margin-top: 3rem;
}

.reviews-badge-img {
    max-width: 120px;
    height: auto;
}

/* Progress Bar */
.progress-bar {
    position: relative;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.progress {
    position: absolute;
    height: 100%;
    background: var(--progress-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.step-indicator {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 14px;
    color: #666;
}

/* Form Steps */
.form-step {
    margin-bottom: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.hidden {
    display: none;
}

h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    /* text-align: center; */
    font-size: 20px;
    font-weight: 700;
}

h3 {
    color: var(--text-color);
    /* margin-bottom: 1rem!important; */
    /* text-align: center; */
    font-size: 20px ! important;
    font-weight: 700 !important;
    padding-bottom: 10px;
}

/* Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.button-grid-single-column {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: .5rem; 
    margin-top: 1rem;
}

.provider-btn,
.payment-btn,
.residential-btn,
.energy-type-btn {
    background: #FAFAFA;
    border: 1px solid #1B3A57CC;
    border-radius: 16px;
    font-size: 16px;
    height: 72px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    color: var(--text-color);
    box-shadow: 0px 1px 2px 0px #0000004D;
    transform: translateY(0);
}

.provider-btn:hover,
.payment-btn:hover,
.residential-btn:hover,
.energy-type-btn:hover {
    border-color: var(--primary-color);
    background: #F5F9FF;
}

.provider-btn:active,
.payment-btn:active,
.residential-btn:active,
.energy-type-btn:active,
.provider-btn.pressed,
.payment-btn.pressed,
.residential-btn.pressed,
.energy-type-btn.pressed {
    box-shadow: none;
    transform: translateY(1px);
    background: #E5EDF8;
}

.provider-btn.selected,
.payment-btn.selected,
.residential-btn.selected,
.energy-type-btn.selected {
    border-color: var(--primary-color);
    background: #F5F9FF;
    color: var(--primary-color);
}

/* Header Styles */
.site-header {
    background: #FAFAFA;
    padding: 1rem 1rem 1rem 1rem;
    position: relative;
    width: 100%;
}

.header-container {
    max-width: 1040px;
    margin: 0 auto;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 60px;
    width: auto;
}

.ssl-badge img {
    height: 30px;
    width: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* .container {
        padding: 1rem;
    } */
    
    #form-container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .logo-container img {
        height: 40px;
    }
    
    .ssl-badge img {
        height: 24px;
    }
} 

.manual-address-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.manual-input {
    width: 100%;
    padding: 1rem;
    font-size: 16px;
    border: 2px solid #1B3A57;
    border-radius: 8px;
}

.manual-input::placeholder {
    color: #999;
}

.back-to-finder-link {
    display: inline-block;
    margin-top: 1rem;
    color: #666;
    text-decoration: none;
    font-size: 16px;
}

.back-to-finder-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.hidden {
    display: none;
} 

/* Searching Screen */
#step-searching {
    text-align: center;
    padding: 4rem 1rem;
}

.loading-spinner {
    margin: 3rem auto;
    width: 80px;
    height: 80px;
    position: relative;
}

.spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #1B3A57;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    position: relative;
}

.spinner::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 8px solid #ccc;
    border-top-color: transparent;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Offer Screen */
#step-offer {
    padding: 0;
}

.exclusive-offer {
    background-color: #1E56B3;
    border-radius: 30px;
    width: 15rem;
    margin: auto;
    transform: translateY(-20px);
}

.offer-badge {
    background: #2D7164;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 500;
}

.offer-content {
    padding: 2rem;
    text-align: center;
}

.provider-logo {
    max-width: 120px;
    margin-bottom: 1.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.benefit-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    text-align: left;
    color: #666;
}

.benefit-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.continue-btn {
    background: var(--button-red);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 18px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.continue-btn:hover {
    background: #B43D2B;
}

.contact-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.contact-form h2 {
    font-size: 20px;
    margin-bottom: 2rem;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.form-group label {
    color: #333;
    font-weight: 500;
}

.form-group input {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: var(--input-background-color);
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group input::placeholder {
    color: #999;
} 

/* Step Indicators */
.step-indicators {
    margin-bottom: 4px;
    font-size: 12px;
    color: #1B3A57;
    text-align: left;
}

.step-indicators.hidden {
    display: none;
}

.step-text {
    font-weight: 500;
} 

/* Utility Classes */
.full-bleed {
    margin-left: -7rem;
    margin-right: -7rem;
    width: calc(100% + 15rem);
}

@media (max-width: 768px) {
    .full-bleed {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        width: calc(100% + 1rem);
    }
} 



/* Add styles for postcode input focus state */
.postcode-input:focus {
    box-shadow: none;
}

.postcode-input:focus + .compare-energy-btn {
    box-shadow: 0px 3px 5px 0px #00000030;
}

.text-button {
    display: inline-block;
    margin-top: 1rem;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    text-align: left;
} 

.address-preview {
    background: #F5F6F5;
    border: 1px solid #1B3A57;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    font-size: 16px;
    color: #1B3A57;
    line-height: 1.5;
}

.address-lines p {
    margin: 0;
    padding: 0;
}

.change-address {
    color: #1B3A57;
    text-decoration: underline;
    font-weight: 500;
    font-size: 14px;
    margin-top: 1rem;
    display: block;
}

.change-address:hover {
    text-decoration: none;
}

#continueWithAddress {
    background: var(--button-red);
    color: white;
    font-size: 20px;
    font-weight: 600;
    padding: 1rem;
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0px 3px 5px 0px #00000030;
}

#continueWithAddress:hover {
    background-color: #D32F2F;
} 

/* Footer Styles */
.site-footer {
    background-color: var(--footer-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    padding: 1rem 0;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-legal {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
} 