/*
 * Window Tint Quote Builder — styles
 * Everything is scoped under .wtqb-widget so it can't leak into the
 * surrounding theme (the original mockup styled `body` and `.py-5` directly).
 */
.wtqb-widget {
    --wtqb-primary: #356EE0;
    --wtqb-primary-light: #5b8ef0;
    --wtqb-primary-dark: #2c5bc0;
    --wtqb-secondary: #f8f9fa;
    --wtqb-text: #333;
    --wtqb-light-gray: #e9ecef;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wtqb-widget .quote-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background-color: #fff;
}

.wtqb-widget .header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--wtqb-light-gray);
}

.wtqb-widget .header h1 {
    color: var(--wtqb-primary);
    font-weight: 300;
    margin-bottom: 10px;
    font-size: 38px;
}

.wtqb-widget .header p {
    color: #666;
    font-size: 1.1rem;
}

/*
 * Explicit reset for step headings (<h2 class="mb-4">). Some themes (e.g. The7)
 * ship a global `h2 { ... }` rule using theme CSS variables; ours has higher
 * specificity (.wtqb-widget h2 vs a bare h2) so it always wins regardless of
 * stylesheet load order.
 */
.wtqb-widget h2 {
    color: var(--wtqb-primary);
    font-family: inherit;
    font-size: 24px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: normal;
    word-spacing: normal;
    text-decoration: none;
}

.wtqb-widget .progress-bar-container {
    height: 10px;
    background-color: var(--wtqb-light-gray);
    margin-bottom: 40px;
    overflow: hidden;
}

.wtqb-widget .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--wtqb-primary), var(--wtqb-primary-light));
    transition: width 0.5s ease;
}

.wtqb-widget .step {
    display: none;
    animation: wtqb-fadeIn 0.5s;
}

.wtqb-widget .step.active {
    display: block;
}

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

.wtqb-widget .option-card {
    border: 2px solid var(--wtqb-light-gray);
    padding: 25px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.wtqb-widget .option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--wtqb-primary), var(--wtqb-primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.wtqb-widget .option-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.wtqb-widget .option-card:hover::before {
    transform: scaleX(1);
}

.wtqb-widget .option-card.selected {
    border-color: var(--wtqb-primary);
    background-color: rgba(53, 110, 224, 0.06);
    transform: translateY(-5px);
}

.wtqb-widget .option-card.selected::before {
    transform: scaleX(1);
}

.wtqb-widget .option-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.wtqb-widget .option-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--wtqb-primary);
    font-weight: 400;
}

.wtqb-widget .option-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

.wtqb-widget .btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.wtqb-widget .dual-btn-container {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.wtqb-widget .dual-btn-container .btn {
    flex: 1;
    min-width: 0;
}

.wtqb-widget .btn {
    padding: 15px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.wtqb-widget .btn-primary {
    background: var(--wtqb-primary);
    color: #fff;
}

.wtqb-widget .btn-primary:hover {
    background: linear-gradient(90deg, var(--wtqb-primary-dark), var(--wtqb-primary));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(53, 110, 224, 0.4);
    color: #fff;
}

.wtqb-widget .btn-secondary {
    background-color: var(--wtqb-secondary);
    color: var(--wtqb-text);
    border: 1px solid #ddd;
}

.wtqb-widget .btn-secondary:hover {
    background-color: #e2e6ea;
}

.wtqb-widget .btn-phone {
    background: linear-gradient(135deg, var(--wtqb-primary-dark), var(--wtqb-primary));
    color: #fff;
    font-size: 1.1rem;
    padding: 18px 35px;
    box-shadow: 0 5px 20px rgba(53, 110, 224, 0.3);
}

.wtqb-widget .btn-phone:hover {
    background: linear-gradient(135deg, var(--wtqb-primary), var(--wtqb-primary-light));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(53, 110, 224, 0.45);
    color: #fff;
}

.wtqb-widget .btn-phone i {
    font-size: 1.2rem;
    animation: wtqb-ring 2s infinite;
}

@keyframes wtqb-ring {
    0%, 90%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.wtqb-widget .contact-form {
    margin-top: 30px;
}

.wtqb-widget .form-group {
    margin-bottom: 25px;
}

.wtqb-widget .form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--wtqb-primary);
}

.wtqb-widget .form-control {
    padding: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.wtqb-widget .form-control:focus {
    border-color: var(--wtqb-primary);
    box-shadow: 0 0 0 0.25rem rgba(53, 110, 224, 0.15);
}

.wtqb-widget .success-message,
.wtqb-widget .error-message {
    display: none;
    text-align: center;
    padding: 40px;
    margin-top: 30px;
}

.wtqb-widget .success-message {
    background: linear-gradient(135deg, #dce8fb, #c3d9f6);
    color: #1a3f7a;
}

.wtqb-widget .success-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--wtqb-primary);
}

.wtqb-widget .success-message h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.wtqb-widget .error-message {
    background: linear-gradient(135deg, #fde2e2, #f8c9c9);
    color: #7a1a1a;
}

.wtqb-widget .error-message i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #c0392b;
}

.wtqb-widget .window-diagram-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.wtqb-widget .window-diagram-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.wtqb-widget .window-diagram-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wtqb-widget .window-checklist {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wtqb-widget .window-checkbox-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border: 2px solid var(--wtqb-light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.wtqb-widget .window-checkbox-item:hover {
    border-color: var(--wtqb-primary);
}

.wtqb-widget .window-checkbox-item.selected {
    background-color: rgba(53, 110, 224, 0.06);
    border-color: var(--wtqb-primary);
}

.wtqb-widget .window-checkbox-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wtqb-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.wtqb-widget .window-checkbox-label {
    flex: 1;
    font-weight: 600;
    color: var(--wtqb-text);
}

.wtqb-widget .window-checkbox-price {
    font-weight: 700;
    color: var(--wtqb-primary);
}

.wtqb-widget .window-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--wtqb-primary);
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .wtqb-widget .window-diagram-layout {
        flex-direction: column;
    }

    .wtqb-widget .window-diagram-image {
        flex: 1;
        max-width: 280px;
        margin: 0 auto;
    }
}

.wtqb-widget .tint-selector-container {
    background: var(--wtqb-secondary);
    padding: 0;
    margin-top: 30px;
}

.wtqb-widget .tint-visualizer {
    position: relative;
    max-width: 100%;
    margin: 0 auto 0;
    background: #fff;
    padding: 0;
}

.wtqb-widget .car-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 40%;
    overflow: hidden;
}

