body, html {
    padding: 0;
    margin: 0;
    background: white;
/*    background: #F7F8FA;*/
    font-family: "Lato", sans-serif;
    color: #676767;
}

.wrapper {
    position: relative;
    /*max-width: 1080px;*/
    margin: 50px auto;
}

.wizard {
    max-width: 920px;
    margin: 0 auto;
}

.wizard__header {
    position: relative;
    color: #FFF;
    padding: 50px;
    border-radius: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
/*    text-align: center;*/
    height: 130px;
/*    background: url("https://e2k9ube.cloudimg.io/s/cdn/x/https://edienet.s3.amazonaws.com/news/images/full_39690.jpg?v=30/01/2020");*/
/*    background-color: #d2dbe4;*/
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.wizard__header-content {
    position: absolute;
    width: 100%;
    padding: 0 50px;
/*    text-align: center;*/
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
}

.wizard__header-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
/*    background: rgba(77, 99, 123, 0.6);*/
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.wizard__title {
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
}

.wizard__subheading {
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 100;
    /*letter-spacing: 2px;*/
    color: #5094de;
}

    .wizard__subheading span {
        font-weight: 600;
    }

.wizard__steps {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(50%);
    z-index: 1;
}

.card-header {
/*    background-color: #5094de;*/
    background-color:white;
}

.card-body {
    min-height: 400px;
}
 
.card-footer {
    background-color: #5094de;
}

.wizard__footer {
    padding: 0 50px 5px;
    border-radius: 5px;
    bottom: 0;
    position: absolute;
    max-width: 950px;
    width:100%;
}

.wizard__content {
    background: #FFF;
    /*box-shadow: 0px 0px 10px #c5c5c5;*/
    border-radius: 5px;
}

.wizard__congrats-message {
    color: #676767;
    text-align: center;
    position: absolute;
    top: 250px;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.wizard.completed .wizard__content {
    animation: gettingOut 2s cubic-bezier(1, -0.71, 1, 1.16) forwards;
}

.wizard.completed .wizard__congrats-message {
    animation: fadeIn 2s cubic-bezier(1, -0.71, 1, 1.16) forwards;
}

.agencylogo {
    max-height: 80px;
    /*max-width: 100%;*/
}

.line {
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: -1;
    height: 6px;
    transition: all 0.5s ease;
}

    .line.-start {
        left: 0%;
        background: #5094de;
        width: 50%;
    }

    .line.-end {
        left: 50%;
        background: #5094de;
        width: 50%;
    }

    .line.-background {
        background: #c3c3c3;
        width: 100%;
    }

    .line.-progress {
        background: #5094de;
        width: 100%;
        transform: scaleX(0);
        transform-origin: left center;
    }

    .line.-in-progress {
        transform: scaleX(1);
    }

.panels {
    position: relative;
    overflow: hidden;
    min-height: 525px;
    background-color: #f2f2f2;
}

md-input-container:not(.md-input-has-value):not(.md-input-has-placeholder) input:not(:focus) {
    background-color: white;
}

md-input-container input[type=date], md-input-container input[type=datetime-local], md-input-container input[type=month], md-input-container input[type=time], md-input-container input[type=week] {
    background-color: white;
}

md-input-container > md-select {
    background-color: white;
}

md-input-container input[type=color], md-input-container input[type=date], md-input-container input[type=datetime-local], md-input-container input[type=datetime], md-input-container input[type=email], md-input-container input[type=month], md-input-container input[type=number], md-input-container input[type=password], md-input-container input[type=search], md-input-container input[type=tel], md-input-container input[type=text], md-input-container input[type=time], md-input-container input[type=url], md-input-container input[type=week], md-input-container textarea {
    background-color: white;
}

md-input-container .md-input {
    background:white;
}

.panel {
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s all;
    padding: 50px;
}

.panel__header {
    margin-bottom: 30px;
}

.panel__title {
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
}

.panel__subheading {
    font-size: 0.9rem;
    line-height: 1.2rem;
    margin: 0;
}

.panel.movingOutBackward {
    transform: translateX(-920px);
}

.panel.movingOutFoward {
    transform: translateX(920px);
}

.panel.movingIn {
    transform: translateX(0);
}

.steps {
    position: relative;
    display: flex;
    flex: 0 1 auto;
    color: #fff;
}

.step {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    border-radius: 5px;
}

.step__content {
    position: relative;
    z-index: 2;
    padding-top: 5px;
}

.step__number {
    font-size: 1.3rem;
    color: #676767;
    background: #FFF;
    font-weight: 800;
    width: 40px;
    height: 40px;
/*    line-height: 40px;*/
    margin: 0 auto;
    border-radius: 50%;
    border: 5px solid #c3c3c3;
    transition: opacity 0.5s;
    opacity: 1;
    z-index: 5;
}

.step.-completed .step__number {
    opacity: 0;
}

.step.-completed .checkmark {
    z-index: 0;
    animation: fill 0.4s ease-in-out forwards, scale 0.3s ease-in-out 0.6s both;
}

.step.-completed .checkmark__check {
    animation: stroke 0.5s linear 0.4s forwards;
}

.step.-completed .line {
    transform: scaleX(1);
}

.step:last-child .line {
    width: 50%;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
/*    box-shadow: inset 0px 0px 0px #75b2f5;*/
    z-index: -1;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 8;
    stroke-miterlimit: 10;
/*    stroke: #5094de;*/
    stroke: gray;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    stroke: #FFF;
    stroke-width: 5;
}

.button {
    cursor: pointer;
    font-size: 1rem;
    line-height: 1rem;
    background: #5094de;
    color: #FFF;
    padding: 10px 15px;
    border: none;
    outline: none;
    display: inline-block;
    transition: all 0.3s;
}

    .button:hover {
        background: #7baee6;
    }

    .button.previous {
        margin-right: 5px;
    }

    .button.disabled {
        background: #c3c3c3 !important;
        cursor: default;
    }

@keyframes stroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    50% {
        transform: translateX(-50%) scale3d(1.5, 1.5, 1.5);
    }

    100% {
        transform: scale3d(0);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #75b2f5;
    }
}

@keyframes gettingOut {
    0% {
        transform: translateY(0%);
    }

    30% {
        transform: translateY(100px);
    }

    100% {
        transform: translateY(-200%);
    }
}

@keyframes fadeIn {
    100% {
        opacity: 1;
    }
}

/*******************************************************************************************************************/

/*@import url("https://fonts.googleapis.com/css?family=Lato:400,700");*/
/* center container in the middle */
/*html {
    display: grid;
    min-height: 100%;
}

body {
    display: grid;
    background: #E0C9CB;
    font-family: "Lato", sans-serif, sans-serif;
    text-transform: uppercase;
}
*/
.container {
    position: relative;
    margin: auto;
    overflow: hidden;
    width: 240px;
    height: 350px;
    background: #F5F5F5;
    box-shadow: 5px 5px 15px rgba(186, 126, 126, 0.5);
    border-radius: 10px;
    display:inline-block;
    margin-right:30px;
}

p {
    font-size: 0.9em;
    color: #665150;
    letter-spacing: 1px;
}

h1 {
    font-size: 1.2em;
    color: #4E4E4E;
    margin-top: -5px;
}

h2 {
    color: #665150;
    margin-top: -5px;
}

img {
/*    width: 290px;*/
/*    margin-top: 47px;*/
}

.slideshow-buttons {
    top: 70%;
    display: none;
}

.one, .two, .three, .four {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E0C9CB;
}

.one {
    left: 22%;
}

.two {
    left: 27%;
}

.three {
    left: 32%;
}

.four {
    left: 37%;
}

.product {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 10%;
/*    left: 60%;*/
}

.desc {
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 17px;
    color: #4E4E4E;
    font-size: 0.7em;
    line-height: 1.6em;
    margin-right: 25px;
    text-align: justify;
}

button {
    background: #cda9ac;
    padding: 10px;
    display: inline-block;
    outline: 0;
    border: 0;
    margin: -1px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #F5F5F5;
    cursor: pointer;
}

button:hover {
    background: #BA7E7E;
    transition: all 0.4s ease-in-out;
}

.add {
    width: 67%;
}

.like {
    width: 22%;
}

.sizes {
    display: grid;
    color: #D9AAB7;
    grid-template-columns: repeat(auto-fill, 70px);
    width: 100%;
    grid-gap: 4px;
    margin-left: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
}

    .sizes:hover {
        cursor: pointer;
    } 

.pick {
    margin-top: 11px;
    margin-bottom: 0;
    margin-left: 20px;
}

.size {
/*    padding: 9px;*/
    border: 1px solid #E0C9CB;
    font-size: 0.7em;
    text-align: center;
}

    .size:hover {
        background: #BA7E7E;
        color: #F5F5F5;
        transition: all 0.4s ease-in-out;
    }

.focus {
    background: #5094de;
    color: white;
}

.commodity-btn {
    width: 100px;
    height: 32px;
    /*line-height: 32px;*/
}

.btn-primary {
    color: white;
    background-color: #5094de;
    border-color: #5094de;
}

.button-row {
    margin: 0 auto;
}

/* Mobile Apply Form Enhancements */

.products-wrapper {
    background: #f5f5f5;
    padding: 15px 0;
}

/* Side-by-side products layout for mobile */
.products-container-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    /* padding: 0 12px; */
    max-width: 100%;
    align-items: stretch;
}

