@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

:root {
    --duo-green: #58cc02;
    --duo-green-dark: #46a302;
    --duo-blue: #1cb0f6;
    --duo-blue-dark: #1899d6;
    --duo-grey: #afafaf;
    --duo-light-grey: #e5e5e5;
    --duo-white: #ffffff;
    --duo-text: #4b4b4b;
}

#getaquote-wizard {
    font-family: 'Outfit', sans-serif;
    color: var(--duo-text);
    max-width: 800px;
    margin: 40px auto;
    background: var(--duo-white);
    border: 2px solid var(--duo-light-grey);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 0 var(--duo-light-grey);
}

.wizard-progress {
    height: 16px;
    background: var(--duo-light-grey);
    border-radius: 20px;
    margin-bottom: 30px;
    overflow: hidden;
}

.wizard-progress-bar {
    height: 100%;
    background: #000000;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 -4px 0 rgba(255,255,255,0.1);
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2.step-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.option-card {
    border: 2px solid var(--duo-light-grey);
    background: var(--duo-white);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 var(--duo-light-grey);
    position: relative;
}

.option-card:hover {
    background: #f7f7f7;
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--duo-blue);
    background: #ddf4ff;
    box-shadow: 0 4px 0 var(--duo-blue-dark);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    display: none;
}

.option-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--duo-blue);
}

/* Duolingo Style Buttons */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--duo-light-grey);
}

.duo-btn {
    padding: 12px 30px;
    border-radius: 15px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s;
    border: none;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.duo-btn-prev {
    background: var(--duo-white);
    color: var(--duo-grey);
    border: 2px solid var(--duo-light-grey);
    box-shadow: 0 4px 0 var(--duo-light-grey);
}

.duo-btn-prev:active {
    box-shadow: 0 0 0 var(--duo-light-grey);
    transform: translateY(4px);
}

.duo-btn-next {
    background: #000000;
    color: var(--duo-white);
    box-shadow: 0 4px 0 #333333;
}

.duo-btn-next:hover:not(:disabled) {
    background: #222222;
}

.duo-btn-next:active:not(:disabled) {
    box-shadow: 0 0 0 #333333;
    transform: translateY(4px);
}

.duo-btn-next:disabled {
    background: var(--duo-light-grey);
    box-shadow: 0 4px 0 #cccccc;
    cursor: not-allowed;
}

/* Encouragement Popups */
#encouragement-overlay {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--duo-green);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(88, 204, 2, 0.4);
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
}

#encouragement-overlay.show {
    transform: translateX(-50%) translateY(0);
}

/* Results Section */
.results-header {
    text-align: center;
    padding: 40px 20px;
}

.checkout-link:hover {
    filter: brightness(1.1);
}

.checkout-link:active {
    box-shadow: none !important;
    transform: translateY(4px);
}

.total-price {
    font-size: 48px;
    color: var(--duo-green);
    font-weight: 700;
    margin: 20px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--duo-light-grey);
}

/* Form Styles */
.lead-form input, 
.custom-select-duo {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--duo-light-grey);
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 16px;
    background-color: var(--duo-white);
    font-family: 'Outfit', sans-serif;
}

.custom-select-duo {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
}

.lead-form input:focus,
.custom-select-duo:focus {
    border-color: var(--duo-blue);
    outline: none;
}