.wtqb-widget .car-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
}

.wtqb-widget .tint-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wtqb-widget .tint-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.wtqb-widget .tint-btn {
    padding: 15px 25px;
    border: 2px solid var(--wtqb-light-gray);
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--wtqb-primary);
    min-width: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wtqb-widget .tint-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #394551;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.wtqb-widget .tint-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.wtqb-widget .tint-btn.active {
    border-color: var(--wtqb-primary);
    color: #fff;
    border-width: 0;
}

.wtqb-widget .tint-btn.active::before {
    opacity: 1;
}

.wtqb-widget .tint-btn span {
    position: relative;
    z-index: 1;
}

.wtqb-widget .tint-btn .percentage {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.wtqb-widget .tint-btn .label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.wtqb-widget .selected-display {
    display: none;
}

.wtqb-widget .opacity-info {
    background-color: rgba(53, 110, 224, 0.06);
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--wtqb-primary);
    display: none;
}

.wtqb-widget .opacity-info h4 {
    color: var(--wtqb-primary);
    margin-bottom: 15px;
}

.wtqb-widget .opacity-info p {
    margin-bottom: 10px;
    color: #666;
}

.wtqb-widget .tint-type {
    border: 2px solid var(--wtqb-light-gray);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.wtqb-widget .tint-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--wtqb-primary), var(--wtqb-primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.wtqb-widget .tint-type:hover {
    border-color: var(--wtqb-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.wtqb-widget .tint-type:hover::before {
    transform: scaleX(1);
}

.wtqb-widget .tint-type.selected {
    background-color: rgba(53, 110, 224, 0.06);
    border-color: var(--wtqb-primary);
    transform: translateY(-5px);
}

.wtqb-widget .tint-type.selected::before {
    transform: scaleX(1);
}

.wtqb-widget .tint-type-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.wtqb-widget .tint-type-content {
    flex: 1;
}

.wtqb-widget .tint-type h4 {
    margin-bottom: 10px;
    color: var(--wtqb-primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.wtqb-widget .tint-type p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.wtqb-widget .tint-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.wtqb-widget .tint-feature {
    background: rgba(53, 110, 224, 0.08);
    padding: 8px 15px;
    font-size: 0.85rem;
    color: var(--wtqb-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wtqb-widget .tint-feature i {
    color: var(--wtqb-primary);
    font-size: 0.8rem;
}

.wtqb-widget .tint-price {
    background: linear-gradient(135deg, var(--wtqb-primary), var(--wtqb-primary-light));
    color: #fff;
    padding: 15px 25px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 5px 15px rgba(53, 110, 224, 0.2);
}

.wtqb-widget .additional-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.wtqb-widget .additional-service {
    border: 2px solid var(--wtqb-light-gray);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.wtqb-widget .additional-service:hover {
    border-color: var(--wtqb-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.wtqb-widget .additional-service.selected {
    background-color: rgba(53, 110, 224, 0.06);
    border-color: var(--wtqb-primary);
}

.wtqb-widget .additional-service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wtqb-widget .additional-service h5 {
    margin-bottom: 5px;
    color: var(--wtqb-primary);
}

.wtqb-widget .additional-service p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

.wtqb-widget .service-price {
    font-weight: 700;
    color: var(--wtqb-primary);
}

.wtqb-widget .quote-summary {
    background: linear-gradient(135deg, var(--wtqb-secondary), #e9ecef);
    padding: 30px;
    margin-top: 30px;
}

.wtqb-widget .quote-summary h3 {
    color: var(--wtqb-primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.wtqb-widget .quote-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.wtqb-widget .quote-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--wtqb-primary);
    padding-top: 10px;
}

.wtqb-widget .contact-info,
.wtqb-widget .tint-type-info {
    background-color: rgba(53, 110, 224, 0.06);
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--wtqb-primary);
}

.wtqb-widget .contact-info h4,
.wtqb-widget .tint-type-info h4 {
    color: var(--wtqb-primary);
    margin-bottom: 15px;
}

.wtqb-widget .contact-info p,
.wtqb-widget .tint-type-info p {
    margin-bottom: 10px;
    color: #666;
}

.wtqb-widget .contact-info i {
    color: var(--wtqb-primary);
    margin-right: 10px;
}

.wtqb-widget .booking-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.wtqb-widget .booking-section h3 {
    color: var(--wtqb-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.wtqb-widget .booking-section p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wtqb-widget .booking-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.wtqb-widget .booking-info {
    background: #fff;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.wtqb-widget .booking-info h4 {
    color: var(--wtqb-primary);
    margin-bottom: 15px;
}

.wtqb-widget .booking-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
}

.wtqb-widget .booking-info-item i {
    color: var(--wtqb-primary);
    width: 20px;
}

.wtqb-widget .continue-btn {
    background: var(--wtqb-primary);
    color: #fff;
    padding: 12px 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: none;
    width: 100%;
}

.wtqb-widget .continue-btn:hover {
    background: var(--wtqb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(53, 110, 224, 0.4);
}

.wtqb-widget .continue-btn.show {
    display: block;
}

.wtqb-widget .opacity-slider-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: none;
}

.wtqb-widget .opacity-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #1a1a1a, #333, #666, #999, #ccc);
    outline: none;
    -webkit-appearance: none;
    margin: 15px 0;
}

.wtqb-widget .opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--wtqb-primary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.wtqb-widget .opacity-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--wtqb-primary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.wtqb-widget .slider-value {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wtqb-primary);
    margin: 10px 0;
}

.wtqb-widget .slider-label {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .wtqb-widget .header h1 {
        font-size: 28px;
    }

    .wtqb-widget h2 {
        font-size: 20px;
    }

    .wtqb-widget .option-card h3 {
        font-size: 18px;
    }

    .wtqb-widget .option-card img {
        height: 150px;
    }

    .wtqb-widget .btn {
        white-space: normal;
        padding: 12px 20px;
    }

    .wtqb-widget .form-control {
        padding: 12px;
    }

    .wtqb-widget .window-checkbox-item {
        padding: 12px;
        gap: 10px;
    }

    .wtqb-widget .window-checkbox-label {
        font-size: 0.9rem;
    }

    .wtqb-widget .tint-buttons {
        gap: 10px;
    }

    .wtqb-widget .tint-btn {
        padding: 12px 20px;
        min-width: 90px;
    }

    .wtqb-widget .tint-btn .percentage {
        font-size: 1rem;
    }

    .wtqb-widget .tint-btn .label {
        font-size: 0.75rem;
    }

    .wtqb-widget .tint-type {
        padding: 20px;
    }

    .wtqb-widget .tint-type-header {
        flex-direction: column;
        gap: 15px;
    }

    .wtqb-widget .tint-price {
        width: 100%;
    }

    .wtqb-widget .additional-services {
        grid-template-columns: 1fr;
    }

    .wtqb-widget .booking-buttons {
        flex-direction: column;
        align-items: center;
    }

    .wtqb-widget .btn-phone {
        width: 100%;
        max-width: 300px;
    }

    .wtqb-widget .dual-btn-container {
        flex-direction: column;
        gap: 15px;
    }

    .wtqb-widget .booking-section {
        padding: 25px 20px;
    }

    .wtqb-widget .tint-type {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .wtqb-widget .option-card,
    .wtqb-widget .additional-service {
        padding: 15px;
    }

    .wtqb-widget .window-checkbox-item {
        flex-wrap: wrap;
    }

    .wtqb-widget .window-checkbox-price {
        margin-left: auto;
    }
}