/* Product card styling */
.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-header {
    padding: 8px 10px;
    border-bottom: 2px solid;
    background: white;
}

.product-header label {
    margin: 0;
    font-weight: 600;
    font-size: 12px;
}

.product-header i {
    font-size: 11px;
}

/* Updated button grid layout - 2 columns */
.product-buttons-grid {
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

/* Compact button styling */
.commodity-btn-compact {
    width: 100%;
    height: 30px;
    font-size: 9px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-transform: uppercase;
}

.product-price-row {
    padding: 15px 10px;
    color: white;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.product-price-content {
    position: relative;
    width: 100%;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Year term badge (green bubble) */
.year-term-badge {
    display: inline-block;
    background: #22c55e;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    /* margin-bottom: 5px; */
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
}

.year-term-badge i {
    font-size: 9px;
    margin-right: 3px;
}

.price-large {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.price-unit {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}

.product-no-selection {
    padding: 20px 10px;
    opacity: 0.7;
    font-size: 12px;
}

.product-discount-row {
    padding: 8px;
    background: #f8f9fa;
    font-size: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-xs {
    padding: 5px 10px;
    font-size: 10px;
}

.discount-content {
    color: white;
}

/* 2-column form layout */
.form-section .form-row-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    /* margin-bottom: 12px !important; */
    width: 100% !important;
}

.form-section .form-row-2col .form-group {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.form-section {
    /* padding: 15px 20px; */
    background: white;
}

    .form-section .form-group { 
    display: flex !important;
    flex-direction: column !important;
    /* margin-bottom: 12px; */
    width: 100%;
}

.form-section .form-group label {
    display: block !important;
    margin-bottom: 0px !important;
    margin-right: 0 !important;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    width: 100% !important;
    float: none !important;
    text-align: left !important;
}

.form-section .form-group input,
.form-section .form-group select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px !important;
    /* border: 2px solid #ddd !important; */
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
    box-sizing: border-box !important;
    display: block !important;
}

.form-section .form-group input:focus,
.form-section .form-group select:focus {
    outline: none;
    border-color: #999 !important;
}

.form-section .form-group .input-with-button {
    width: 100% !important;
    display: flex !important;
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
}

.input-with-button button {
    white-space: nowrap;
}

/* Selection Summary Card */
.selection-summary-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-header i {
    font-size: 20px;
}

.summary-content {
    padding: 10px 20px;
}

.summary-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-icon i {
    font-size: 16px;
}

.summary-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.summary-value {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 640px) {
    .wizard__header {
        height: 180px !important;
        padding: 30px 20px !important;
    }

    .wizard__content {
        padding-top: 180px !important;
    }

    .products-wrapper {
        padding: 12px 0;
    }

    .products-container-mobile {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        /* padding: 0 10px; */
    }

    .product-card {
        border-radius: 6px;
    }

    .product-header {
        padding: 6px 8px;
    }

    .product-header label {
        font-size: 11px;
    }

    .product-header i {
        font-size: 10px;
    }

    .product-buttons-grid {
        padding: 5px;
        gap: 4px;
    }

    .commodity-btn-compact {
        height: 28px;
        font-size: 9px;
        padding: 4px 6px;
    }

    .product-price-row {
        padding: 12px 8px;
        min-height: 115px;
    }

    .price-large {
        font-size: 30px;
    }

    .price-unit {
        font-size: 12px;
    }

    .year-term-badge {
        padding: 3px 8px;
        font-size: 9px;
        border-radius: 10px;
    }

    .year-term-badge i {
        font-size: 8px;
        margin-right: 2px;
    }

    .product-discount-row {
        padding: 6px 8px;
        font-size: 9px;
    }

    .btn-xs {
        padding: 4px 8px;
        font-size: 9px;
    }

    .form-section .form-row-2col {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .form-section .form-row-2col .form-group {
        margin-bottom: 0 !important;
    }
}

/* Responsive adjustments for medium screens */
@media (min-width: 641px) and (max-width: 768px) {
    .products-container-mobile {
        gap: 12px;
        padding: 0 15px;
    }

    .product-header {
        padding: 7px 9px;
    }

    .product-header label {
        font-size: 11px;
    }

    .product-buttons-grid {
        padding: 5px;
        gap: 4px;
    }

    .commodity-btn-compact {
        height: 28px;
        font-size: 9px;
        padding: 4px 6px;
    }

    .product-price-row {
        padding: 16px 10px;
        min-height: 105px;
    }

    .price-large {
        font-size: 32px;
    }

    .price-unit {
        font-size: 12px;
    }

    .year-term-badge {
        padding: 3px 9px;
        font-size: 9px;
    }
}